Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 667110 - cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3 fails due to stubs-soft.h missing
Summary: cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3 fails due to stubs-soft.h m...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-26 11:14 UTC by Pietro
Modified: 2019-02-10 11:23 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build info (build-info.txt,6.76 KB, text/plain)
2018-09-26 11:15 UTC, Pietro
Details
complete build log (file_667110.txt,57 bytes, text/plain)
2018-09-26 11:19 UTC, Pietro
Details
build.log.gz (build.log.gz,58.52 KB, application/gzip)
2019-02-10 11:04 UTC, Sergei Trofimovich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pietro 2018-09-26 11:14:00 UTC
/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/build/./gcc/ -B/usr/armv7a-hardfloat-linux-gnueabi/bin/ -B/usr/armv7a-hardfloat-linux-gnueabi/lib/ -isystem /usr/armv7a-hardfloat-linux-gnueabi/include -isystem /usr/armv7a-hardfloat-linux-gnueabi/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fno-stack-clash-protection   -fPIC -fno-inline -I. -I. -I../.././gcc -I/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0/libgcc -I/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0/libgcc/. -I/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0/libgcc/../gcc -I/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0/libgcc/../include  -DHAVE_CC_TLS  -o _cmpdi2.o -MT _cmpdi2.o -MD -MP -MF _cmpdi2.dep -DL_cmpdi2 -c /var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/armv7a-hardfloat-linux-gnueabi/sys-include/features.h:452,
                 from /usr/armv7a-hardfloat-linux-gnueabi/sys-include/bits/libc-header-start.h:33,
                 from /usr/armv7a-hardfloat-linux-gnueabi/sys-include/stdio.h:27,
                 from /var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0/libgcc/../gcc/tsystem.h:87,
                 from /var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0/libgcc/libgcc2.c:27:
/usr/armv7a-hardfloat-linux-gnueabi/sys-include/gnu/stubs.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory
 # include <gnu/stubs-soft.h>
           ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:494: _muldi3.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/armv7a-hardfloat-linux-gnueabi/sys-include/features.h:452,
                 from /usr/armv7a-hardfloat-linux-gnueabi/sys-include/bits/libc-header-start.h:33,
                 from /usr/armv7a-hardfloat-linux-gnueabi/sys-include/stdio.h:27,
                 from /var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0/libgcc/../gcc/tsystem.h:87,
                 from /var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0/libgcc/libgcc2.c:27:
/usr/armv7a-hardfloat-linux-gnueabi/sys-include/gnu/stubs.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory
 # include <gnu/stubs-soft.h>
           ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:494: _negdi2.o] Error 1
In file included from /usr/armv7a-hardfloat-linux-gnueabi/sys-include/features.h:452,
                 from /usr/armv7a-hardfloat-linux-gnueabi/sys-include/bits/libc-header-start.h:33,
                 from /usr/armv7a-hardfloat-linux-gnueabi/sys-include/stdio.h:27,
                 from /var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0/libgcc/../gcc/tsystem.h:87,
                 from /var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0/libgcc/libgcc2.c:27:
/usr/armv7a-hardfloat-linux-gnueabi/sys-include/gnu/stubs.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory
 # include <gnu/stubs-soft.h>
           ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:494: _cmpdi2.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/build/armv7a-hardfloat-linux-gnueabi/libgcc'
make[1]: *** [Makefile:12432: all-target-libgcc] Error 2
make[1]: Leaving directory '/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/build'
make: *** [Makefile:906: all] Error 2
 * ERROR: cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3::crossdev failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3::crossdev'`,
 * the complete build log and the output of `emerge -pqv '=cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3::crossdev'`.
 * The complete build log is located at '/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/build'
 * S: '/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-8.2.0'
 * 
 * Please include /var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gcc-8.2.0-r3/work/gcc-build-logs.tar.bz2 in your bug report.
 * 
pietro@ThinkPad ~ $
Comment 1 Pietro 2018-09-26 11:15:32 UTC
Created attachment 547958 [details]
build info
Comment 2 Pietro 2018-09-26 11:19:01 UTC
Created attachment 547960 [details]
complete build log
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2018-10-18 21:39:36 UTC
Is it a new crossdev run or an attempt to update existing install?

It could be a fallout of
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=921cb9c10de4d237924a61a1c27f914dfb479a64
Comment 4 m.manico 2019-01-16 06:06:16 UTC
See also:

https://bugs.gentoo.org/674112
dev-python/m2crypto-0.31.0 on armhf - src_compile(): swig: /usr/include/gnu/stubs.h:7: Error: Unable to find 'gnu/stubs-soft.h'

I am hit by this problem on an ARM device. Gentoo was cross-compiled for initial install but then kept up to date by runnging emerge on that device.

This issue appeared about one or two weeks ago for me.

I remember transitioning to the new ARM tuples and profile some time ago without issues (was able to emerge without a hitch).
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2019-02-10 11:03:42 UTC
Here the fallout is mis-detection of FP ABI:
 	--host=x86_64-pc-linux-gnu 
 	--target=armv7a-hardfloat-linux-gnueabi 
 	--build=x86_64-pc-linux-gnu 
        ...
 	--with-float=softfp 
 	--with-arch=armv7-a
Without answer to #comment3 it's hard to say for sure.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2019-02-10 11:04:07 UTC
Created attachment 564524 [details]
build.log.gz
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2019-02-10 11:23:24 UTC
Please file a new bug or reopen this one if gcc still fails build for you.