[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-octave-devel] Bug#340773: FTBFS on m68k



Package: octave2.1
Version: 2.1.72-4
Severity: Serious
Tags: patch

octave2.1 fails to build from source on m68k. Part of the buildd log 
follows.

| /usr/bin/gcc -c  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CON
| FIG_H  -Wall -W -Wshadow -O0 -g0 main.c -o main.o
| /usr/bin/g++  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG
| _H  -Wall -W -Wshadow -O0 -g0 -rdynamic \
| -L..  -fPIC -s -o octave \
| main.o  \
| -L../liboctave -L../libcruft -L../src -Wl,-rpath -Wl,/usr/lib/octave-2.1.72 \
| -loctinterp -loctave  -lcruft   \
|  -llapack-3 -lblas-3 -lfftw3 -lreadline  -lncurses -ldl -lhdf5 -lz -lm  -lf2c
| /usr/lib/gcc/m68k-linux-gnu/4.0.3/../../../libf2c.so: undefined reference to `MA
| IN__'
| collect2: ld returned 1 exit status

The full build log may be found at 
<http://buildd.debian.org/fetch.php?&pkg=octave2.1&ver=2.1.72-5&arch=m68k&stamp=1132802535&file=log&as=raw>

On the bright side, I removed all the m68k-specific stuff from
debian/rules and installed gfortran. The build completed and I'm willing
to upload the result if you want.

Sample patch attached.

Thanks,

Stephen

-- 
Stephen R. Marenka     If life's not fun, you're not doing it right!
<stephen@marenka.net>
--- rules.old	2005-11-25 21:12:41.000000000 +0000
+++ rules	2005-11-25 21:18:36.000000000 +0000
@@ -64,9 +64,9 @@
 arch 		:= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
 ## edd 20 Jun 2002      no optimisation or debugging on baby systems
-ifneq "$(findstring $(arch), m68k-linux-gnu arm-linux-gnu)" ""
-compilerflags	= -O0 -g0
-endif
+#srm ifneq "$(findstring $(arch), m68k-linux-gnu arm-linux-gnu)" ""
+#srm compilerflags	= -O0 -g0
+#srm endif
 
 # edd 25 Aug 2002  arm does not have atlas
 ifeq ($(arch),arm-linux)
@@ -76,12 +76,12 @@
 ## edd 25 May 2003      actually, we need -O1 on m68k, as well as f2c
 ## edd 02 Jul 2003      use fort77 instead for its comman cmdline options
 #ifeq ($(arch),m68k-linux)
-ifneq "$(findstring $(arch), m68k-linux-gnu)" ""
-f77_compiler	= /usr/bin/fort77
-fc_flag		= --with-f77=/usr/bin/fort77 --without-f2c
-fc_libs		= -lf2c
-compilerflags	= -O0 -g0
-endif
+#srm ifneq "$(findstring $(arch), m68k-linux-gnu)" ""
+#srm f77_compiler	= /usr/bin/fort77
+#srm fc_flag		= --with-f77=/usr/bin/fort77 --without-f2c
+#srm fc_libs		= -lf2c
+#srm compilerflags	= -O0 -g0
+#srm endif
 
 #export DH_VERBOSE=1
 #export DH_COMPAT=3

Attachment: signature.asc
Description: Digital signature


Reply to: