Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc: cannot compile GCC package to .ipk #7202

Closed
Student414 opened this issue Oct 16, 2018 · 5 comments
Closed

gcc: cannot compile GCC package to .ipk #7202

Student414 opened this issue Oct 16, 2018 · 5 comments

Comments

@Student414
Copy link
Contributor

Student414 commented Oct 16, 2018

Env:
VirtualBox uBuntu 16.04.10
OpenWrt target: X86 normal

Log:

wang@wang-VirtualBox:~/Desktop/openwrt-x86$ make package/gcc/compile V=s
make[2]: Entering directory '/home/wang/Desktop/openwrt-x86/scripts/config'
make[2]: Leaving directory '/home/wang/Desktop/openwrt-x86/scripts/config'
make[1]: Entering directory '/home/wang/Desktop/openwrt-x86'
make[2]: Entering directory '/home/wang/Desktop/openwrt-x86/package/libs/toolchain'
echo "libc" >> /home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/pkginfo/toolchain.default.install
echo "libgcc" >> /home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/pkginfo/toolchain.default.install
echo "libssp" >> /home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/pkginfo/toolchain.default.install
echo "libpthread" >> /home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/pkginfo/toolchain.default.install
echo "librt" >> /home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/wang/Desktop/openwrt-x86/package/libs/toolchain'
time: package/libs/toolchain/compile#0.17#0.05#3.24
make[2]: Entering directory '/home/wang/Desktop/openwrt-x86/package/libs/zlib'
echo "zlib" >> /home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/pkginfo/zlib.default.install
make[2]: Leaving directory '/home/wang/Desktop/openwrt-x86/package/libs/zlib'
time: package/libs/zlib/compile#0.14#0.03#1.26
make[2]: Entering directory '/home/wang/Desktop/openwrt-x86/package/libs/gettext'
make[2]: Leaving directory '/home/wang/Desktop/openwrt-x86/package/libs/gettext'
time: package/libs/gettext/compile#0.13#0.04#0.41
make[2]: Entering directory '/home/wang/Desktop/openwrt-x86/package/libs/libiconv'
make[2]: Leaving directory '/home/wang/Desktop/openwrt-x86/package/libs/libiconv'
time: package/libs/libiconv/compile#0.15#0.03#0.34
make[2]: Entering directory '/home/wang/Desktop/openwrt-x86/package/devel/binutils'
make[2]: Leaving directory '/home/wang/Desktop/openwrt-x86/package/devel/binutils'
time: package/devel/binutils/compile#0.19#0.34#7.36
make[2]: Entering directory '/home/wang/Desktop/openwrt-x86/package/libs/libtool'
make[2]: Leaving directory '/home/wang/Desktop/openwrt-x86/package/libs/libtool'
time: package/libs/libtool/compile#0.12#0.05#0.54
make[2]: Entering directory '/home/wang/Desktop/openwrt-x86/feeds/packages/devel/gcc'
rm -f /home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/.built
touch /home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/.built_check
export SHELL="bash"; CFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0:gcc-5.4.0 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/usr/include -I/home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/include -I/home/wang/Desktop/openwrt-x86/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_glibc/usr/include -I/home/wang/Desktop/openwrt-x86/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_glibc/include -D_GLIBCXX_INCLUDE_NEXT_C_HEADERS " CXXFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0:gcc-5.4.0 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/usr/include -I/home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/include -I/home/wang/Desktop/openwrt-x86/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_glibc/usr/include -I/home/wang/Desktop/openwrt-x86/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_glibc/include -D_GLIBCXX_INCLUDE_NEXT_C_HEADERS " LDFLAGS="-L/home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/usr/lib -L/home/wang/Desktop/openwrt-x86/staging_dir/target-i386_pentium4_glibc/lib -L/home/wang/Desktop/openwrt-x86/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_glibc/usr/lib -L/home/wang/Desktop/openwrt-x86/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_glibc/lib -znow -zrelro " make -C /home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0 DESTDIR="/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/ipkg-install"  all install
make[3]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0'
make[4]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libiberty'
make[6]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libiberty/testsuite'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libiberty/testsuite'
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libiberty'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/fixincludes'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/fixincludes'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp'
make  all-recursive
make[6]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp'
Making all in tests
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests'
Making all in .
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests'
Making all in devel
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/devel'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/devel'
Making all in mpn
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/mpn'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/mpn'
Making all in mpz
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/mpz'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/mpz'
Making all in mpq
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/mpq'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/mpq'
Making all in mpf
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/mpf'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/mpf'
Making all in rand
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/rand'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/rand'
Making all in misc
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/misc'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/misc'
Making all in cxx
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/cxx'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/cxx'
Making all in mpbsd
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/mpbsd'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests/mpbsd'
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tests'
Making all in mpn
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/mpn'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/mpn'
Making all in mpz
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/mpz'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/mpz'
Making all in mpq
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/mpq'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/mpq'
Making all in mpf
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/mpf'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/mpf'
Making all in printf
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/printf'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/printf'
Making all in scanf
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/scanf'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/scanf'
Making all in cxx
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/cxx'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/cxx'
Making all in mpbsd
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/mpbsd'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/mpbsd'
Making all in demos
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/demos'
Making all in calc
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/demos/calc'
make  all-am
make[9]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/demos/calc'
make[9]: Nothing to be done for 'all-am'.
make[9]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/demos/calc'
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/demos/calc'
Making all in expr
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/demos/expr'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/demos/expr'
make[8]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/demos'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/demos'
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/demos'
Making all in tune
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tune'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/tune'
Making all in doc
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/doc'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp/doc'
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp'
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp'
make[6]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp'
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gmp'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpfr'
Making all in tests
make[6]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpfr/tests'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpfr/tests'
make[6]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpfr'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpfr'
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpfr'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc'
make  all-recursive
make[6]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc'
Making all in src
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc/src'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc/src'
Making all in tests
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc/tests'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc/tests'
Making all in doc
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc/doc'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc/doc'
make[7]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc'
make[7]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc'
make[6]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc'
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/mpc'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/lto-plugin'
make  all-am
make[6]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/lto-plugin'
make[6]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/lto-plugin'
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/lto-plugin'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/intl'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/intl'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/build-x86_64-pc-linux-gnu/libiberty'
make[6]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/build-x86_64-pc-linux-gnu/libiberty/testsuite'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/build-x86_64-pc-linux-gnu/libiberty/testsuite'
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/build-x86_64-pc-linux-gnu/libiberty'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/build-x86_64-pc-linux-gnu/fixincludes'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/build-x86_64-pc-linux-gnu/fixincludes'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/build-x86_64-pc-linux-gnu/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/build-x86_64-pc-linux-gnu/libcpp'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-g -O2  -g -Os" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=-g -O2  -g -Os" "MAKE=make" "MAKEINFO=/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/missing makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr" "infodir=/usr/info" "libdir=/usr/lib" "prefix=/usr" "tooldir=/usr/i486-openwrt-linux-gnu" "AR=i486-openwrt-linux-gnu-gcc-ar" "AS=i486-openwrt-linux-gnu-gcc -c -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0:gcc-5.4.0 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" "CC=i486-openwrt-linux-gnu-gcc" "CXX=i486-openwrt-linux-gnu-g++ -std=gnu++03" "LD=i486-openwrt-linux-gnu-ld" "LIBCFLAGS=" "NM=i486-openwrt-linux-gnu-gcc-nm" "PICFLAG=" "RANLIB=i486-openwrt-linux-gnu-gcc-ranlib" "DESTDIR=/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/ipkg-install" DO=all multi-do # make
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/zlib'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libbacktrace'
make  all-am
make[6]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libbacktrace'
true  DO=all multi-do # make
make[6]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libbacktrace'
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libbacktrace'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libcpp'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libdecnumber'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libdecnumber'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gcc'
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/gcc'
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libcc1'
make  all-am
make[6]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libcc1'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libcc1'
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/host-i486-openwrt-linux-gnu/libcc1'
Checking multilib configuration for libgcc...
make[5]: Entering directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/i486-openwrt-linux-gnu/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
i486-openwrt-linux-gnu-gcc   -g -O2 -g -Os -O2  -g -O2  -g -Os -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fpic -mlong-double-80 -I. -I. -I../../host-i486-openwrt-linux-gnu/gcc -I../.././libgcc -I../.././libgcc/. -I../.././libgcc/../gcc -I../.././libgcc/../include  -DHAVE_CC_TLS  -DUSE_TLS -o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c ../.././libgcc/unwind-dw2.c -fvisibility=hidden -DHIDE_EXPORTS
cc1: note: someone does not honour COPTS correctly, passed 0 times
In file included from ../.././libgcc/unwind-dw2.c:401:0:
./md-unwind-support.h: In function 'x86_fallback_frame_state':
./md-unwind-support.h:141:18: error: field 'uc' has incomplete type
  struct ucontext uc;
                  ^~
