Subject: Re: Compile prob
To: RiscBSD <port-arm32@NetBSD.ORG>
From: Patrick Welche <prlw1@cus.cam.ac.uk>
List: port-arm32
Date: 12/18/1996 17:49:39
> should have found that man page. The file has a "g" as first letter.
> "make*" doesn't match "gmake".
Sorry - my fault - I was looking for the make man page. The chmod of
/usr/share/man/cat1 worked nicely, and as it was rrr find didn't go
inside it - thank you for the replies.
> Try recompiling with a larger datasize. IIRC the default datasize is 16MB.
> To increase it to e.g. 30MB do
Update on my compiler problem: (long story)
I tried to ld any 2 object files and got the same problem, even though
nm <object file> seemed to give sensible output ie., the object file
wasn't corrupt => as all the original sources were in Fortran, I
concatenated them and converted that to c. It may be that in the
conversion a symbol in one Fortran file didn't get converted into the
same symbol when it appeared in another Fortran file. Now I am still
stuck as the resultant c source huge, so I get errors at the assembler
stage. Unfortunately I don't believe the validity of the error
messages. Some details are included below and I wonder what to do as I
think there is ample memory in the machine to achieve the compile
(all ran without X and just me logged in).
Any hints appreciated!
Patrick
==========================================================================
The error with optimising:
/usr/libexec/cc1 huge.i -quiet -dumpbase huge.c -O -version -o huge.s
GNU C version 2.7.2.1 (ARM/NetBSD) compiled by GNU C version 2.7.2.1.
as -o huge.o huge.s
huge.s: Assembler messages:
huge.s:293834: Error: Garbage following instruction -- statement `stmia r2,{r3,r4},#0]'
huge.s:293849: Fatal error:Symbol L9589 already defined.
*** Error code 1
Stop.
==========================================================================
The error without optimising:
/usr/libexec/cc1 huge.i -quiet -dumpbase huge.c -version -o huge.s
GNU C version 2.7.2.1 (ARM/NetBSD) compiled by GNU C version 2.7.2.1.
as -o huge.o huge.s
huge.s: Assembler messages:
huge.s:215886: Error: bad instruction `l [r0,#-((4+.-LC4125)&4095)]'
huge.s:215895: Fatal error:Symbol L4602 already defined.
*** Error code 1
Stop.
==========================================================================
limits used:
cputime unlimited
filesize unlimited
datasize 262144 kbytes
stacksize 8192 kbytes
coredumpsize unlimited
memoryuse 35532 kbytes
memorylocked 35532 kbytes
maxproc 532
openfiles 1772
==========================================================================
The makefile:
gulp: huge.o
ld -e start -dc -dp /usr/lib/crt0.o -L/usr/libexec huge.o -lgcc -lc -lgcc -lf2c -lm -o gulp
huge.o: huge.s
as -o huge.o huge.s
huge.s: huge.c huge.i
/usr/libexec/cc1 huge.i -quiet -dumpbase huge.c -version -o huge.s
huge.i: huge.c
/usr/libexec/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -Darm32 -D__arm32__ -D__arm6__ -Driscbsd -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -D__unix__ -D__arm32__ -D__arm32__ -D__arm6__ -D__riscbsd__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -D__unix -D__arm32 -D__riscbsd '-Asystem(unix) -Asystem(NetBSD) -Acpu(arm) -Amachine(arm)' -D__CHAR_UNSIGNED__ -I/usr/local/include huge.c huge.i
huge.c: huge.f sizes.f
f2c -Nn802 -Nx800 huge.f
huge.f: abc.f def.f ghi.f klm.f nop.f q.f rs.f tuv.f
cp abc.f huge.f
cat def.f >> huge.f
cat ghi.f >> huge.f
cat klm.f >> huge.f
cat nop.f >> huge.f
cat q.f >> huge.f
cat rs.f >> huge.f
cat tuv.f >> huge.f