Author Topic: can't compile properly  (Read 13784 times)

nobody

  • Guest
can't compile properly
« on: May 06, 2005, 04:21:00 PM »
I'm trying to compile, but i only get so far before it stops without error.  The following is the make result:

gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o nasm.o nasm.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o nasmlib.o nasmlib.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o float.o float.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o insnsa.o insnsa.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o assemble.o assemble.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o labels.o labels.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o parser.o parser.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o outform.o outform.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o output/outbin.o output/outbin.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o output/outaout.o output/outaout.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o output/outcoff.o output/outcoff.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o output/outelf.o output/outelf.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o output/outobj.o output/outobj.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o output/outas86.o output/outas86.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o output/outrdf2.o output/outrdf2.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o output/outdbg.o output/outdbg.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o output/outieee.o output/outieee.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o preproc.o preproc.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o listing.o listing.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o eval.o eval.c
gcc  -o nasm nasm.o nasmlib.o float.o insnsa.o assemble.o labels.o parser.o outform.o output/outbin.o output/outaout.o output/outcoff.o output/outelf.o output/outobj.o output/outas86.o output/outrdf2.o output/outdbg.o output/outieee.o preproc.o listing.o eval.o
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o ndisasm.o ndisasm.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o disasm.o disasm.c
disasm.c: In function 'disasm':
disasm.c:496: warning: 'ins$nprefix' may be used uninitialized in this function
disasm.c:496: warning: 'ins$condition' may be used uninitialized in this function
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o sync.o sync.c
gcc -c -g -O2 -Wall -ansi -pedantic -DHAVE_CONFIG_H -I. -I.   -o insnsd.o insnsd.c
gcc  -o ndisasm ndisasm.o disasm.o sync.o nasmlib.o insnsd.o
nroff -man nasm.1 > nasm.man
nroff -man ndisasm.1 > ndisasm.man
cd rdoff && make all
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. rdfdump.c
gcc  -o rdfdump rdfdump.o
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. ldrdf.c
ldrdf.c: In function 'write_output':
ldrdf.c:734: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
ldrdf.c: In function 'usage':
ldrdf.c:1154: warning: string length '516' is greater than the length '509' ISO C89 compilers are required to support
ldrdf.c: In function 'processmodule':
ldrdf.c:221: warning: 'sconf$mergetype' may be used uninitialized in this function
ldrdf.c:221: warning: 'sconf$typedesc' may be used uninitialized in this function
ldrdf.c:221: warning: 'sconf$dowhat' may be used uninitialized in this function
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. rdoff.c
cd .. && make nasmlib.o
make[2]: `nasmlib.o' is up to date.
cp ../nasmlib.o .
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. symtab.c
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. collectn.c
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. rdlib.c
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. segtab.c
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. hash.c
gcc  -o ldrdf ldrdf.o rdoff.o nasmlib.o symtab.o collectn.o rdlib.o segtab.o hash.o
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. rdx.c
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. rdfload.c
gcc  -o rdx rdx.o rdoff.o rdfload.o symtab.o collectn.o hash.o
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. rdflib.c
gcc  -o rdflib rdflib.o
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. rdf2bin.c
gcc  -o rdf2bin rdf2bin.o rdoff.o rdfload.o symtab.o collectn.o hash.o nasmlib.o
rm -f rdf2com && ln -s rdf2bin rdf2com
gcc -c -g -O2 -Wall -ansi -pedantic -I. -I.. rdf2ihx.c
gcc  -o rdf2ihx rdf2ihx.o rdoff.o rdfload.o symtab.o collectn.o hash.o nasmlib.o

Any help would be appriciated.  Thanks.

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: can't compile properly
« Reply #1 on: May 06, 2005, 07:27:39 PM »
Looks to me like you're done. What more are you expecting?

But... what in hell version have you got there? The warnings you're getting don't match the line-numbers I'm seeing. (and you're not getting warnings I *would* expect...) It looks to me like the rdoff directory, at least, is obsolete.

But try going ahead with "make install" - I think you've got everything.

Best,
Frank

nobody

  • Guest
Re: can't compile properly
« Reply #2 on: May 06, 2005, 08:20:25 PM »
I expected something was wrong with the compile because i get
/usr/bin/install -c nasm ./bin/nasm
install: ./bin/nasm: No such file or directory
*** Error code 71

Stop in /usr/home/ilpavox/nasm-0.98.38.
at make install

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: can't compile properly
« Reply #3 on: May 06, 2005, 09:27:29 PM »
Ah! There shouldn't be a '.' in "./bin/nasm", of course (unless you're running make install from "/"... which might be the easiest way to fix it). I'm not sure where that's coming from, but for now, just hand-edit it out of the Makefile... "prefix"->"exec_prefix"->"bindir" sets up where install tries to put it... (FWIW, my machine puts nasm in /usr/local/bin - I'd think that, or /usr/bin would make more sense than /bin)

When you get to building 0.98.39 - which you really should do, unless you like buffer overruns - you'll need to edit Makefile and rdoff/Makefile to delete the references to "std=c99", I think.

Best,
Frank