5 Apr 2011 17:21
Re: pkgsrc build error for g95
Andy Ruhl <acruhl <at> gmail.com>
2011-04-05 15:21:49 GMT
2011-04-05 15:21:49 GMT
On Mon, Apr 4, 2011 at 6:47 AM, Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp> wrote: >> Well, just to try to see if it works, I set this in /etc/mk.conf: >> >> # cat /etc/mk.conf >> CFLAGS+= -march=mips3 -mabi=32 > > I'm not sure if pkgsrc system handles CFLAGS in mk.conf for packages build, > but we can edit Makefile after "make configure" in the package dir.. Well, I think I already knew this, but the g95 Makefile already has the correct CFLAGS in it: (from /usr/pkgsrc/lang/g95/work/g95-0.92/Makefile) CFLAGS = -O2 -march=mips3 -mabi=32 -DIN_GCC -Wall -Wmissing-prototypes But the failure is with this other software inside the g95 source dir: gcc -DHAVE_CONFIG_H -I. -D_FILE_OFFSET_BITS=64 -DHAVE_REAL_10=0 -fPIC -g -O2 -MT mutex.o -MD -MP -MF .deps/mutex.Tpo -c -o mutex.o `test -f 'runtime/mutex.c ' || echo './'`runtime/mutex.c /var/tmp//ccf6fbaP.s: Assembler messages: /var/tmp//ccf6fbaP.s:30: Error: opcode not supported on this processor: mips1 (m ips1) `ll $5,0($4)' /var/tmp//ccf6fbaP.s:32: Error: opcode not supported on this processor: mips1 (m ips1) `sc $6,0($4)' gmake[1]: *** [mutex.o] Error 1 gmake[1]: Leaving directory `/usr/pkgsrc/lang/g95/work/g95-0.92/libf95.a-0.92' gmake: *** [all] Error 2 *** Error code 2(Continue reading)
RSS Feed