../.././libgcc/shared-object.mk:14: recipe for target 'unwind-dw2.o' failed
make[5]: *** [unwind-dw2.o] Error 1
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/i486-openwrt-linux-gnu/libgcc'
Makefile:12262: recipe for target 'all-target-libgcc' failed
make[4]: *** [all-target-libgcc] Error 2
make[4]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0'
Makefile:879: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0'
Makefile:176: recipe for target '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/.built' failed
make[2]: *** [/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/.built] Error 2
make[2]: Leaving directory '/home/wang/Desktop/openwrt-x86/feeds/packages/devel/gcc'
Command exited with non-zero status 2
time: package/feeds/packages/gcc/compile#1.49#1.08#19.61
package/Makefile:107: recipe for target 'package/feeds/packages/gcc/compile' failed
make[1]: *** [package/feeds/packages/gcc/compile] Error 2
make[1]: Leaving directory '/home/wang/Desktop/openwrt-x86'
/home/wang/Desktop/openwrt-x86/include/toplevel.mk:216: recipe for target 'package/gcc/compile' failed
make: *** [package/gcc/compile] Error 2
wang@wang-VirtualBox:~/Desktop/openwrt-x86$ 
@dibdot
Copy link
Contributor

dibdot commented Oct 16, 2018

@noblepepper

