* [Linux-ia64] gcc 3.0.2 questions
@ 2001-11-12 23:23 Jim Hollenback
2001-11-13 0:16 ` Boehm, Hans
2001-11-19 22:13 ` Jim Wilson
0 siblings, 2 replies; 3+ messages in thread
From: Jim Hollenback @ 2001-11-12 23:23 UTC (permalink / raw)
To: linux-ia64
Before I go digging around in a bunch of code thought I would ask.
I'm attempting to build gcc3.0.2 for cross compiling. Specifically
to run on a IA-32 system for building IA-64 bits. During the
configure stage it seems configure and then trys to configure fastjar.
Is this for java? Anyhow it fails with
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking size of char... configure: error: can not run test program while cross
compiling
Configure in /usr/src/gnu/build-gcc/fastjar failed, exiting.
Is there anyway if disabling this?
Being the curious type I went ahead and tried to compile. Ended up with
rm -f obstack.c
ln -s ../../gcc-3.0.2/gcc/../libiberty/obstack.c obstack.c
gcc -c -DCROSS_COMPILE -DIN_GCC -O2 -W -Wall -Wwrite-strings -Wstrict-pro
pes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONF
-DGENERATOR_FILE -I. -I. -I../../gcc-3.0.2/gcc -I../../gcc-3.0.2/gcc/. -
../gcc-3.0.2/gcc/config -I../../gcc-3.0.2/gcc/../include \
obstack.c -o obstack.o
gcc -DCROSS_COMPILE -DIN_GCC -O2 -W -Wall -Wwrite-strings -Wstrict-protot
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_
GENERATOR_FILE -o gengenrtl \
gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" in
echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;;
` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac `
./gengenrtl -h >tmp-genrtl.h
make[1]: *** [s-genrtl] Error 4
make[1]: Leaving directory `/usr/src/gnu/build-gcc/gcc'
make: *** [all-gcc] Error 2
Is this related to the fastjar failure.
TIA,
Jim
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [Linux-ia64] gcc 3.0.2 questions
2001-11-12 23:23 [Linux-ia64] gcc 3.0.2 questions Jim Hollenback
@ 2001-11-13 0:16 ` Boehm, Hans
2001-11-19 22:13 ` Jim Wilson
1 sibling, 0 replies; 3+ messages in thread
From: Boehm, Hans @ 2001-11-13 0:16 UTC (permalink / raw)
To: linux-ia64
How did you configure the compiler? I believe fastjar is needed only for
Java.
I wouldn't recommend using the 3.0.2 compiler for Java on Itanium. I
haven't tried it, but I believe it has serious problems with generating
object layout information for the garbage collector. 3.0 and 3.0.1 are
probably more functional.
If you want the Java compiler, your best bet at this stage is probably the
3.1 cvs tree and asking me for some patches. But I haven't built an IA32 to
IA64 cross-compiler in a long time.
Hans
> -----Original Message-----
> From: Jim Hollenback [mailto:jholly@cup.hp.com]
> Sent: Monday, November 12, 2001 3:24 PM
> To: linux-ia64@linuxia64.org
> Subject: [Linux-ia64] gcc 3.0.2 questions
>
>
> Before I go digging around in a bunch of code thought I would ask.
>
> I'm attempting to build gcc3.0.2 for cross compiling. Specifically
> to run on a IA-32 system for building IA-64 bits. During the
> configure stage it seems configure and then trys to configure fastjar.
> Is this for java? Anyhow it fails with
>
> checking whether struct tm is in sys/time.h or time.h...
> (cached) time.h
> checking size of char... configure: error: can not run test
> program while cross
> compiling
> Configure in /usr/src/gnu/build-gcc/fastjar failed, exiting.
>
> Is there anyway if disabling this?
>
> Being the curious type I went ahead and tried to compile.
> Ended up with
>
> rm -f obstack.c
> ln -s ../../gcc-3.0.2/gcc/../libiberty/obstack.c obstack.c
> gcc -c -DCROSS_COMPILE -DIN_GCC -O2 -W -Wall
> -Wwrite-strings -Wstrict-pro
> pes -Wmissing-prototypes -Wtraditional -pedantic
> -Wno-long-long -DHAVE_CONF
> -DGENERATOR_FILE -I. -I. -I../../gcc-3.0.2/gcc
> -I../../gcc-3.0.2/gcc/. -
> ../gcc-3.0.2/gcc/config -I../../gcc-3.0.2/gcc/../include \
> obstack.c -o obstack.o
> gcc -DCROSS_COMPILE -DIN_GCC -O2 -W -Wall -Wwrite-strings
> -Wstrict-protot
> -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
> -DHAVE_CONFIG_
> GENERATOR_FILE -o gengenrtl \
> gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac
> ` ` case "" in
> echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case ""
> in ?*) echo ;;
> ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac `
> ./gengenrtl -h >tmp-genrtl.h
> make[1]: *** [s-genrtl] Error 4
> make[1]: Leaving directory `/usr/src/gnu/build-gcc/gcc'
> make: *** [all-gcc] Error 2
>
> Is this related to the fastjar failure.
>
>
> TIA,
> Jim
>
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Linux-ia64] gcc 3.0.2 questions
2001-11-12 23:23 [Linux-ia64] gcc 3.0.2 questions Jim Hollenback
2001-11-13 0:16 ` Boehm, Hans
@ 2001-11-19 22:13 ` Jim Wilson
1 sibling, 0 replies; 3+ messages in thread
From: Jim Wilson @ 2001-11-19 22:13 UTC (permalink / raw)
To: linux-ia64
>Configure in /usr/src/gnu/build-gcc/fastjar failed, exiting.
>Is there anyway if disabling this?
If you rename the fastjar directory in your source tree, then configure
won't find it. fastjar should configure OK for a simple cross compiler
though.
>./gengenrtl -h >tmp-genrtl.h
>make[1]: *** [s-genrtl] Error 4
>Is this related to the fastjar failure.
This isn't caused by the fastjar problem. However, it may be failing for
the same reason.
gengenrtl is the first program run on the build machine when doing a gcc build.
If gengenrtl fails, then that may indicate that your configure build, host,
and/or target options are wrong. That same problem could have caused the
fastjar configure error.
How did you configure the cross compiler? Check the config.status and
gcc/config.status files to make sure that the build/host/target options are
what you expected.
Jim
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-11-19 22:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-12 23:23 [Linux-ia64] gcc 3.0.2 questions Jim Hollenback
2001-11-13 0:16 ` Boehm, Hans
2001-11-19 22:13 ` Jim Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox