|
Boost-Build : |
From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2006-01-09 17:52:50
[reposting because previous message didn't reach the list]
Douglas Gregor wrote:
> -openmp implies OpenMP support, which are aren't using in Boost at
all. It doesn't look like it implies pthreads.
> However, the Intel compiler does seem to support the (GCC) option -
pthreads. We could probably use that, instead.
I contacted with Volodya. He checked that Boost.Threads compiles fine on
intel-linux 8.1 with CFLAGS=-D_REENTRANT and LINKFLAGS=-lpthread.
Though, I don't think we should change this for linux platform. I was
planning to add LINKFLAGS=-mt *only* for FreeBSD but my compiler can't
create .so files.
Link action is expanded to:
icpc -g -lpthread -KPIC -shared -o
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/libboost_thread-il-mt-d-1_34.so.1.34.0"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/barrier.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/condition.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/exceptions.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/mutex.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/once.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/recursive_mutex.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/read_write_mutex.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/thread.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/tss_hooks.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/tss_dll.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/tss_pe.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/tss.o"
"../../../bin/boost/libs/thread/build/libboost_thread.so/intel-linux/debug/shared-linkable-true/threading-multi/xtime.o"
-lrt "-Qoption,link,-soname,libboost_thread-il-mt-d-1_34.so.1.34.0"
Which reports:
/usr/local/intel_cc_80/bin/ldwrapper/ld:
/usr/local/intel_cc_80/lib/crtbeginS.o: No such file: No such file or
directory
If I remove -shared I get this error:
/usr/local/intel_cc_80/bin/ldwrapper/ld: cannot find -lrt
And finally, if I remove -lrt, the error is:
/usr/lib/crt1.o(.text+0x72): In function `_start':
: undefined reference to `main'
Either -shared is disabled for non-commercial license or on FreeBSD :(
-- Alexander Nasonov
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