ftalbrecht / aur

Collection of some arch packages.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

[gcc48] see AUR comment of lahwaacz on 2015-05-27 13:07 #9

Open ftalbrecht opened 9 years ago

ftalbrecht commented 9 years ago

Does the package still build with GCC 5.1? I'm getting some errors, the relevant snippet is below:

ar: /home/lahwaacz/build/aur/gcc48/src/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/bin/../bin/../lib/bfd-plugins/LLVMgold.so)

../libtool: line 1132: 4748 Segmentation fault (core dumped) ar rc .libs/libstdc++.a <many object files>
Makefile:545: recipe for target 'libstdc++.la' failed
make[6]: *** [libstdc++.la] Error 139
make[6]: Leaving directory '/home/lahwaacz/build/aur/gcc48/src/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src'
ftalbrecht commented 9 years ago

Followup by hzy199411 on 2015-05-27 14:47:

lahwaacz,you can remove the soft link /usr/lib/bfd-plugins/LLVMgold.so when build this package, and if you want use LLVMgold.so plugin, you can add the soft link by yourself use such command:

cd /usr/lib/bfd-plugins/
sudo ln -s ../LLVMgold.so
ftalbrecht commented 9 years ago

Follow up by lahwaacz on 2015-05-27 15:29:

hzy199411: That helped, thanks.

ftalbrecht commented 9 years ago

Follow up by hzy199411 on 2015-05-29 02:41:

lahwaacz, another simpler workaround is set LD_PRELOAD before you build this package use follow commnd:

export LD_PRELOAD=/usr/lib/libstdc++.so.6

and you can also add this command in PKGBUILD.