Build version 3.02 released

David Ferenczi raggae at ferenczi.net
Fri Jun 23 21:41:45 PDT 2006


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':
: undefined reference to `pthread_mutexattr_init'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(monitor.o): In
function `_STI_monitor_staticctor':
: undefined reference to `pthread_mutexattr_settype'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(monitor.o): In
function `_STD_monitor_staticdtor':
: undefined reference to `pthread_mutexattr_destroy'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(thread.o): In
function `_D3std6thread6Thread5startFZv':
: undefined reference to `pthread_create'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(thread.o): In
function `_D3std6thread6Thread4waitFZv':
: undefined reference to `pthread_join'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(thread.o): In
function `_D3std6thread6Thread4waitFkZv':
: undefined reference to `pthread_cancel'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(thread.o): In
function `_D3std6thread6Thread5pauseFZv':
: undefined reference to `pthread_kill'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(thread.o): In
function `_D3std6thread6Thread5pauseFZv':
: undefined reference to `sem_wait'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(thread.o): In
function `_D3std6thread6Thread6resumeFZv':
: undefined reference to `pthread_kill'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(thread.o): In
function `_D3std6thread6Thread8pauseAllFZv':
: undefined reference to `pthread_kill'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(thread.o): In
function `_D3std6thread6Thread8pauseAllFZv':
: undefined reference to `sem_wait'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(thread.o): In
function `_D3std6thread6Thread4initFkZv':
: undefined reference to `pthread_attr_setstacksize'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(thread.o): In
function `_D3std6thread6Thread11thread_initFZv':
: undefined reference to `sem_init'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(thread.o): In
function `_D3std6thread6Thread12pauseHandlerUiZv':
: undefined reference to `sem_post'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(critical.o): In
function `_STI_critical_init':
: undefined reference to `pthread_mutexattr_init'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(critical.o): In
function `_STI_critical_init':
: undefined reference to `pthread_mutexattr_settype'
collect2: ld returned 1 exit status
****************************************************************************


but, adding the -g switch in the same case:

****************************************************************************
./build kludge.d -g

gcc: /co: No such file or directory
****************************************************************************

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.

Could you please take a look at these issues?

Thank you very much and keep up the good work!

David

Derek Parnell wrote:

> The version 3.02 can be downloaded from ...
> 
>    http://www.dsource.org/projects/build/wiki
> 
> A list of changes and fixes that have been made.
> 
> ** FIX: Ticket #27 When using 'gcc' as the linker tool, Build now uses a
> space character to delimit file names.
> 
> ** FIX: Ticket #28 The Optlink switch options are now correctly placed in
> a response file
> 
> ** FIX: Ticket #29 The -exec now works correctly.
> 
> ** FIX: Ticket #32 The Windows executable in the distro now updates the
> auto_build_number.
> 
> ** ENH: Ticket #30 The Rules subsystem can now be used to generate D
> source code. There are number of changes in this area so read the rules
> documentation and pragma documentation for details.
> 
> ** ENH: Ticket #31 It is now possible to stop a source file from being
> compiled. A new "pragma(ignore)" has been implemented.
> 
> ** ENH: There are some new configuration items that can be used to adjust
> the tools usage. Have a look at the example configuration file in the
> distrubution package.
> 




More information about the Digitalmars-d-announce mailing list