[syslinux] make issue with syslinux-5.01

upen upendra.gandhi at gmail.com
Fri Apr 19 10:43:29 PDT 2013


While I don't really understand what these options really are, I went ahead
and changed the variable like below,
NASMDEBUG = -g -F stabs

But what that done, I get another message,
make[2]: Leaving directory `/tmp/syslinux-5.01/com32/sysdump'
make[2]: Entering directory `/tmp/syslinux-5.01/com32/lua/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/syslinux-5.01/com32/lua/src'
make[2]: Entering directory `/tmp/syslinux-5.01/com32/chain'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/syslinux-5.01/com32/chain'
make[1]: Leaving directory `/tmp/syslinux-5.01/com32'
make[1]: Entering directory `/tmp/syslinux-5.01/lzo'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/syslinux-5.01/lzo'
make[1]: Entering directory `/tmp/syslinux-5.01/core'
nasm -f elf -O3 -g -F stabs -DDATE_STR="'0x516f5353'" \
        -DHEXDATE="0x516f5353" \
        -l ldlinux.lsr -o ldlinux.o -MP -MD .ldlinux.o.d ldlinux.asm
nasm: error: more than one input file specified
type `nasm -h' for help
make[1]: *** [ldlinux.o] Error 1
make[1]: Leaving directory `/tmp/syslinux-5.01/core'
make: *** [all] Error 2



On Fri, Apr 19, 2013 at 12:36 PM, upen <upendra.gandhi at gmail.com> wrote:

> If I go ahead and make the NASMOPT = -O3 then I get below error message
>
> make[2]: Leaving directory `/tmp/syslinux-5.01/com32/chain'
> make[1]: Leaving directory `/tmp/syslinux-5.01/com32'
> make[1]: Entering directory `/tmp/syslinux-5.01/lzo'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/tmp/syslinux-5.01/lzo'
> make[1]: Entering directory `/tmp/syslinux-5.01/core'
> nasm -f elf -O3 -g -F dwarf -DDATE_STR="'0x516f5326'" \
>         -DHEXDATE="0x516f5326" \
>
>         -l ldlinux.lsr -o ldlinux.o -MP -MD .ldlinux.o.d ldlinux.asm
> nasm: fatal: unrecognized debug format `dwarf' for output format `elf'
> type `nasm -h' for help
>
> make[1]: *** [ldlinux.o] Error 1
> make[1]: Leaving directory `/tmp/syslinux-5.01/core'
> make: *** [all] Error 2
>
> ADDITIONAL information:
> nasm -f elf -y
>
> valid debug formats for 'elf' output format are ('*' denotes default):
>   * stabs     ELF32 (i386) stabs debug format for Linux
>
>
>
> On Fri, Apr 19, 2013 at 12:29 PM, upen <upendra.gandhi at gmail.com> wrote:
>
>>
>> Hi,
>>
>> I am trying to compile the version on rhel 5.x box. Nasm version 0.98.39
>>
>> I extracted the tar.gz and ran make in the extracted directory.
>>
>> Here is where it stops.
>>
>> gcc -Wp,-MT,rawcon.o,-MD,./.rawcon.o.d -m32 -ffreestanding
>> -fno-stack-protector -fwrapv -freg-struct-return -march=i386 -Os
>> -fomit-frame-pointer -mregparm=3 -DREGPARM=3 -msoft-float -fno-exceptions
>> -fno-asynchronous-unwind-tables -fno-strict-aliasing -falign-functions=0
>> -falign-jumps=0 -falign-labels=0 -falign-loops=0
>> -mpreferred-stack-boundary=2 -mincoming-stack-boundary=2
>> -fvisibility=hidden -g -W -Wall -Wstrict-prototypes -Wno-sign-compare
>> -I./include -I../com32/include -I../com32/lib -D__SYSLINUX_CORE__ -c -o
>> rawcon.o rawcon.c
>> rm -f libisolinux.a
>> ar cq libisolinux.a rawcon.o
>> ranlib libisolinux.a
>> cp libisolinux.a libisolinux-debug.a
>> gcc -Wp,-MT,plaincon.o,-MD,./.plaincon.o.d -m32 -ffreestanding
>> -fno-stack-protector -fwrapv -freg-struct-return -march=i386 -Os
>> -fomit-frame-pointer -mregparm=3 -DREGPARM=3 -msoft-float -fno-exceptions
>> -fno-asynchronous-unwind-tables -fno-strict-aliasing -falign-functions=0
>> -falign-jumps=0 -falign-labels=0 -falign-loops=0
>> -mpreferred-stack-boundary=2 -mincoming-stack-boundary=2
>> -fvisibility=hidden -g -W -Wall -Wstrict-prototypes -Wno-sign-compare
>> -I./include -I../com32/include -I../com32/lib -D__SYSLINUX_CORE__ -c -o
>> plaincon.o plaincon.c
>> rm -f libldlinux.a
>> ar cq libldlinux.a plaincon.o
>> ranlib libldlinux.a
>> cp libisolinux.a libpxelinux.a
>> nasm -f elf -Ox -g -F dwarf -DDATE_STR="'0x516f52cb'" \
>>         -DHEXDATE="0x516f52cb" \
>>         -l ldlinux.lsr -o ldlinux.o -MP -MD .ldlinux.o.d ldlinux.asm
>> (null):0: fatal: command line optimization level must be 'v', 0..3 or <nn>
>> make[1]: *** [ldlinux.o] Error 1
>> make[1]: Leaving directory `/tmp/syslinux-5.01/core'
>> make: *** [all] Error 2
>>
>>
>> What is recommended in this case? Should I modify NASMOPT  = -Ox to -O3?
>>
>> Thanks!
>>
>
>
>
> --
> upen,
> emerge -uD life (Upgrade Life with dependencies)
>



-- 
upen,
emerge -uD life (Upgrade Life with dependencies)


More information about the Syslinux mailing list