Open mniehren opened 6 years ago
Did you build GCC with LTO support enabled? If so, try adding the path of liblto_plugin.so
to your LD_LIBRARY_PATH
environment variable.
cd osxcross
find . -name liblto_plugin.so
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<PATH>
Hi,
there is no liblto_plugin.so under osxcross. It will not be build, if building gcc. And i build it with LTO support enabled with the build_gcc.sh.
best regards Michael
I'm having this same issue and can't figure it out.
I faced the same problem with GCC 8.3.0 and SDK 10.14. The issue is this line in the gcc configure script which doesn't have a match for *-apple-darwin*. So ideally a patch needs to be applied in build_gcc.sh before compiling GCC to fix the configure script.
https://github.com/gcc-mirror/gcc/blob/master/configure#L6216
Hi together,
i've successfully compiled osxcross (gcc V6.3.0) on Centos V7.5 and also can compile with o64-gcc the test file. So i tried to compile tcl, but i run into an error on calling x86_64-apple-darwin15-gcc-ranlib libtcl8.6.a x86_64-apple-darwin15-gcc-ranlib: Cannot find plugin 'liblto_plugin.so'
The liblto_plugin.so is not found under the target directory. I've also tried other gcc versions without success. The plugin was not build in any of them.
Any idea what i can do ?
best regards Michael