Build version 3.02 released

Derek Parnell derek at psych.ward
Sat Jun 24 01:29:15 PDT 2006


On Sat, 24 Jun 2006 14:41:45 +1000, David Ferenczi <raggae at ferenczi.net>  
wrote:

> Thank you very much for the new version!
>
> Unfortunately, I still have some problems with linking (taking the  
> simplest
> case form last time, so everey file in the same folder):
>
> ****************************************************************************
> ./build kludge.d
>
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(monitor.o): In
> function `_STI_monitor_staticctor':

Sounds like a library not getting used. I don't know which library or how  
it's being referred to. Maybe somebody with GCC experience can help us  
here.

>
>
> but, adding the -g switch in the same case:
>
> ****************************************************************************
> ./build kludge.d -g
>
> gcc: /co: No such file or directory

The "/co" has been added because that's what I guessed was the GCC switch  
to create debugging info. It seems that this is not the right switch to  
use. Create or update the build.cfg file to include a line ...

INIT:SymInfoSwitch = <what_ever_is_correct>

Have a look at the Configuration file documentation for more details...

    http://build.dsource.org/configuration_file.html

>
> Using my fully configured build environment:
>
> ****************************************************************************
> util/build src/kludge.d -debug -g -odobj/debug -ofkludgedebug -unittest  
> -w
>
> gcc: /co: No such file or directory
> gcc: obj/debug/src/kludge.o: No such file or directory
> gcc: obj/debug/src/application.o: No such file or directory
> gcc: obj/debug/src/game.o: No such file or directory
> gcc: obj/debug/src/searchengine.o: No such file or directory
> gcc: obj/debug/src/board.o: No such file or directory
> ****************************************************************************
>
> The object files are generated in the correct folder (obj/debug/), but  
> the
> linker searches for them in obj/debug/src/, since the source files are in
> the src/ folder.

Okay, this might be a bug in unix builds as it works on my windows system.  
I'll look into this.

-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d-announce mailing list