Boost logo

Boost-Build :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2006-01-09 04:50:21


Douglas Gregor wrote:
> On Jan 8, 2006, at 8:02 PM, Alexander Nasonov wrote:
>>Can we replace -openmp option with -mt option on FreeBSD?
>
> -openmp is a really weird flag to use to enable multithreading.
> OpenMP is *very* different from pthreads, which one would expect to
> use for the Boost.Thread library on FreeBSD...

I would expect to use pthreads on linux as well. Does -openmp imply
pthreds on linux?

BTW, a combination of "intel-linux" and FreeBSD might be confusing.
Although the compiler itself if linux binary file:

$ readelf -l /usr/local/intel_cc_80/bin/icpcbin | grep interpreter
       [Requesting program interpreter: /lib/ld-linux.so.2]
$
$ ldd /usr/local/intel_cc_80/bin/icpcbin
/usr/local/intel_cc_80/bin/icpcbin:
         libm.so.6 => /lib/libm.so.6 (0x280e0000)
         libpthread.so.0 => /lib/libpthread.so.0 (0x28102000)
         libc.so.6 => /lib/libc.so.6 (0x28153000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x280ca000)

it generates native FreeBSD binaries:

$ /usr/local/intel_cc_80/bin/icpc multithreaded.cpp -mt
$ readelf -l a.out | grep interpreter
       [Requesting program interpreter: /libexec/ld-elf.so.1]
$
$ ldd a.out
a.out:
         libm.so.4 => /lib/libm.so.4 (0x28075000)
         libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x2808b000)
         libpthread.so.2 => /usr/lib/libpthread.so.2 (0x28155000)
         libc.so.6 => /lib/libc.so.6 (0x2817a000)

-- 
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