Hi, On Tue, Feb 13, 2018 at 01:41:59PM +0100, Alexander Dahl wrote: > I had several problems compiling the new toolchain, the main one like in the > first example, see below. > > Am Montag, 12. Februar 2018, 16:51:54 CET schrieb Michael Olbrich: > > Download the release here: > > https://public.pengutronix.de/oselas/toolchain/ > > I didn't download a prebuilt release, but tried to build it myself from Git. > Host is on Debian 9 (stretch), amd64, using icecc: > > git clean -dxf > git checkout v2018.02.0 > ln -s /usr/local/bin/ptxdist-2018.02.0 p > make -f build_all_v2.mk > > This ends with: > > --------------------------------------------------------------------------------------------------------------------------------------------------- > target: > oselas.toolchain-2018.02.0-powerpc-603e-linux-gnu-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized_2018.02.0-0ptx1~bpo9+1_amd64.deb > --------------------------------------------------------------------------------------------------------------------------------------------------- > > mkdir: cannot create directory '/mnt//data-temp': Permission denied > mkdir: cannot create directory '/mnt//data-temp': Permission denied > scripts/make_deb.sh: line 37: /mnt//data-temp/debian/control: No such file or > directory > scripts/make_deb.sh: line 52: /mnt//data-temp/debian/changelog: No such file > or directory > scripts/make_deb.sh: line 59: /mnt//data-temp/debian/compat: No such file or > directory > Copy data... > tar: /mnt//data-temp/tmp: Cannot open: No such file or directory > tar: Error is not recoverable: exiting now > scripts/make_deb.sh: line 67: cd: /mnt//data-temp: No such file or directory > Generate dependencies... > dh_shlibdeps: cannot read debian/control: No such file or directory > > /mnt/data_2/adahl/src/OSELAS.Toolchain/rules/image-toolchain-deb.make:28: > recipe for target > '/mnt/data_2/adahl/src/OSELAS.Toolchain/dist/oselas.toolchain-2018.02.0-powerpc-603e-linux-gnu-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized_2018.02.0-0ptx1~bpo9+1_amd64.deb' > failed > make: *** > [/mnt/data_2/adahl/src/OSELAS.Toolchain/dist/oselas.toolchain-2018.02.0-powerpc-603e-linux-gnu-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized_2018.02.0-0ptx1~bpo9+1_amd64.deb] > Error 2 > build_all_v2.mk:49: die Regel für Ziel > „gstate/powerpc-603e-linux-gnu-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized.build“ > scheiterte > make: *** > [gstate/powerpc-603e-linux-gnu-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized.build] > Fehler 2 > make -f build_all_v2.mk 3545,92s user 325,01s system 164% cpu 39:07,55 total
Hmm, generating Debian packages is not widely tested outside my local setup, but it should work. Can you add 'set -x' at the beginning of the main() function in scripts/make_deb.sh and send the output? > Second try, just building one toolchain: > > ./build_one.sh v5te > > Result (the failing part): > > In file included from /usr/include/c++/6/vector:69:0, > from ../../binutils-2.30/gold/options.h:44, > from ../../binutils-2.30/gold/incremental.cc:30: > /usr/include/c++/6/bits/vector.tcc: In member function 'void std::vector<_Tp, > _Alloc>::_M_default_append(std::vector<_Tp, _Alloc>::size_type) [with _Tp = > long unsigned int; _Alloc = std::allocator<long unsigned int>]': > /usr/include/c++/6/bits/vector.tcc:586:5: internal compiler error: in > gt_ggc_mx_symtab_node, at gtype-desc.c:1773 > } > ^ > libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow > -Wstack-usage=262144 -I../../binutils-2.30/binutils/../zlib -g -O2 > -static-libstdc++ -static-libgcc -o ar arparse.o arlex.o ar.o not-ranlib.o > arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o > ../bfd/.libs/libbfd.a > -L/mnt/data_2/adahl/src/OSELAS.Toolchain/platform-arm-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/build-cross/binutils-2.30-build/zlib > -lz ../libiberty/libiberty.a -lfl -ldl > Please submit a full bug report, > with preprocessed source if appropriate. > See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions. > Makefile:918: recipe for target 'incremental.o' failed > make[5]: *** [incremental.o] Error 1 > make[5]: *** Waiting for unfinished jobs.... This is a bug in gcc on your build host. What distribution (and version) are you using and what is the output of 'gcc --version'? > Third try, build another toolchain, still with icecc: > > ./build_one.sh arm-1136jfs-linux-gnueabihf > > Result (failed): > > *** Error in `/usr/lib/gcc/x86_64-linux-gnu/6/cc1plus': corrupted size vs. > prev_size: 0x0000000004723fe0 *** > ======= Backtrace: ========= > /lib/x86_64-linux-gnu/libc.so.6(+0x70bcb)[0x7f11d1d7dbcb] > /lib/x86_64-linux-gnu/libc.so.6(+0x76f96)[0x7f11d1d83f96] > /lib/x86_64-linux-gnu/libc.so.6(+0x77388)[0x7f11d1d84388] > /lib/x86_64-linux-gnu/libc.so.6(+0x78dca)[0x7f11d1d85dca] > /lib/x86_64-linux-gnu/libc.so.6(__libc_calloc+0x27b)[0x7f11d1d88b4b] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus(xcalloc+0x21)[0x118ea81] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus(_Z27delete_trivially_dead_insnsP8rtx_insni+0x53)[0x104d4c3] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus[0x1054d0a] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus(_Z16execute_one_passP8opt_pass+0x163)[0xa25f23] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus[0xa26468] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus[0xa2647a] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus(_Z17execute_pass_listP8functionP8opt_pass+0x15)[0xa264c5] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus(_ZN11cgraph_node6expandEv+0xe3)[0x7c5833] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus[0x7c6db6] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus(_ZN12symbol_table25finalize_compilation_unitEv+0xd5)[0x7c8795] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus[0xad419a] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus(_ZN6toplev4mainEiPPc+0x6d4)[0x5cad84] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus(main+0x2b)[0x5ccfdb] > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f11d1d2d2b1] > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus(_start+0x2a)[0x5cd3da] > ======= Memory map: ======== > 00400000-01a54000 r-xp 00000000 08:05 1180011 > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus > 01c54000-01c5c000 r--p 01654000 08:05 1180011 > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus > 01c5c000-01c68000 rw-p 0165c000 08:05 1180011 > /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus > 01c68000-01db9000 rw-p 00000000 00:00 0 > 03a48000-04e57000 rw-p 00000000 00:00 0 > [heap] > 7f11a8000000-7f11a8021000 rw-p 00000000 00:00 0 > 7f11a8021000-7f11ac000000 ---p 00000000 00:00 0 > 7f11afa60000-7f11afa76000 r-xp 00000000 08:05 394942 > /lib/x86_64-linux-gnu/libgcc_s.so.1 > 7f11afa76000-7f11afc75000 ---p 00016000 08:05 394942 > /lib/x86_64-linux-gnu/libgcc_s.so.1 > 7f11afc75000-7f11afc76000 r--p 00015000 08:05 394942 > /lib/x86_64-linux-gnu/libgcc_s.so.1 > 7f11afc76000-7f11afc77000 rw-p 00016000 08:05 394942 > /lib/x86_64-linux-gnu/libgcc_s.so.1 > 7f11afcb8000-7f11bfd23000 rw-p 00000000 00:00 0 > 7f11bfd23000-7f11bfe24000 rw-p 00000000 00:00 0 > 7f11bfe24000-7f11c8174000 rw-p 00000000 00:00 0 > 7f11c8175000-7f11d148b000 rw-p 00000000 00:00 0 > 7f11d148c000-7f11d158c000 rw-p 00000000 00:00 0 > 7f11d158d000-7f11d1d0d000 rw-p 00000000 00:00 0 > 7f11d1d0d000-7f11d1ea2000 r-xp 00000000 08:05 400319 > /lib/x86_64-linux-gnu/libc-2.24.so > 7f11d1ea2000-7f11d20a2000 ---p 00195000 08:05 400319 > /lib/x86_64-linux-gnu/libc-2.24.so > 7f11d20a2000-7f11d20a6000 r--p 00195000 08:05 400319 > /lib/x86_64-linux-gnu/libc-2.24.so > 7f11d20a6000-7f11d20a8000 rw-p 00199000 08:05 400319 > /lib/x86_64-linux-gnu/libc-2.24.so > 7f11d20a8000-7f11d20ac000 rw-p 00000000 00:00 0 > 7f11d20ac000-7f11d21af000 r-xp 00000000 08:05 400325 > /lib/x86_64-linux-gnu/libm-2.24.so > 7f11d21af000-7f11d23ae000 ---p 00103000 08:05 400325 > /lib/x86_64-linux-gnu/libm-2.24.so > 7f11d23ae000-7f11d23af000 r--p 00102000 08:05 400325 > /lib/x86_64-linux-gnu/libm-2.24.so > 7f11d23af000-7f11d23b0000 rw-p 00103000 08:05 400325 > /lib/x86_64-linux-gnu/libm-2.24.so > 7f11d23b0000-7f11d23c9000 r-xp 00000000 08:05 393373 > /lib/x86_64-linux-gnu/libz.so.1.2.8 > 7f11d23c9000-7f11d25c8000 ---p 00019000 08:05 393373 > /lib/x86_64-linux-gnu/libz.so.1.2.8 > 7f11d25c8000-7f11d25c9000 r--p 00018000 08:05 393373 > /lib/x86_64-linux-gnu/libz.so.1.2.8 > 7f11d25c9000-7f11d25ca000 rw-p 00019000 08:05 393373 > /lib/x86_64-linux-gnu/libz.so.1.2.8 > 7f11d25ca000-7f11d25cd000 r-xp 00000000 08:05 400324 > /lib/x86_64-linux-gnu/libdl-2.24.so > 7f11d25cd000-7f11d27cc000 ---p 00003000 08:05 400324 > /lib/x86_64-linux-gnu/libdl-2.24.so > 7f11d27cc000-7f11d27cd000 r--p 00002000 08:05 400324 > /lib/x86_64-linux-gnu/libdl-2.24.so > 7f11d27cd000-7f11d27ce000 rw-p 00003000 08:05 400324 > /lib/x86_64-linux-gnu/libdl-2.24.so > 7f11d27ce000-7f11d284f000 r-xp 00000000 08:05 804941 > /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2 > 7f11d284f000-7f11d2a4f000 ---p 00081000 08:05 804941 > /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2 > 7f11d2a4f000-7f11d2a50000 r--p 00081000 08:05 804941 > /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2 > 7f11d2a50000-7f11d2a51000 rw-p 00082000 08:05 804941 > /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2 > 7f11d2a51000-7f11d2ab6000 r-xp 00000000 08:05 788661 > /usr/lib/x86_64-linux-gnu/libmpfr.so.4.1.5 > 7f11d2ab6000-7f11d2cb5000 ---p 00065000 08:05 788661 > /usr/lib/x86_64-linux-gnu/libmpfr.so.4.1.5 > 7f11d2cb5000-7f11d2cb7000 r--p 00064000 08:05 788661 > /usr/lib/x86_64-linux-gnu/libmpfr.so.4.1.5 > 7f11d2cb7000-7f11d2cb8000 rw-p 00066000 08:05 788661 > /usr/lib/x86_64-linux-gnu/libmpfr.so.4.1.5 > 7f11d2cb8000-7f11d2ccf000 r-xp 00000000 08:05 802462 > /usr/lib/x86_64-linux-gnu/libmpc.so.3.0.0 > 7f11d2ccf000-7f11d2ece000 ---p 00017000 08:05 802462 > /usr/lib/x86_64-linux-gnu/libmpc.so.3.0.0 > 7f11d2ece000-7f11d2ecf000 r--p 00016000 08:05 802462 > /usr/lib/x86_64-linux-gnu/libmpc.so.3.0.0 > 7f11d2ecf000-7f11d2ed0000 rw-p 00017000 08:05 802462 > /usr/lib/x86_64-linux-gnu/libmpc.so.3.0.0 > 7f11d2ed0000-7f11d3071000 r-xp 00000000 08:05 807857 > /usr/lib/x86_64-linux-gnu/libisl.so.15.3.0 > 7f11d3071000-7f11d3270000 ---p 001a1000 08:05 807857 > /usr/lib/x86_64-linux-gnu/libisl.so.15.3.0 > 7f11d3270000-7f11d3271000 r--p 001a0000 08:05 807857 > /usr/lib/x86_64-linux-gnu/libisl.so.15.3.0 > 7f11d3271000-7f11d3278000 rw-p 001a1000 08:05 807857 > /usr/lib/x86_64-linux-gnu/libisl.so.15.3.0 > 7f11d3278000-7f11d329b000 r-xp 00000000 08:05 395153 > /lib/x86_64-linux-gnu/ld-2.24.so > 7f11d329c000-7f11d32c4000 rw-p 00000000 00:00 0 > 7f11d32c5000-7f11d33e3000 rw-p 00000000 00:00 0 > 7f11d33e4000-7f11d3457000 rw-p 00000000 00:00 0 > 7f11d3458000-7f11d349b000 rw-p 00000000 00:00 0 > 7f11d349b000-7f11d349c000 r--p 00023000 08:05 395153 > /lib/x86_64-linux-gnu/ld-2.24.so > 7f11d349c000-7f11d349d000 rw-p 00024000 08:05 395153 > /lib/x86_64-linux-gnu/ld-2.24.so > 7f11d349d000-7f11d349e000 rw-p 00000000 00:00 0 > 7ffea3539000-7ffea3596000 rw-p 00000000 00:00 0 > [stack] > 7ffea35a7000-7ffea35a9000 r--p 00000000 00:00 0 > [vvar] > 7ffea35a9000-7ffea35ab000 r-xp 00000000 00:00 0 > [vdso] > ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 > [vsyscall] Same here. > So I tried building without icecc: > > ./build_one.sh arm-1136jfs-linux-gnueabihf > > Result is the same as the first try, some "permission denied" on paths I have > certainly not mounted: > > -------------------------------------------------------------------------------------------------------------------------------------------------------- > target: > oselas.toolchain-2018.02.0-arm-1136jfs-linux-gnueabihf-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized_2018.02.0-0ptx1~bpo9+1_amd64.deb > -------------------------------------------------------------------------------------------------------------------------------------------------------- > > mkdir: cannot create directory '/mnt//data-temp': Permission denied > mkdir: cannot create directory '/mnt//data-temp': Permission denied > scripts/make_deb.sh: line 37: /mnt//data-temp/debian/control: No such file or > directory > scripts/make_deb.sh: line 52: /mnt//data-temp/debian/changelog: No such file > or directory > scripts/make_deb.sh: line 59: /mnt//data-temp/debian/compat: No such file or > directory > Copy data... > tar: /mnt//data-temp/tmp: Cannot open: No such file or directory > tar: Error is not recoverable: exiting now > scripts/make_deb.sh: line 67: cd: /mnt//data-temp: No such file or directory > Generate dependencies... > dh_shlibdeps: cannot read debian/control: No such file or directory > > /mnt/data_2/adahl/src/OSELAS.Toolchain/rules/image-toolchain-deb.make:28: > recipe for target > '/mnt/data_2/adahl/src/OSELAS.Toolchain/dist/oselas.toolchain-2018.02.0-arm-1136jfs-linux-gnueabihf-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized_2018.02.0-0ptx1~bpo9+1_amd64.deb' > failed > make: *** > [/mnt/data_2/adahl/src/OSELAS.Toolchain/dist/oselas.toolchain-2018.02.0-arm-1136jfs-linux-gnueabihf-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized_2018.02.0-0ptx1~bpo9+1_amd64.deb] > Error 2 > /mnt/data_2/adahl/src/OSELAS.Toolchain/build_all_v2.mk:49: die Regel für Ziel > „gstate/arm-1136jfs-linux-gnueabihf-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized.build“ > scheiterte > make: *** > [gstate/arm-1136jfs-linux-gnueabihf-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized.build] > Fehler 2 > ./build_one.sh arm-1136jfs-linux-gnueabihf 4149,48s user 330,76s system 134% > cpu 55:23,48 total > > ---- > > I get the same error, when trying to build other variants/ptxconfigs, so I > guess it affects all? Probably. See above to debug this. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de