clark jame wrote:
I'm attempting to build an ia64-linux cross compiler on an x86 linux
machine using GCC 4.4.2, and running into some troubles.
I'm only attempting to build gcc itself to generate ia64 assembly, I
don't need to assemble and link.
Seems that build/genmodes is not being generated. I have searched
around online for information pertaining
to this, but have not found a conclusive answer yet.
Any help would be appreciated! :)
$ ../gcc-4.4.2/gcc/configure --disable-libssp
--prefix=${PWD}../out_gcc --target=ia64-gnu-linux
Your $prefix value is something unexpected, it should be some predefined
constant but are
using a calculated value for that... Maybe the current configure
scripts could calculate this
or the shell should solve it but I cannot easily say what happens... Can
you do that? Earlier
this simply didn't work at all :(
$ make
gcc -c -DUSE_LIBUNWIND_EXCEPTIONS -g -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild -I../gcc-4.4.2/gcc
-I../gcc-4.4.2/gcc/build -I../gcc-4.4.2/gcc/../include
-I../gcc-4.4.2/gcc/../libcpp/include
-I../gcc-4.4.2/gcc/../libdecnumber
-I../gcc-4.4.2/gcc/../libdecnumber/dpd -I../libdecnumber -o
build/errors.o ../gcc-4.4.2/gcc/errors.c
build/genmodes -h > tmp-modes.h
/bin/sh: build/genmodes: No such file or directory
I tried the same "normally" with a normal $prefix value and saw that
'genmodes.o' was
created first, then 'errors.o' and then these linked into the 'genmodes'
executable. Are
you sure that your build didn't try to produce 'genmodes.o' and then
link with 'errors.o'?
Writing 'make clean' in '$BUILD/gcc' and then :
make > LogFile 2>&1
again in $BUILD and seeing from LogFile what happened when trying to compile
'genmodes.o' and 'errors.o' and to link them into 'genmodes', would gave
some sane
info...
BTW, I had the SuSE Linux 10.1/ia64 glibc installed and earlier
cross-GCCs made for
this target, so "borroving" its binutils and glibc via a symlink for
"generic" 'ia64-linux-gnu'
was easy and so I could see a complete cross-GCC for 'ia64-linux-gnu'
succeeding in
my quick try (5 minutes to prepare, configure and make, after that the
build PC did the
rest).