Closed abrodkin closed 4 years ago
Is it actually causing an error or just a warning?
Right it was just a warning indeed. The real problem was very similar to discussed here: https://github.com/crosstool-ng/crosstool-ng/issues/712 and with application of https://github.com/crosstool-ng/crosstool-ng/blob/master/packages/gcc/9.2.0/0000-libtool-leave-framework-alone.patch fixed the build failure.
Thus closing this one and sorry for the noise!
Indeed this is not very typical use-case (probably not that many mere mortals use libtool), but I bumped into it while trying to build cross-canadian toolchain with help of https://github.com/crosstool-ng/crosstool-ng. I.e. on building of cross-GCC with osxcross-built cross-tools for Mac.
Could be reproduced quite easily.
./build.sh
./build_gcc.sh
build
folder as if we prepare for real use of the built tools and don't want to keep a lot of intermediate things (BTW it's about 4 GiB of size so indeed there's not much sense in keeping it after building is done).Try to link something with
libtool
:That happens because generated
/osxcross_install/x86_64-apple-darwin14/lib/libstdc++.la
has those paths independency_libs
:And that's not the only one, see:
Note these paths refer to the original
build
folder. For comparison in cross-toolchain built on Linux machine for Linux machine the samelibstdc++.la
file contains just that:so those extra paths somehow got filtered in "normal" case and remain in place in case of osxcross.
I did spend one sleepless night trying to get to the bottom of that but as you see didn't find any good solution. So any help or even hints on what to try here are much appreciated.