This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ct-ng 1.4.2: problem in creating x86_64 toolchain


Hello,

I used ct-ng-1.4.2 to build a toolchain for x86-64.
The steps I did:
1. ct-ng x86_64-unknown-linux-gnu
2. Remove java
3. ct-ng build

The toolchain was build OK. When I ran "x86_64-unknown-linux-gnu --v" I got:

Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with:
/home/zvivered/GNU/ct-ng-1.4.2/working/src/gcc-4.3.2/configure
--build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu
--target=x86_64-unknown-linux-gnu
--prefix=/home/zvivered/GNU/ct-ng-1.4.2/release_64
--with-sysroot=/home/zvivered/GNU/ct-ng-1.4.2/release_64/x86_64-unknown-linux-gnu//sys-root
--enable-languages=c,c++ --disable-multilib
--with-gmp=/home/zvivered/GNU/ct-ng-1.4.2/release_64
--with-mpfr=/home/zvivered/GNU/ct-ng-1.4.2/release_64
--with-pkgversion=crosstool-NG-1.4.2 --enable-__cxa_atexit
--with-local-prefix=/home/zvivered/GNU/ct-ng-1.4.2/release_64/x86_64-unknown-linux-gnu//sys-root
--disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99
--enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.3.2 (crosstool-NG-1.4.2)

But when I tried: ldd ld-2.9.so
I got: not a dynamic executable

I also tried ldd myapp.out which is a very simple executable I created
and got the same response.

I built a vanilla kernel with this toolchain. But when this kernel
searches for init, it can't find one. When I replaced the init with
one created with an i686 toolchain it worked fine.

Then I looked at build.log and saw some errors starting from line 25150 :
[ALL  ]    objdump: init-first.o: File format not recognized

What is the reason for those errors ?

By the way, ct-ng is a great tool !!!.
I built a toolchain for i686 and it works great.

Thanks,
Zvika Vered

Attachment: .config
Description: Binary data

Attachment: build.log.bz2
Description: BZip2 compressed data

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]