Menu

#151 bad nasm flags

closed
nobody
None
5
2007-06-15
2007-02-05
No

I get this when compiling zsnes:

...
nasm -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O99999999 -D__RELEASE__ -o video/newg162.o video/newg162.asm
...

and with this asm file it won't stop anymore (I gave up after 25minutes). -O99999999 ?!? are you crazy? a maximum number of 99999999 passes over the assembler file? Reducing this to a sane setting like 20 in configure.in helped.

I have "NASM version 0.98.39 compiled on May 21 2006" here

Discussion

  • Matthias Braun

    Matthias Braun - 2007-02-05

    Logged In: YES
    user_id=278488
    Originator: YES

    hmm actually it still does not compile, even with -O20: gui/gui.asm:3768: error: phase error detected at end of
    assembly.

    Giving up for now

     
  • amokschlaf

    amokschlaf - 2007-03-22

    Logged In: YES
    user_id=1610828
    Originator: NO

    Hi!
    I had the same issue, so ran the nasm
    line through strace to see what the hell was going on...
    no hint what so ever though, instead it built the file
    as expected. Maybe a race-condition in nasm ..
    But try that, it ain't pretty but should work.

     
  • Nach M. S.

    Nach M. S. - 2007-06-15

    Logged In: YES
    user_id=695796
    Originator: NO

    Nothing over -O1 works until -O9999.

    Leave it alone, it takes a while to compile (yes it could be 2 hours on an old PC). If you don't like it, switch to -O1, but then ZSNES will run slower.

     
  • Nach M. S.

    Nach M. S. - 2007-06-15
    • status: open --> closed
     

Log in to post a comment.