You are not logged in.

#1 2016-09-02 12:15:56

jliew
Member
Registered: 2016-09-02
Posts: 3

ct-ng build failed

Hi,

I hope i posted at the right forum. I'm new with Arch Linux and cross-ng tool. I'm trying to cross compile for my qt application for the raspberry pi. I have downloaded cross-ng from the git, did some google and try and error, I am bit stuck. Yesterday I have installed a fresh Arch Linux on my virtual machine. Today I'm starting to setup my cross-compiler.

I ran configure, make, make install and"ct-ng menuconfig" everything seems fine. But after "ct-ng build" is run for some time and it's failed. this is the output message in my build.log


[ALL  ]    echo timestamp > s-config
[ALL  ]    build/genattrtab /ldisk/QtCrossCompileTool/raspberryPi3CC/.build/src/gcc-5.4.0/gcc/common.md /ldisk/QtCrossCompileTool/raspberryPi3CC/.build/src/gcc-5.4.0/gcc/config/arm/arm.md insn-conditions.md     -Atmp-attrtab.c -Dtmp-dfatab.c -Ltmp-latencytab.c
[ALL  ]    /usr/bin/bash /ldisk/QtCrossCompileTool/raspberryPi3CC/.build/src/gcc-5.4.0/gcc/../move-if-change tmp-opinit.c insn-opinit.c
[ALL  ]    echo timestamp > s-opinit
[ALL  ]    build/genautomata /ldisk/QtCrossCompileTool/raspberryPi3CC/.build/src/gcc-5.4.0/gcc/common.md /ldisk/QtCrossCompileTool/raspberryPi3CC/.build/src/gcc-5.4.0/gcc/config/arm/arm.md   insn-conditions.md > tmp-automata.c
[ALL  ]    /usr/bin/bash: line 1: 24381 Killed                  build/genautomata /ldisk/QtCrossCompileTool/raspberryPi3CC/.build/src/gcc-5.4.0/gcc/common.md /ldisk/QtCrossCompileTool/raspberryPi3CC/.build/src/gcc-5.4.0/gcc/config/arm/arm.md insn-conditions.md > tmp-automata.c
[ERROR]    make[2]: *** [Makefile:2137: s-automata] Error 137
[ALL  ]    make[2]: *** Waiting for unfinished jobs....
[ALL  ]    /usr/bin/bash /ldisk/QtCrossCompileTool/raspberryPi3CC/.build/src/gcc-5.4.0/gcc/../move-if-change tmp-attrtab.c    insn-attrtab.c
[ALL  ]    /usr/bin/bash /ldisk/QtCrossCompileTool/raspberryPi3CC/.build/src/gcc-5.4.0/gcc/../move-if-change tmp-dfatab.c     insn-dfatab.c
[ALL  ]    /usr/bin/bash /ldisk/QtCrossCompileTool/raspberryPi3CC/.build/src/gcc-5.4.0/gcc/../move-if-change tmp-latencytab.c insn-latencytab.c
[ALL  ]    echo timestamp > s-attrtab
[ALL  ]    rm gcc.pod
[ALL  ]    make[2]: Leaving directory '/ldisk/QtCrossCompileTool/raspberryPi3CC/.build/armv8-rpi3-linux-gnueabihf/build/build-cc-gcc-core-pass-1/gcc'
[ERROR]    make[1]: *** [Makefile:4100: all-gcc] Error 2
[ALL  ]    make[1]: Leaving directory '/ldisk/QtCrossCompileTool/raspberryPi3CC/.build/armv8-rpi3-linux-gnueabihf/build/build-cc-gcc-core-pass-1'
[ERROR] 
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing pass-1 core C gcc compiler'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@259]
[ERROR]  >>        called from: do_gcc_core_backend[scripts/build/cc/100-gcc.sh@696]
[ERROR]  >>        called from: do_gcc_core_pass_1[scripts/build/cc/100-gcc.sh@271]
[ERROR]  >>        called from: do_cc_core_pass_1[scripts/build/cc.sh@35]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@624]
[ERROR]  >>

I have 2 version of gcc installed,

[xxx@localhost raspberryPi3CC]$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/6.1.1/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 6.1.1 20160802 (GCC)

[xxx@localhost raspberryPi3CC]$ g++-5 -v
Using built-in specs.
COLLECT_GCC=g++-5
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/5.4.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /build/gcc5/src/gcc-5.4.0/configure --prefix=/usr --build=i686-pc-linux-gnu --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release --program-suffix=-5 --enable-version-specific-runtime-libs
Thread model: posix
gcc version 5.4.0 (GCC)

Is that the reason my gcc is on the latest version 6.00 but the cross-ng is expecting 5.4.0?

Is the anyone can help me to resolve this issue please?


Thanks.

regards,
jen

Offline

Board footer

Powered by FluxBB