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> >' |
Solved! Go to Solution.
Hello,Jerry,
I summarized a document and paste it here, it is 32 bit ubuntu, I know you are using 64bit ubuntu, So when you refer to it, you please install the following packages :
# Packages required for 64-bit Ubuntu
# Do "uname -a" and see if the word "x86_64" shows up.
if uname -a|grep -sq 'x86_64'; then
sudo apt-get install ia32-libs libc6-dev-i386 lib32z1
fi
# The following recommended for Linux development.
# They are not required by LTIB.
sudo apt-get install gparted openssh-server
sudo apt-get install nfs-common nfs-kernel-server lintian
sudo apt-get install git-core git-doc git-email git-gui gitk
sudo apt-get install diffstat indent tofrodos fakeroot doxygen uboot-mkimage
sudo apt-get install sendmail mailutils meld atftpd sharutils
sudo apt-get install manpages-dev manpages-posix manpages-posix-dev linux-doc
sudo apt-get install vnc4server xvnc4viewer
<Note: For 32bit ubuntu use following packages>
In this document , the following packages are for 32 bit ubuntu:
# Install LTIB dependant packages
sudo apt-get install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev
sudo apt-get install libdbus-glib-1-dev liborbit2-dev intltool
sudo apt-get install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool
sudo apt-get install uuid-dev liblzo2-dev
sudo apt-get install tcl dpkg
Regards,
Weidong
Hello,Jerry,
I summarized a document and paste it here, it is 32 bit ubuntu, I know you are using 64bit ubuntu, So when you refer to it, you please install the following packages :
# Packages required for 64-bit Ubuntu
# Do "uname -a" and see if the word "x86_64" shows up.
if uname -a|grep -sq 'x86_64'; then
sudo apt-get install ia32-libs libc6-dev-i386 lib32z1
fi
# The following recommended for Linux development.
# They are not required by LTIB.
sudo apt-get install gparted openssh-server
sudo apt-get install nfs-common nfs-kernel-server lintian
sudo apt-get install git-core git-doc git-email git-gui gitk
sudo apt-get install diffstat indent tofrodos fakeroot doxygen uboot-mkimage
sudo apt-get install sendmail mailutils meld atftpd sharutils
sudo apt-get install manpages-dev manpages-posix manpages-posix-dev linux-doc
sudo apt-get install vnc4server xvnc4viewer
<Note: For 32bit ubuntu use following packages>
In this document , the following packages are for 32 bit ubuntu:
# Install LTIB dependant packages
sudo apt-get install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev
sudo apt-get install libdbus-glib-1-dev liborbit2-dev intltool
sudo apt-get install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool
sudo apt-get install uuid-dev liblzo2-dev
sudo apt-get install tcl dpkg
Regards,
Weidong