D tools build problem

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Sat Mar 1 15:07:42 PST 2014


On 01/03/14 23:35, Martin Nowak wrote:
> What are the actual gcc arguments?

Thanks for the advice here -- I appreciate it :-)

> 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.

For me:

$ ../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
binary    ../dmd/src/dmd
version   v2.065-devel-0d01545
config    /etc/dmd.conf
gcc generated/linux/64/dget.o -o generated/linux/64/dget -m64 
-L../phobos/generated/linux/release/64 -l:libphobos2.a -lpthread -lm -lrt

If I try literally using the statement you posted, I get no output at all.

> Also check wheter the dget.o object has a D main.
>
> nm generated/linux/64/changed.o | grep _Dmain
>
> 0000000000000000 T _Dmain

$ nm generated/linux/64/dget.o | grep _Dmain
0000000000000000 T _Dmain
                  U _Dmain




More information about the Digitalmars-d-learn mailing list