@Student414
Copy link
Contributor Author

Student414 commented Oct 25, 2018

OK, i have solved this problem temporary. Here is a very ugly solution.
File:{openwrt-ROOT}/build_dir/target-x86_64-glibc/gcc-5.4.0/x86_64-openwrt-linux-gnu/libgcc/md-unwind-support.h
Fix1:@line 61:

if (*(unsigned char *)(pc+0) == 0x48
      && *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)
    {
      // struct ucontext *uc_ = context->cfa;
	ucontext_t *uc_ = context->cfa;
      /* The void * cast is necessary to avoid an aliasing warning.
         The aliasing warning is correct, but should not be a problem
         because it does not alias anything.  */
      sc = (struct sigcontext *) (void *) &uc_->uc_mcontext;
    }

Fix2:@line144

    {
      struct rt_sigframe {
	int sig;
	siginfo_t *pinfo;
	void *puc;
	siginfo_t info;
	// struct ucontext uc;
 	ucontext_t uc;
      } *rt_ = context->cfa;

See https://github.com/voidlinux/void-packages/issues/7284

@pprindeville
Copy link
Member

I suggest doing a PR instead of a pseudo-fix in the comments of an issue.

@noblepepper
Copy link
Contributor

The package desciption says: this was only tested on arm (EABI) and mips targets. Others to be
done...

On a mips build md-unwind-support.h is different from what you quote so I can't test your fix. If you get a working gcc and can supply a patch to the sources I'll try to integrate into this package.

@neheb
Copy link
Contributor

neheb commented Jan 12, 2020

This is not valid anymore. There's GCC7 now.

@neheb neheb closed this as completed Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants