#23 ✓resolved
Peter Johnson

Compilation errors with command 'make'

Reported by Peter Johnson | June 25th, 2011 @ 07:48 PM | in 0.4.0 (closed)

Originally posted on Trac by simonjpaulger@hotmail.com
Original Trac Ticket

  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, 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 forblocks')
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 functionread_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 functionnew_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 functionnew_Token':
modules/preprocs/nasm/nasm-pp.c:975: freeTokens' undeclared (first use in this function) modules/preprocs/nasm/nasm-pp.c: In functiondelete_Token':
modules/preprocs/nasm/nasm-pp.c:1007: freeTokens' undeclared (first use in this function) modules/preprocs/nasm/nasm-pp.c: In functionpp_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


  
h3. Trac Attachments

h3. Trac Comments
comment:1
    
                  
                  Changed 7 years ago by peter@tortall.net
  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:1

              Changed 7 years ago by peter@tortall.net

  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.

  Status
    changed from new to assigned

comment:2
    
                  
                  Changed 7 years ago by simonjpaulger@hotmail.com
  Created an attachment (id=2)

macros.pl


comment:3
    
                  
                  Changed 7 years ago by simonjpaulger@hotmail.com
  Created an attachment (id=3)

perl -v


comment:4
    
                  
                  Changed 7 years ago by simonjpaulger@hotmail.com
  Created an attachment (id=4)

standard.mac


comment:5
    
                  
                  Changed 7 years ago by peter@tortall.net
  The Perl script has been converted to C (committed to CVS today), which should

resolve this issue.

  comment:5

              Changed 7 years ago by peter@tortall.net

  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.

  Status
    changed from assigned to resolved

  Resolution
    set to fixed

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Pages