Error:
configure: error: C compiler cannot create executables
error: unrecognized command line option ‘-V’
error: unrecognized command line option '-qversion'
Solution:
binutils-config -l
Error:
configure: error: C compiler cannot create executables
error: unrecognized command line option ‘-V’
error: unrecognized command line option '-qversion'
Solution:
binutils-config -l
#!/bin/sh | |
emerge -va1 gcc | |
gcc-config -l | |
# gcc-config *** # choose valid one | |
emerge -va1 binutils | |
binutils-config -l | |
# binutils-config *** # choose valid one | |
source /etc/profile | |
emerge -va1 libtool | |
revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc | |
# References | |
# https://wiki.gentoo.org/wiki/Upgrading_GCC | |
# https://forums.funtoo.org/topic/1498-can-you-explain-x86_64-pc-linux-gnu-gcc-v-versus-v-in-my-log-files/ |