D tools build problem

Martin Nowak code at dawg.eu
Sat Mar 1 14:35:03 PST 2014


On Tuesday, 11 February 2014 at 23:06:27 UTC, Joseph Rushton 
Wakeling wrote:
> With these flags in place, the following error message is 
> produced:
>
> (../dmd/src/dmd -m64 -I../druntime/import -I../phobos
> -L-L../phobos/generated/linux/release/64  -w -v 
> -ofgenerated/linux/64/dget
> generated/linux/64/dget.o 2>/dev/null | grep '\-Xlinker' | cut 
> -f2- -d' ' ; echo
> -lcurl  ) | xargs gcc

What are the actual gcc arguments?
For me running

../dmd/src/dmd -m64 -I../druntime/import -I../phobos 
-L-L../phobos/generated/linux/release/64  -w -v 
-ofgenerated/linux/64/dget generated/linux/64/dget.o 2>/dev/null 
| grep '\-Xlinker'

prints

gcc generated/linux/64/dget.o -o generated/linux/64/dget -m64 
-L../phobos/generated/linux/release/64 -L/usr/lib64 -Xlinker 
--export-dynamic -l:libphobos2.a -lpthread -lm -lrt.

Also check wheter the dget.o object has a D main.

nm generated/linux/64/changed.o | grep _Dmain

0000000000000000 T _Dmain


More information about the Digitalmars-d-learn mailing list