Ticket #121 (closed task: invalid)

Opened 11 years ago

Last modified 9 years ago

Sysroot build of gcc needs --includedir to avoid libstdc++/glibc compatibility issues

Reported by: kev Owned by: clfs-commits@…
Priority: major Milestone: CLFS Sysroot 1.0.0
Component: BOOK Version: CLFS Sysroot 1.0.0
Keywords: gcc includedir seekoff Cc:



The configure needs the follwing added: --includedir=${CLFS}/include

Without this gcc is built using /include, i.e. the include files on the build system. This works if you're build system includes are identical to CLFS includes. It does not work if there are differences. Symptoms = mismatch between libstdc++ and glibc such that funny link errors appear, e.g. on a g++ compile&link you might see:

gnu/lib/../lib64/libstdc++.so: undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)

Change History

comment:1 Changed 11 years ago by jciccone

  • Milestone set to CLFS Sysroot 1.0.0

comment:2 Changed 9 years ago by jciccone

  • Status changed from new to closed
  • Resolution set to invalid

This is so old, the build has changed quite a bit since this was opened.

Note: See TracTickets for help on using tickets.