http://d.puremagic.com/issues/show_bug.cgi?id=2963

           Summary: dmd will not link on 64bit linux
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: one_mad_al...@hotmail.com


I have an AMD quad core with 64bit linux (xubuntu) 
`uname -a`
Linux akira 2.6.24-23-generic #1 SMP Wed Apr 1 21:43:24 UTC 2009 x86_64
GNU/Linux

`gcc --version`
gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

`ld --version`
GNU ld (GNU Binutils for Ubuntu) 2.18.0.20080103

and I'm trying to use dmd ....

I have tried -L-m32 (which is what I've used in the past to build 32 bit
binaries on a 64bit system) but I get 

gcc main.o -o main -m32 -Xlinker -L/home/mwynn/bin/dmd/linux/lib -Xlinker -m32
-lphobos2 -lpthread -lm 
/usr/bin/ld: unrecognised emulation mode: 32
Supported emulations: elf_x86_64 elf_i386 i386linux
collect2: ld returned 1 exit status
--- errorlevel 1

if I try - L-mi386linux I get 

gcc main.o -o main -m32 -Xlinker -L/home/mwynn/bin/dmd/linux/lib -Xlinker
-mi386linux -lphobos2 -lpthread -lm 
/usr/bin/ld: unrecognized option '--eh-frame-hdr'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
--- errorlevel 1

and -L-melf_i386 gives me the same error as no options given ...
gcc main.o -o main -m32 -Xlinker -L/home/mwynn/bin/dmd/linux/lib -Xlinker
-melf_i386 -lphobos2 -lpthread -lm 
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libpthread.so when searching for
-lpthread
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libpthread.a when searching for
-lpthread
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libpthread.so when searching
for -lpthread
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libpthread.a when searching
for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for
-lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for
-lpthread
/usr/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status

Is D going to go 64bit or is it me with a poorly setup linux system ?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to