Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-05 16:23:39



David Abrahams <dave_at_[hidden]> writes:

> David Abrahams <dave_at_[hidden]> writes:
>
> collect2: ld returned 1 exit status

...

Whoops! The complete message was intended to be:

I'm still seeing some strange results from my tests of this on Cygwin,
for which I'd like to request help. I assume the same problems are
happening on Linux.

You can see for yourself by invoking bjam in
tools/build/test/v1-testing. Although the executable `link-no' fails
to link, and even claims to be returning a nonzero exit code, the
status that comes back from the wait() invocation in the execunix.c is
zero!

gcc-Link-action bin/link-no.test/gcc/debug/runtime-link-dynamic/link-no.exe
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libcygwin.a(libcmain.o)(.text+0x7c)
: undefined reference to `_WinMain_at_16'
collect2: ld returned 1 exit status

export LD_LIBRARY_PATH
g++ -g -o "bin/link-no.test/gcc/debug/runtime-link-dynamic/link-no.exe"
"bin/link-no.test/gcc/debug/runtime-link-dynamic/a.o"

And since it's marked FAIL_EXPECTED, the zero staus code gets inverted
and the test fails:

...failed gcc-Link-action bin/link-no.test/gcc/debug/runtime-link-dynamic/link-no.exe...

I'm baffled as to what might be happening here.

-Dave

-- 
David Abrahams
dave_at_[hidden] * http://www.boost-consulting.com

 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk