[Scons-dev] test/D/MixedDAndC/sconstest-dmd.py failing due to picking up wrong CC for linking

Russel Winder russel at winder.org.uk
Sat Apr 8 09:05:09 EDT 2017


On Fri, 2017-04-07 at 15:35 -0400, Bill Deegan wrote:
> Russel,
> 
> O.k. so once I sorted the paths for working with macports on osx all
> D
> tests pass except the above.
> 
> It yields a bunch of these:
> > ld: warning: pointer not aligned at address 0x100050CD3
> 
> (_D53TypeInfo_S3std5array17__T8AppenderTAyaZ8Appender4Data6__initZ +
> 24
> from proj.o)
> > ld: warning: pointer not aligned at address 0x100050CE3
> 
> (_D53TypeInfo_S3std5array17__T8AppenderTAyaZ8Appender4Data6__initZ +
> 40
> from proj.o)
> 
> It's picking up cc from /usr/bin/gcc instead of /opt/local/bin/gcc-
> mp-4.7
> which is also installed by macports.

I am assuming /usr/bin/gcc is really Clang whilst /opt/local/bin/gcc-
mp-4.7 is actually GCC. However I still do not, just yet, understand
the message.

I need to be able to reproduce this locally to investigate. 

> Thoughts on best way to modify tests to work?

I feel amending tests just to work is not a good way to go ;-) Finding
out why the test is not working is a much better idea. :-)

> I notice that your not checking stderr for dmd on debian due to some
> error
> messages.

I'll have to look.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20170408/5344502c/attachment.pgp>


More information about the Scons-dev mailing list