checking for style of include used by make... GNU checking for avr-gcc... /var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include -mmcu=avrtiny checking for C compiler default output file name... configure: error: in `/var/tmp/portage/cross-avr/gcc-5.3.0/work/build/avr/avrtiny/libvtv': configure: error: C compiler cannot create executables See `config.log' for more details. Makefile:10202: recipe for target 'configure-target-libvtv' failed make[1]: *** [configure-target-libvtv] Error 1 make[1]: Leaving directory '/var/tmp/portage/cross-avr/gcc-5.3.0/work/build' Makefile:852: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: cross-avr/gcc-5.3.0::local failed (compile phase): * emake failed From /var/tmp/portage/cross-avr/gcc-5.3.0/work/build/avr/avrtiny/libvtv/config.log configure:3521: /var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include -mmcu=avrtiny -v >&5 Reading specs from /var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/specs Reading specs from /var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/device-specs/specs-avrtiny COLLECT_GCC=/var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/xgcc COLLECT_LTO_WRAPPER=/var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/lto-wrapper Target: avr Configured with: /var/tmp/portage/cross-avr/gcc-5.3.0/work/gcc-5.3.0/configure --host=x86_64-pc-linux-gnu --target=avr --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/avr/gcc-bin/5.3.0 --includedir=/usr/lib/gcc/avr/5.3.0/include --datadir=/usr/share/gcc-data/avr/5.3.0 --mandir=/usr/share/gcc-data/avr/5.3.0/man --infodir=/usr/share/gcc-data/avr/5.3.0/info --with-gxx-include-dir=/usr/lib/gcc/avr/5.3.0/include/g++-v5 --with-python-dir=/share/gcc-data/avr/5.3.0/python --enable-languages=c,c++ --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 5.3.0 p1.1, pie-0.6.5' --enable-libstdcxx-time --enable-poison-system-directories --enable-shared --disable-threads --disable-bootstrap --enable-multilib --disable-altivec --disable-fixed-point --disable-libgcj --disable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --enable-vtable-verify --enable-libvtv --disable-libquadmath --enable-lto --without-isl --disable-libsanitizer Thread model: single gcc version 5.3.0 (Gentoo 5.3.0 p1.1, pie-0.6.5) configure:3532: $? = 0 configure:3521: /var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include -mmcu=avrtiny -V >&5 xgcc: error: unrecognized command line option '-V' xgcc: fatal error: no input files compilation terminated. configure:3532: $? = 1 configure:3521: /var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include -mmcu=avrtiny -qversion >&5 xgcc: error: unrecognized command line option '-qversion' xgcc: fatal error: no input files compilation terminated. configure:3532: $? = 1 configure:3552: checking for C compiler default output file name configure:3574: /var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-5.3.0/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include -mmcu=avrtiny -g -O2 conftest.c >&5 /usr/libexec/gcc/avr/ld: skipping incompatible /usr/avr/lib/libm.a when searching for -lm /usr/libexec/gcc/avr/ld: cannot find -lm /usr/libexec/gcc/avr/ld: skipping incompatible /usr/avr/lib/libc.a when searching for -lc /usr/libexec/gcc/avr/ld: cannot find -lc collect2: error: ld returned 1 exit status configure:3578: $? = 1 configure:3615: result: configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU Vtable Verification Runtime Library" | #define PACKAGE_TARNAME "libvtv" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU Vtable Verification Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libvtv/" | #define PACKAGE "libvtv" | #define VERSION "1.0" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3621: error: in `/var/tmp/portage/cross-avr/gcc-5.3.0/work/build/avr/avrtiny/libvtv': configure:3625: error: C compiler cannot create executables
*** Bug 582904 has been marked as a duplicate of this bug. ***
Virtual table verification might not be supported on powerpc architecture. On later version (gcc-5.1) vtv flag seems to have been disabled. http://git.freesa.org/toolchain/gcc/blob/master/libvtv/configure.tgt I have checked that this package compiles with USE="-vtv"
I can confirm this is also a problem on the MSP430 architecture for gcc 4.9.3. It doesn't compile by default, it does after I add -vtv to my msp430 gcc line in my use file.
fixed here: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=be2e2afe53400c7339cc2d105fdfb114c55da74d
Unfortunately, on mingw64 target gcc stage 2 also fails to build unless -vtv is added to GUSE_DISABLE_STAGE_2. This is true both for gcc-4.9.3 and gcc-5.3.0 - current stable and unstable gcc, respectively.