This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Build or not a build that is the question.
- From: ackek <ackek at tiscali dot se>
- To: gcc at gnu dot org
- Date: Sat, 9 Feb 2002 00:15:48 +0100
- Subject: Build or not a build that is the question.
- Organization: Hjemme
Hello.
I have build an gcc-3.0.3 cross target=s390x-linux-gnu
host=i686-pc-linux-gnu, and it looks like it works. I'm just do it for fun
and don't have an s390x, so I don't think it is a build. The configuration
thats works is this for a basic compiler, this run real clean.
../gcc-3.0.3/configure --host=i686-pc-linux-gnu --target=s390x-linux-gnu
--prefix=$prefix --with-headers=$prefix/src/linux/include
--enable-languages="c" --with-libs=$prefix/lib/ --disable-multilib
It compiles glibc-2.2.5 wiht linuxthreads add-ons.
After install glibc I try
../gcc-3.0.3/configure --host=i686-pc-linux-gnu --target=s390x-linux-gnu
--prefix=$prefix --with-headers=$prefix/include --enable-languages="$LANG"
--with-libs=$prefix/lib/
There $LANG was "c,c++" and "c,c++,java" , and that also work.
It don't compiled the Lnux-kernel 2.4.17, but it take a time before it stop.
And perhaps I give up to fast.
It is wrong to set "--with-headers=$prefix/include" but this is the only way
to not have missing files, you also need to copy /asm/ and /linux/ to
$prefix/include/ from $prefix/src/linux/include/ or use absolute links.
I now this is wrong list but to be complet, I use a cvs binutils-2002-02-05
and this diff.
-------------------------------------------cut--------------------------------------------
diff -urN binutils/opcodes/Makefile.am binutils-s390/opcodes/Makefile.am
--- binutils/opcodes/Makefile.am Wed Feb 6 22:31:16 2002
+++ binutils-s390/opcodes/Makefile.am Wed Feb 6 18:17:33 2002
@@ -101,6 +101,9 @@
pj-opc.c \
ppc-dis.c \
ppc-opc.c \
+ s390-mkopc.c \
+ s390-opc.c \
+ s390-dis.c \
sh-dis.c \
sparc-dis.c \
sparc-opc.c \
@@ -278,6 +281,13 @@
ia64-asmtab.c: @MAINT@ ia64-gen ia64-ic.tbl ia64-raw.tbl ia64-waw.tbl
ia64-war.
tbl
here=`pwd`; cd $(srcdir); $$here/ia64-gen > ia64-asmtab.c
+
+s390-mkopc: s390-mkopc.c
+ $(CC_FOR_BUILD) -o s390-mkopc $(srcdir)/s390-mkopc.c
+
+s390-opc.tab: s390-mkopc s390-opc.txt
+ ./s390-mkopc < $(srcdir)/s390-opc.txt > s390-opc.tab
+
# This dependency stuff is copied from BFD.
DEP: dep.sed $(CFILES) $(HFILES) config.h
@@ -480,6 +490,10 @@
$(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
ppc-opc.lo: ppc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
$(INCDIR)/opcode/ppc.h opintl.h
+s390-opc.lo: s390-opc.c s390-opc.tab $(INCDIR)/ansidecl.h \
+ $(INCDIR)/opcode/s390.h
+s390-dis.lo: s390-dis.c $(INCDIR)/ansidecl.h sysdep.h \
+ config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/s390.h
sh-dis.lo: sh-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
sparc-dis.lo: sparc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
diff -urN binutils/opcodes/configure.in binutils-s390/opcodes/configure.in
--- binutils/opcodes/configure.in Wed Feb 6 22:31:16 2002
+++ binutils-s390/opcodes/configure.in Wed Feb 6 20:04:16 2002
@@ -202,6 +202,7 @@
bfd_pyramid_arch) ;;
bfd_romp_arch) ;;
bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
+ bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
bfd_sh_arch)
ta="$ta sh-dis.lo" ;; #(1)
bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
-------------------------------------------cut--------------------------------------------
(1) This look wrong but I don't do it.