www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Linking doesn' work under linux

reply David Ferenczi <raggae ferenczi.net> writes:
First of all, thank you for the new release.

The version 2.09 works smoothly, but any later version I tried didn't work
for me.

With the version 3.01 calling the command

util/build src/kludge.d -debug -g -odobj/debug -ofkludgedebug -unittest -w

I get the following error message:

-----------8<-----------------------------------------
gcc: ob: No such file or directory
gcc: /debug/src/kludge.o,obj/debug/src/application.o,obj/debug/src/game.o,obj/debug/src/searchengine.o,obj/debug/src/board.o,-ofkludgedebug,-lc,-lphobos,-lm,/co:
No such file or directory
gcc: no input files
-----------8<-----------------------------------------

The object files are generated, but linking doesn't work. The paths listed
above are appareantly false, since "src" is added to them.

I also tried with a simpler configuration (everything is in the same
folder). The result:

-----------8<-----------------------------------------
gcc:
kludge.o,application.o,game.o,searchengine.o,board.o,-ofkludge,-lc,-lphobos,-lm,:
No such file or directory
gcc: no input files
-----------8<-----------------------------------------
Jun 15 2006
next sibling parent David Ferenczi <raggae ferenczi.net> writes:
Sorry, it was intended to be a reply for Build 3,01 announcment.

David Ferenczi wrote:

 First of all, thank you for the new release.
 
 The version 2.09 works smoothly, but any later version I tried didn't work
 for me.
 
 With the version 3.01 calling the command
 
 util/build src/kludge.d -debug -g -odobj/debug -ofkludgedebug -unittest -w
 
 I get the following error message:
 
 -----------8<-----------------------------------------
 gcc: ob: No such file or directory
 gcc:
 /debug/src/kludge.o,obj/debug/src/application.o,obj/debug/src/game.o,obj/debug/src/searchengine.o,obj/debug/src/board.o,-ofkludgedebug,-lc,-lphobos,-lm,/co:
 No such file or directory gcc: no input files
 -----------8<-----------------------------------------
 
 The object files are generated, but linking doesn't work. The paths listed
 above are appareantly false, since "src" is added to them.
 
 I also tried with a simpler configuration (everything is in the same
 folder). The result:
 
 -----------8<-----------------------------------------
 gcc:
kludge.o,application.o,game.o,searchengine.o,board.o,-ofkludge,-lc,-lphobos,-lm,:
 No such file or directory
 gcc: no input files
 -----------8<-----------------------------------------
Jun 15 2006
prev sibling parent reply "Derek Parnell" <derek psych.ward> writes:
On Thu, 15 Jun 2006 18:42:26 +1000, David Ferenczi <raggae ferenczi.net>  
wrote:

 First of all, thank you for the new release.

 The version 2.09 works smoothly, but any later version I tried didn't  
 work
 for me.
Thanks. I'm working on this tonight. The major change from 2.09 is to have the linker as a separate step from the compiler. And I don't have gcc so I guessed at some of the requirements and got them wrong. Sorry. :( -- Derek Parnell Melbourne, Australia
Jun 15 2006
parent reply David Ferenczi <raggae ferenczi.net> writes:
Thank you very much for your quick answer. Please let me know if I can
contribute to the source, help testing, etc.

Derek Parnell wrote:

 On Thu, 15 Jun 2006 18:42:26 +1000, David Ferenczi <raggae ferenczi.net>
 wrote:
 
 First of all, thank you for the new release.

 The version 2.09 works smoothly, but any later version I tried didn't
 work
 for me.
Thanks. I'm working on this tonight. The major change from 2.09 is to have the linker as a separate step from the compiler. And I don't have gcc so I guessed at some of the requirements and got them wrong. Sorry. :(
Jun 15 2006
parent Xebes <Xebes_member pathlink.com> writes:
In article <e6rbf0$13vc$1 digitaldaemon.com>, David Ferenczi says...
Thank you very much for your quick answer. Please let me know if I can
contribute to the source, help testing, etc.

Derek Parnell wrote:

 On Thu, 15 Jun 2006 18:42:26 +1000, David Ferenczi <raggae ferenczi.net>
 wrote:
 
 First of all, thank you for the new release.

 The version 2.09 works smoothly, but any later version I tried didn't
 work
 for me.
Thanks. I'm working on this tonight. The major change from 2.09 is to have the linker as a separate step from the compiler. And I don't have gcc so I guessed at some of the requirements and got them wrong. Sorry. :(
I had the same problem. The cause seems to be the commas. I replaced the comma in line 1445 of build.d with a whitespace and inserted LINKSWITCH=-lpthread in build.cfg. Then it worked for me with a simple hello world program.
Jun 17 2006