#1697 sdcc3.0.0 doesn't build on Mandriva

closed-fixed
nobody
7
2013-05-25
2010-11-04
No

build fails at making sdcc/sdas/asz80
sdcc/sdas/asgb/../asxxsrc/asmain.c:891: undefined reference to `log'
three eeror line. See attahced log
I am using the released source file w/o patching

Discussion

  • Thomas Spuhler

    Thomas Spuhler - 2010-11-04

    specfile

     
  • Thomas Spuhler

    Thomas Spuhler - 2010-11-04

    make log

     
  • Thomas Spuhler

    Thomas Spuhler - 2010-11-04
    • summary: sdcc3.0.0 doesn't build on Manriva --> sdcc3.0.0 doesn't build on Mandriva
     
  • Thomas Spuhler

    Thomas Spuhler - 2010-11-04

    same erro on Mandriva 2010.1 and Cooker. gcc-4.5.1
    I am probably missing a dependency

     
  • Thomas Spuhler

    Thomas Spuhler - 2010-11-04
    • priority: 5 --> 7
     
  • Raphael Neider

    Raphael Neider - 2010-11-04

    libm (math library) is mentioned too early on the linker's command line -- before all the .o files, which contain the references to the log/floor/ceil functions.
    That's a bug in sdcc's build system (sdas/*/Makefile.in): LDFLAGS should not contain the -l options, those are better placed in LIBS and moved to the end of the command line.
    For now, you can add -lm to the end of the lines 68 in {as6808,as8051,asgb,asz80}/Makefile.in, reconfigure your build directory, and build.
    If you do this, I would be happy to hear a success/failure report so that I can prepare and commit a patch.

    Regards
    Raphael

     
  • Thomas S

    Thomas S - 2010-11-05

    It built after applying this patch.

     
  • Raphael Neider

    Raphael Neider - 2010-11-05

    Fixed in r6055.

     
  • Raphael Neider

    Raphael Neider - 2010-11-05
    • milestone: --> fixed
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks