[Scons-dev] test test/D/Issues/2944/D_changed_DFLAGS_not_rebuilding.py failing on ubuntu-next

Bill Deegan bill at baddogconsulting.com
Sun Jan 17 13:19:20 EST 2016


Russel,


Looks like this test turning on the "-d" flag in the second pass is what's
causing the test to fail with gdc 5.3.1

If I change:
if int(change):
    env.Append(DFLAGS = '-d')

to:

if int(change):
    env.Append(DFLAGS = '-Wall)

The test succeeds.
Would this invalidate your test?

What is the "-d" flag supposed to do for gdc?

-Bill


bdbaddog at ubuntu-next-vm:~/scons$ PRESERVE=1 python runtest.py
test/D/Issues/2944/D_changed_DFLAGS_not_rebuilding.py
1/1 (100.00%) /usr/bin/python -tt
test/D/Issues/2944/D_changed_DFLAGS_not_rebuilding.py
/home/bdbaddog/scons/src/script/scons.py returned 2
STDOUT
=========================================================================
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gdc -I. -d -c -o main.o main.d
gdc -o proj main.o
scons: building terminated because of errors.

STDERR
=========================================================================
cc1d: warning: command line option '-foutput-class-dir=-c' is valid for
Java but not for D
main.o: In function `_start':
(.text+0xb20): multiple definition of `_start'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o:/build/glibc-OKNAEh/glibc-2.21/csu/../sysdeps/x86_64/start.S:63:
first defined here
main.o: In function `_fini':
(.fini+0x0): multiple definition of `_fini'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o:/build/glibc-OKNAEh/glibc-2.21/csu/../sysdeps/x86_64/crti.S:80:
first defined here
main.o:(.rodata+0x0): multiple definition of `_IO_stdin_used'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o:(.rodata.cst4+0x0):
first defined here
main.o: In function `data_start':
(.data+0x0): multiple definition of `__data_start'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o:(.data+0x0):
first defined here
main.o: In function `data_start':
(.data+0x8): multiple definition of `__dso_handle'
/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o:(.data+0x0): first defined here
main.o: In function `_init':
(.init+0x0): multiple definition of `_init'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o:/build/glibc-OKNAEh/glibc-2.21/csu/../sysdeps/x86_64/crti.S:64:
first defined here
/usr/lib/gcc/x86_64-linux-gnu/5/crtend.o:(.tm_clone_table+0x0): multiple
definition of `__TMC_END__'
main.o:(.data+0x5f9c8): first defined here
/usr/bin/ld: error in main.o(.eh_frame); no .eh_frame_hdr table will be
created.
collect2: error: ld returned 1 exit status
scons: *** [proj] Error 1

FAILED test of /home/bdbaddog/scons/src/script/scons.py
    at line 605 of /home/bdbaddog/scons/QMTest/TestCommon.py (_complete)
    from line 708 of /home/bdbaddog/scons/QMTest/TestCommon.py (run)
    from line 390 of /home/bdbaddog/scons/QMTest/TestSCons.py (run)
    from line 20 of test/D/Issues/2944/D_changed_DFLAGS_not_rebuilding.py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20160117/cc361a31/attachment.html>


More information about the Scons-dev mailing list