This is the mail archive of the crossgcc@sources.redhat.com 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]

gcc 3.0.3 for alpha-osf on x86-linux


Hi,

First of all, has anyone (or is it even possible) cross compiled a
``alpha-dec-osf'' gcc 3.0.3 on a x86-linux system? I have been trying
to compile gcc-3.0.3 for Alpha (COFF binaries) on a i686 running Linux
2.4.17 with gcc 3.0.3.

I successfully compiled binutils-2.11.2 with target=alpha-unknown-osf.
However, I have been running into numerous problems with 'make
LANGUAGES=c' on gcc-3.0.3.

(#1) I get an error trying to build mips-tfile.c and mips-tdump.c. After
figuring out these two files weren't very important (mips-tfile for
putting debug information for gdb and mips-tdump to build an offline
utility), I replaced them with dummy main () functions returning 0.

(#2) In file included from ../../gcc-3.0.3/gcc/libgcc2.c:47:
../../gcc-3.0.3/gcc/libgcc2.h:101: no data type for mode `TI'

I presume that this error is because of a 32-to-64 bit cross. To fix
this problem, I changed UNITS_PER_WORD in gcc/config/alpha/alpha.h
from 8 to 4, which implies that lines 101 and 102 in gcc/libgcc2.h
will not be executed (found the solution from
http://gcc.gnu.org/ml/gcc-patches/2000-09/msg01133.html)

(#3) ../../gcc-3.0.3/gcc/libgcc2.c: In function `__muldi3':
../../gcc-3.0.3/gcc/libgcc2.c:363: Internal compiler error in
gen_lowpart, at emit-rtl.c:1072
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [libgcc/./_muldi3.o] Error 1

Am I getting this error because of #2 fix? Any solutions?

Thanks in advance.
		Sai


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


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