ld issues again

Daniel Gibson metalcaedes at gmail.com
Sun May 15 23:09:13 PDT 2011


Am 16.05.2011 07:39, schrieb Brian Myers:
> Hello all,
> 
> Thanx for the assistance rendered before. I've removed all my previous installation attempt and installed
> D 2.0 under Ubuntu with the one click installer. Now when compiling I get the following, which is
> different from what I was getting before:
> 
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib32/libphobos2.a(getopt_714_340.o):
> `_D3std6getopt10optionCharw' accessed both as normal and thread local symbol
> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib32/libphobos2.a: could not read symbols: Success
> collect2: ld returned 1 exit status
> --errorlevel 1
> 
> I edited my dmd.conf because it seems to be trying to find libphobos2.a in the lib32 directory, and I
> think it needs to find it in the lib64 directory. Don't know what the getopt error is about. Here is my
> dmd.conf:
> 
> 
> [Environment]
> 
> DFLAGS= -I/usr/include/d/dmd/phobos -I/usr/include/d/dmd/druntime/import -L-L/usr/lib64 -L-
> L/usr/lib32 -L--no-warn-search-mismatch -L--export-dynamic -L-lrt
> 
> Should I change the -L-L to just /usr/lib since that's linked to /usr/lib64?
> 
> Thanx again
> 
> Brian

What Version of Ubuntu are you using (10.10 (maverick), 11.04(natty), ...)?
The 32bit (i386) or 64bit (amd64) version of that distribution?
What's the output of "uname -a"?
What's the output of "ls -ld /usr/lib*"?
Did you compile with -m32 or -m64 (if none of these try them)?

Cheers,
- Daniel



More information about the Digitalmars-d mailing list