[nhc-users] failure to compile on mips-sgi6.5

William S. wstan at xs4all.nl
Fri Dec 12 15:03:38 EST 2003


Malcolm,

Made the change here: 'src/runtime/Kernel/Makefile' as follows.

${SOBJS}: ${OBJDIR}/%.o: %.c
        ${CC} -S ${CFLAGS} -o - $< | sed '/.align 32/s/32/4/' |\
                 ${CC} -c -x assembler-with-cpp ${CFLAGS} -o $@ -

Now I have:

wstan at octane 4% gmake
cd src/runtime;        gmake install nhc98heap
gmake[1]: Entering directory `/usr/people/wstan/nhc98-1.16/src/runtime'
cd Kernel; gmake all
gmake[2]: Entering directory `/usr/people/wstan/nhc98-1.16/src/runtime/Kernel'
Link bytecode.h already exists.
Link cinterface.h already exists.
Link mutlib.h already exists.
Link newmacros.h already exists.
Link node.h already exists.
Link runtime.h already exists.
Link stableptr.h already exists.
Link newbytecode.h already exists.
Link bytecode_o.h already exists.
gmake[2]: Leaving directory `/usr/people/wstan/nhc98-1.16/src/runtime/Kernel'
cd Integer; gmake all
gmake[2]: Entering directory `/usr/people/wstan/nhc98-1.16/src/runtime/Integer'
Link flt.h already exists.
gcc -c -I../Kernel -I/usr/people/wstan/nhc98-1.16/include  -O3 -DHIGH_BYTE_FIRST
 -o /usr/people/wstan/nhc98-1.16/targets/mips-IRIX6/obj/runtime/Integer/mpz_div.
o mpz_div.c
In file included from longlong.h:75,
                 from mpz_div.c:25:
asmlong.h:3:12: missing terminating " character
asmlong.h:7:40: missing terminating " character
...many lines of the same sort....
mpz_div.c:28: warning: assignment makes integer from pointer without a cast
gmake[2]: *** [/usr/people/wstan/nhc98-1.16/targets/mips-IRIX6/obj/runtime/Integ
er/mpz_div.o] Error 1
gmake[2]: Leaving directory `/usr/people/wstan/nhc98-1.16/src/runtime/Integer'
gmake[1]: *** [afile] Error 2
gmake[1]: Leaving directory `/usr/people/wstan/nhc98-1.16/src/runtime'
gmake: *** [targets/mips-IRIX6/runtime] Error 2

On Fri, Dec 12, 2003 at 01:31:01PM +0000, Malcolm Wallace wrote:
> Strange.  The second call to gcc does indeed get its input from
> stdin, but it also explicitly specifies the language with '-x
> assembler'.  Because of the mention of the -E option (indicating
> the C pre-processor), it is possible that on mips-IRIX6 you actually
> require the language to be '-x assembler-with-cpp'.
> 
> You can change this option in src/runtime/Kernel/Makefile, in the
> rule for ${SOBJS}.
> 

-- 
Bill
Amsterdam, NL


More information about the Nhc-users mailing list