[PATCH] Re: gcc fails to build on debian-mipsel
On Mon, Apr 02, 2001 at 02:28:17PM -0400, Ben Collins wrote:
> See that link line? There is no "-lc". That's where the problem is
> coming from, and I've no idea why -lc isn't there. Check the mips headers
> in gcc/config/ and the generated spec file to see if you can find where it
> adds the crtend etc.. and why it doesn't have -lc in there aswell (maybe
> compare to the other archs like sparc or i386).
Ok - i guess i got it - A couple of patches would not be applied on
mipsel as they have been on mips - Here is the patch which fixes this.
Now the build comes past the first stage1 stuff.
Please apply:
diff -Nur gcc-2.95-2.95.3.ds5/debian/rules.defs /home/flo/gcc-2.95-2.95.3.ds5/debian/rules.defs
--- gcc-2.95-2.95.3.ds5/debian/rules.defs Mon Apr 2 23:40:44 2001
+++ /home/flo/gcc-2.95-2.95.3.ds5/debian/rules.defs Mon Apr 2 23:29:43 2001
@@ -81,7 +81,7 @@
with_pascal := disabled for architecture $(DEB_HOST_ARCH)
endif
ifneq ($(DEB_HOST_ARCH),i386)
- ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),avr mips))
+ ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),avr mips mipsel))
with_pascal := disabled for architecture $(DEB_HOST_ARCH)
endif
endif
@@ -97,7 +97,7 @@
with_objc_gc := yes
# disable ObjC garbage collection library (needs libgc5)
ifneq ($(DEB_HOST_ARCH),i386)
- ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),avr hurd-i386 m68k mips s390))
+ ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),avr hurd-i386 m68k mipsel mips s390))
with_objc_gc := disabled for architecture $(DEB_HOST_ARCH)
endif
#else
@@ -111,7 +111,7 @@
with_java := yes
# build gcj only on architectures, where libgcj-2.95.1 can be built as well.
ifneq ($(DEB_HOST_ARCH),i386)
- ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),arm avr hurd-i386 m68k mips))
+ ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),arm avr hurd-i386 m68k mipsel mips))
with_java := disabled for architecture $(DEB_HOST_ARCH)
endif
endif
diff -Nur gcc-2.95-2.95.3.ds5/debian/rules.patch /home/flo/gcc-2.95-2.95.3.ds5/debian/rules.patch
--- gcc-2.95-2.95.3.ds5/debian/rules.patch Mon Apr 2 23:40:44 2001
+++ /home/flo/gcc-2.95-2.95.3.ds5/debian/rules.patch Mon Apr 2 23:36:40 2001
@@ -93,7 +93,7 @@
debian_patches += 68060-build gcc-m68k-pic
endif
-ifeq ($(DEB_HOST_ARCH),mips)
+ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),mips mipsel))
debian_patches += gcc-mips-linux gcc-mips-linux-abi gcc-mips-linux-ctors \
gcc-mips-mad
endif
--
Florian Lohoff flo@rfc822.org +49-5201-669912
Why is it called "common sense" when nobody seems to have any?
Reply to: