#23 (Compilation errors with command 'make') – The Yasm Modular Assembler Project

Ticket #23 (closed defect: fixed)

Opened 5 years ago

Last modified 2 years ago

Compilation errors with command 'make'

Reported by: simonjpaulger@… Owned by: peter@…
Priority: P2 Milestone: 0.4.0
Component: Build Tools / Libraries Version: 0.3.0
Severity: normal Keywords:
Cc:

Description

Upon running make, i get the following error message:

/usr/bin/perl ./modules/preprocs/nasm/macros.pl ./modules/preprocs/nasm/standard.mac
./modules/preprocs/nasm/standard.mac:6:  error unterminated quote at
./modules/preprocs/nasm/macros.pl line 40, <INPUT> line 6.
make: *** [nasm-macros.c] Error 255

Running make again, i get a different error:

gcc -DHAVE_CONFIG_H -I. -I. -I. -DYASM_MODULEDIR=\"/usr/local/lib/yasm\"
-I./check -I./libltdl -ansi -pedantic -Wall -g -O2 -c
modules/preprocs/nasm/nasm-pp.c -MT nasm-pp.lo -MD -MP -MF .deps/nasm-pp.TPlo 
-fPIC -DPIC -o .libs/nasm-pp.o
modules/preprocs/nasm/nasm-pp.c:399: parse error before "static"
modules/preprocs/nasm/nasm-pp.c:418: variable `blocks' has initializer but
incomplete type
modules/preprocs/nasm/nasm-pp.c:418: warning: excess elements in struct initializer
modules/preprocs/nasm/nasm-pp.c:418: warning: (near initialization for `blocks')
modules/preprocs/nasm/nasm-pp.c:418: warning: excess elements in struct initializer
modules/preprocs/nasm/nasm-pp.c:418: warning: (near initialization for `blocks')
modules/preprocs/nasm/nasm-pp.c: In function `read_line':
modules/preprocs/nasm/nasm-pp.c:649: `stdmacpos' undeclared (first use in this
function)
modules/preprocs/nasm/nasm-pp.c:649: (Each undeclared identifier is reported
only once
modules/preprocs/nasm/nasm-pp.c:649: for each function it appears in.)
modules/preprocs/nasm/nasm-pp.c:654: `any_extrastdmac' undeclared (first use in
this function)
modules/preprocs/nasm/nasm-pp.c:656: `extrastdmac' undeclared (first use in this
function)
modules/preprocs/nasm/nasm-pp.c: In function `new_Block':
modules/preprocs/nasm/nasm-pp.c:927: dereferencing pointer to incomplete type
modules/preprocs/nasm/nasm-pp.c:928: dereferencing pointer to incomplete type
modules/preprocs/nasm/nasm-pp.c:930: dereferencing pointer to incomplete type
modules/preprocs/nasm/nasm-pp.c:933: dereferencing pointer to incomplete type
modules/preprocs/nasm/nasm-pp.c:933: sizeof applied to an incomplete type
modules/preprocs/nasm/nasm-pp.c:935: dereferencing pointer to incomplete type
modules/preprocs/nasm/nasm-pp.c:936: dereferencing pointer to incomplete type
modules/preprocs/nasm/nasm-pp.c:937: dereferencing pointer to incomplete type
modules/preprocs/nasm/nasm-pp.c: In function `delete_Blocks':
modules/preprocs/nasm/nasm-pp.c:955: dereferencing pointer to incomplete type
modules/preprocs/nasm/nasm-pp.c:956: dereferencing pointer to incomplete type
modules/preprocs/nasm/nasm-pp.c:958: dereferencing pointer to incomplete type
modules/preprocs/nasm/nasm-pp.c: In function `new_Token':
modules/preprocs/nasm/nasm-pp.c:975: `freeTokens' undeclared (first use in this
function)
modules/preprocs/nasm/nasm-pp.c: In function `delete_Token':
modules/preprocs/nasm/nasm-pp.c:1007: `freeTokens' undeclared (first use in this
function)
modules/preprocs/nasm/nasm-pp.c: In function `pp_reset':
modules/preprocs/nasm/nasm-pp.c:4090: `stdmacpos' undeclared (first use in this
function)
modules/preprocs/nasm/nasm-pp.c:4092: `TASM_MACRO_COUNT' undeclared (first use
in this function)
modules/preprocs/nasm/nasm-pp.c:4094: `any_extrastdmac' undeclared (first use in
this function)
modules/preprocs/nasm/nasm-pp.c:4094: `extrastdmac' undeclared (first use in
this function)
modules/preprocs/nasm/nasm-pp.c: In function `pp_extra_stdmac':
modules/preprocs/nasm/nasm-pp.c:4447: `extrastdmac' undeclared (first use in
this function)
/usr/include/ctype.h: At top level:
modules/preprocs/nasm/nasm-pp.c:418: storage size of `blocks' isn't known
make[2]: *** [nasm-pp.lo] Error 1
make[2]: Leaving directory `/home/spaulger/yasm-0.3.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/spaulger/yasm-0.3.0'
make: *** [all] Error 2

Sorry to submit a bug report if its my fault. I have no idea what all the above
means but it looks important enough to report.
If you'd like more info do not hesitate to contact me.

I currently use NASM and want the AMD64 support. Yasm sounds very promising,
nice one!

Dangamoose

Attachments

Change History

comment:1 Changed 5 years ago by peter@…

  • status changed from new to assigned
The first error indicates that the macros.pl script couldn't parse standard.mac
for some reason; however, due to an unrelated bug, it doesn't delete the output
files on an error, which is why the compilation is different a second time.

To help me debug this, could you send me (or preferably attach to the bugzilla
bug) the modules/preprocs/nasm/standard.mac and modules/preprocs/nasm/macros.pl
files, and also the output of "/usr/bin/perl -v"?

Thanks for the bug report.  I'm going to go ahead and fix the macros.pl script
to delete the output file on an error.

comment:2 Changed 5 years ago by simonjpaulger@…

Created an attachment (id=2)
macros.pl

comment:3 Changed 5 years ago by simonjpaulger@…

Created an attachment (id=3)
perl -v

comment:4 Changed 5 years ago by simonjpaulger@…

Created an attachment (id=4)
standard.mac

comment:5 Changed 5 years ago by peter@…

  • status changed from assigned to resolved
  • resolution set to fixed
The Perl script has been converted to C (committed to CVS today), which should
resolve this issue.

Add/Change #23 (Compilation errors with command 'make')

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.