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

gcc-Link-action bin/link-no.test/gcc/debug/runtime-link-dynamic/link-no.exe
: undefined reference to `_WinMain_at_16'
collect2: ld returned 1 exit status

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

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.


David Abrahams
dave_at_[hidden] *


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at