GCC fails to build.

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

 



Hello,

I am trying to build a cross compiler, and I have tried multiple times to build it, but if fails during linking libgcc_s.so. I was following the guide at https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/, which admittedly is for an older version, but I have used it successfully with GCC 7.1.0. I was trying to build GCC 9.2.0 for arm-linux-gnueabihf on a x86_64-linux-gnu Debian 10 machine, and I have gotten to the last step in the guide. However, it gives me the following error:

/home/user/pi/install/arm-linux-gnueabihf/bin/ld: cannot find /home/user/pi/install/arm-linux-gnueabihf/lib/libc.so.6 inside /home/user/pi/bgcc/gcc/../../install

/home/user/pi/install/arm-linux-gnueabihf/bin/ld: cannot find /home/user/pi/install/arm-linux-gnueabihf/lib/libc_nonshared.a inside /home/user/pi/bgcc/gcc/../../install

/home/user/pi/install/arm-linux-gnueabihf/bin/ld: cannot find /home/user/pi/install/arm-linux-gnueabihf/lib/ld-linux.so.3 inside /home/user/pi/bgcc/gcc/../../install

All of those files exist, and were installed from glibc-2.30, which I built as a part of this project. I can't tell why ld is looking for an absolute path inside of a directory, and could that be the problem?

Thanks for any help, and I will post more information about my build if requested.




[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