Boost logo

Boost-Build :

Subject: Re: [Boost-build] "ld returned 1 exit status" compiling boost thread with mingw-w64 "x64-4.8.1-posix-seh-rev5"
From: Vladimir Prus (ghost_at_[hidden])
Date: 2013-10-11 07:16:48


On 11.10.2013 02:00, ken han wrote:
> Trying to compile some boost libraries in 64 bit on windows. I am using mingw-w64 package "x64-4.8.1-posix-seh-rev5." I am stuck on figuring
> out the following error when I compile boost thread. Section of output bellow. Any ideas? Thanks
>
> [...]
> collect2.exe: error: ld returned 1 exit status
>
> "g++" "-Wl,--out-implib,[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_thread-mt-d.dll.a" -o
> "[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_thread-mt-d.dll" -shared -Wl,--start-group
> "[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\win32\thread.o"
> "[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\win32\tss_dll.o"
> "[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\win32\tss_pe.o"
> "[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\future.o"
> "[...]bbuild_64\boost\bin.v2\libs\chrono\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_chrono-mt-d.dll.a"
> "[...]bbuild_64\boost\bin.v2\libs\system\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_system-mt-d.dll.a" -Wl,-Bstatic -Wl,-Bdynamic
> -Wl,--end-group -g -mthreads
>
> ...failed gcc.link.dll [...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_thread-mt-d.dll.a
> [...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_thread-mt-d.dll...
> [...]

Try running this command by hand, on the command line? If no further diagnostics is provided by gcc, I am not sure
what we can do.

- Volodya


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