Port-mips archive

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

Re: pkgsrc build error for g95



On Mon, Apr 4, 2011 at 6:47 AM, Izumi Tsutsui 
<tsutsui%ceres.dti.ne.jp@localhost> 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

When I do "make configure" for g95, it apparently does not build a
Makefile for libf95:

root@taz:/usr/pkgsrc/lang/g95 # cd work/g95-0.92/libf95.a-0.92
root@taz:/usr/pkgsrc/lang/g95/work/g95-0.92/libf95.a-0.92 # ls -1
AUTHORS
COPYING
ChangeLog
INSTALL
Makefile.am
Makefile.in
NEWS
README
aclocal.m4
config.guess
config.h.in
config.sub
configure
configure.in
depcomp
install-sh
intrinsics
io
ltmain.sh
math
missing
quad
runtime
runtime.h
safe-ctype.h
unix
windows
root@taz:/usr/pkgsrc/lang/g95/work/g95-0.92/libf95.a-0.92 # ls -l Makefile.*
-rw-r--r--  1 andy  users    2925 Oct  8  2008 Makefile.am
-rw-r--r--  1 andy  users  259399 Oct  8  2008 Makefile.in

I don't know enough about hacking pkgsrc to make this happen properly,
or to make the CFLAGS get put into the makefile for this libf95
software.

I'm going to try setting a CFLAGS variable with the CFLAGS line from
the g95 Makefile to see what happens. The problem is, it takes me a
few hours to know if it failed :)

Andy


Home | Main Index | Thread Index | Old Index