Re: [Help] Options to cross compile gcc14

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jose Gomez kirjoitti 20.6.2025 klo 17.02:
Thanks.


tells quite clearly what the problem is. I didn't tell it when this output already told it! So you haven't these files where your chosen build switch '--with-sysroot=/usr/arm-linux-gnueabih' claims
them to be, in :
/usr/arm-linux-gnueabihf/usr/arm-linux-gnueabihf/lib
The '--with-sysroot=/usr/arm-linux-gnueabih' makes just this, puts an "offset" before the usual 'native search places'. So just leave the '--with-sysroot=/usr/arm-linux-gnueabih' away from your build options!
If I remove it, i get <pthread.h> is not found. I have installed libc-dev-cross-armhf  which should have included pthread. I also tried to install libpthread-stubs0-dev package in Bookworm.
I don't remember what Debian uses as the search paths for $target-specific headers, but you can always check with the already produced binaries like 'xgcc' and 'cc1' in the 'gcc' subdir in the build directory what the search paths are for the
produced GCC :

./xgcc --print-search-dirs

This gives search paths for the new GCC binaries and for target libraries.

./cc1 -v

This should give the search paths for the C headers, meanwhile './cc1plus -v' should give also the search paths for C++
headers.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux