Port-mips archive

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

Re: pkgsrc build error for g95



On Wed, Mar 30, 2011 at 8:22 AM, Izumi Tsutsui 
<tsutsui%ceres.dti.ne.jp@localhost> wrote:
> workaround:
> - use -march=mips3 -mabi=32 in CFLAGS (or CPUFLAGS etc)
>  so gcc/gas accepts ll/sc
>  (but generated binaries won't run on MIPS1 machines)

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 could see these options being used early in the build of g95, but it
seems like they didn't get used later during the build of this
libf95.a-0.92 component. The failure was the same:

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//cckQQmpt.s: Assembler messages:
/var/tmp//cckQQmpt.s:30: Error: opcode not supported on this
processor: mips1 (mips1) `ll $5,0($4)'
/var/tmp//cckQQmpt.s:32: Error: opcode not supported on this
processor: mips1 (mips1) `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

Stop.
make: stopped in /usr/pkgsrc/lang/g95
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/g95

I'll see if I can figure out how to solve that. I want to make sure
that g95 will build before I pursue some fix for this.

Thanks Izumi.

Andy


Home | Main Index | Thread Index | Old Index