First time user of LDC and getting newbie problems.

WhatMeForget via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 11 14:58:27 PDT 2017


Just trying to compile a "Hello World" using dub and ldc2. The 32 
bit works fine:

generic at generic-ThinkPad-T61:~/Desktop/test$ dub run 
--compiler=ldc2 --arch=x86
Performing "debug" build using ldc2 for x86.
test ~master: target for configuration "application" is up to 
date.
To force a rebuild of up-to-date targets, run again with --force.
Running ./test
hello there

But all hell breaks out when I try a 64 bit build. I've got a 64 
bit cpu and 64 bit Xubuntu so I thought, if I was going to get 
errors, it would be the previous case.


generic at generic-ThinkPad-T61:~/Desktop/test$ dub run 
--compiler=ldc2 --arch=x86_64
Performing "debug" build using ldc2 for x86_64.
test ~master: building configuration "application"...
/usr/bin/ld: skipping incompatible /usr/lib/libphobos2-ldc.so 
when searching for -lphobos2-ldc
/usr/bin/ld: skipping incompatible /usr/lib/libphobos2-ldc.a when 
searching for -lphobos2-ldc
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/i686-linux-gnu/6/../../../libphobos2-ldc.so when 
searching for -lphobos2-ldc
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/i686-linux-gnu/6/../../../libphobos2-ldc.a when 
searching for -lphobos2-ldc
/usr/bin/ld: skipping incompatible //usr/lib/libphobos2-ldc.so 
when searching for -lphobos2-ldc
/usr/bin/ld: skipping incompatible //usr/lib/libphobos2-ldc.a 
when searching for -lphobos2-ldc
/usr/bin/ld: cannot find -lphobos2-ldc
/usr/bin/ld: skipping incompatible /usr/lib/libdruntime-ldc.so 
when searching for -ldruntime-ldc
/usr/bin/ld: skipping incompatible /usr/lib/libdruntime-ldc.a 
when searching for -ldruntime-ldc
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/i686-linux-gnu/6/../../../libdruntime-ldc.so when 
searching for -ldruntime-ldc
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/i686-linux-gnu/6/../../../libdruntime-ldc.a when 
searching for -ldruntime-ldc
/usr/bin/ld: skipping incompatible //usr/lib/libdruntime-ldc.so 
when searching for -ldruntime-ldc
/usr/bin/ld: skipping incompatible //usr/lib/libdruntime-ldc.a 
when searching for -ldruntime-ldc
/usr/bin/ld: cannot find -ldruntime-ldc
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1



More information about the Digitalmars-d-learn mailing list