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]

Re: [discuss] Problem building cross compiler for x86_64


Hi,
  Thanks a lot guys......could successfully built my compiler. But
there are few points which i am confused . I made the compiler using
crosstool provided by Dan Kegel. However I want to create a rpm of it
but since my machine is behind a firewall I cant connect to net, but
the script by crosstool doesnt seem to work. I have copied the
required tarballs in the expected directory but seems whenever the
script runs it deletes it . I have exported NO_DOWNLOAD=1. Below is
the error

Before running the script

katiyar@nasvm1:~/test/build/tarballs-gcc-3.3.3-glibc-2.3.2> ls
binutils-2.15.tar.gz  gdb-6.3.tar.bz2     glibc-linuxthreads-2.3.2.tar.gz
gcc-3.3.3.tar.gz      glibc-2.3.2.tar.gz  linux-2.4.26.tar.gz

After running the script
+ test -f build/tarballs-gcc-3.3.3-glibc-2.3.2/glibc-2.3.2.tar.gz
+ abort 'file glibc-2.3.2.tar.gz not found'
+ echo file glibc-2.3.2.tar.gz not found
file glibc-2.3.2.tar.gz not found
+ exec false

Other doubt is that the compiler which I have built generates the
binary which runs on a 64 machine but not on a 32 bit machine. Is it
possible to build binaries which can run on both? .If yes what do i
need to do.

katiyar@nasvm1:/opt/crosstool/gcc-3.3.3-glibc-2.3.2/x86_64-unknown-linux-gnu/bin>
./temp64
-bash: ./temp64: cannot execute binary file

SLESAMD64:/tmp # ./temp64
Hello world on 64 bit

Thanks in advance

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org


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