AnsweredAssumed Answered

Install L3.0.35_3.0.0_121207 on ubuntu 12.04.2 amd64 failed

Question asked by jia jerry on Apr 24, 2013
Latest reply on Apr 27, 2013 by Wigros Sun
Branched to a new discussion

Hi All:

I have update my server to 64bits version of ubuntu 12.04.2

It works fine for 32bits version of ubuntu 12.04.2 after I fixed lkc-1.4, mux_sever-1.0, elftosb-10.12.01 and busybox-1.20.2 compilation erros.

 

The question is the cross compiler aka /opt/freescale/pkgs/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12-1.i386.rpm is prebuild for 32bits, it can't works on 64bits environment. I also try to build gcc-4.4.4-glibc-2.11.1-multilib from source code as gcc4.4.4_multilib_toolchain_release_note.pdf mentioned.

I can make it through on 32bits env but failed on 64bits env.


So could anyone kindly to tell me where to get the prebuild verion for 64bits env or how to build it from source code ?

Thanks.

 

Here is the error log:

======================

LTIB failed:

Installing: gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12-1.i386.rpm

sudo /opt/freescale/ltib/usr/bin/rpm --dbpath /opt/freescale/ltib/var/lib/rpm -ivh --force --ignorearch --nodeps /opt/freescale/pkgs/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12-1.i386.rpm

Preparing...                ########################################### [100%]

   1:gcc-4.6.2-glibc-2.13-li########################################### [100%]

sh: 2: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-gcc: not found

 

Error /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-gcc can't compile a simple hello world test program:

 

echo '#include <stdio.h>

int main() { printf("hello world"); }' | /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-gcc -x c - -c -o /dev/null

 

 

traceback:

main::check_toolchain_setup:2625

  main::pre_build_checks:1465

   main:569

 

 

Started: Thu Apr 25 00:29:21 2013

Ended:   Thu Apr 25 00:30:31 2013

Elapsed: 70 seconds

 

 

 

======================

Cross Tool build failed:

[ALL  ]conversion.cc:(.text.startup+0xa): undefined reference to `std::ios_base::Init::Init()'
[ALL  ]conversion.cc:(.text.startup+0x19): undefined reference to `std::ios_base::Init::~Init()'
[ALL  ]/home/jerry/sandbox/build_toolchain_gcc4.4.4/crosstool-ng-3fb8b4acdc4a/tmp/arm-fsl-linux-gnueabi/build/static/lib/libppl.a(conversion.o):(.eh_frame+0xaf): undefined reference to `__gxx_personality_v0'
[ALL  ]/home/jerry/sandbox/build_toolchain_gcc4.4.4/crosstool-ng-3fb8b4acdc4a/tmp/arm-fsl-linux-gnueabi/build/static/lib/libppl.a(stdiobuf.o):(.rodata._ZTIN23Parma_Polyhedra_Library8stdiobufE[typeinfo for Parma_Polyhedra_Library::stdiobuf]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
[ALL  ]/home/jerry/sandbox/build_toolchain_gcc4.4.4/crosstool-ng-3fb8b4acdc4a/tmp/arm-fsl-linux-gnueabi/build/static/lib/libppl.a(stdiobuf.o):(.rodata._ZTIN23Parma_Polyhedra_Library8stdiobufE[typeinfo for Parma_Polyhedra_Library::stdiobuf]+0x10): undefined reference to `typeinfo for std::basic_streambuf<char, std::char_traits<char> >'

Outcomes