Date: Mon, 29 Aug 2016 02:59:36 +0200 From: =?UTF-8?Q?Fernando_Herrero_Carr=C3=B3n?= <elferdo@gmail.com> To: "K. Macy" <kmacy@freebsd.org> Cc: freebsd-stable <freebsd-stable@freebsd.org>, Dimitry Andric <dim@freebsd.org>, Matthieu Volat <mazhe@alkumuna.eu>, Johannes Dieterich <dieterich.joh@gmail.com>, Lars Engels <lars.engels@0x20.net>, Erich Dollansky <erichsfreebsdlist@alogt.com>, Andrea Brancatelli <abrancatelli@schema31.it>, Kubilay Kocak <koobs@freebsd.org> Subject: Re: Benchmarks results for FreeBSD 11 Message-ID: <CAMwkeZyJgzdzDqP3Pi4-CH8pM7e_afoM-cJyp3t5oBXJGFyzZg@mail.gmail.com> In-Reply-To: <CAHM0Q_OqYTQUX69%2BQpYxiNDws_w9XY9B%2B3Pe3PxAN6rT5-AYpA@mail.gmail.com> References: <20160819073422.4292997b@X220.alogt.com> <af0fefab-69d7-f0a9-3d6d-4a9891d5a156@FreeBSD.org> <20160821144505.27c0f55d@X220.alogt.com> <827183a944ee4052649c152d65204444@schema31.it> <20160822101423.GF18643@e-new.0x20.net> <CAHM0Q_My2otDtVSzTiQMHE=ty%2B7kEBP%2BwfFofBvOzoz8ro%2B-sQ@mail.gmail.com> <79F32FFD-BBDF-4359-A4CB-C80A3FC59EAD@FreeBSD.org> <20160828183242.759bb6c2@freedom.alkumuna.eu> <CAHM0Q_MCGvfn5np7KdYq_h3cyv6w%2BVzjOMyOJzK7LYpPP6UaAA@mail.gmail.com> <CAHM0Q_OqYTQUX69%2BQpYxiNDws_w9XY9B%2B3Pe3PxAN6rT5-AYpA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
El 29 ago. 2016 12:36 a. m., "K. Macy" <kmacy@freebsd.org> escribi=C3=B3: > > On Sun, Aug 28, 2016 at 2:01 PM, K. Macy <kmacy@freebsd.org> wrote: > >>> > >> > >> With 11, one can even simply install devel/openmp which will only install the libopenmp bits from llvm, and after that, base cc can do openmp= . > > > > This isn't really useful unless the clang in base knows where to find > > libomp. Considering that even the devel/llvm ports aren't configured > > properly for that I don't see -fopenmp working. Without patching > > makefiles or configure. So although this is better than having to > > installing a complete copy of the compiler for the sake of a single > > library it's still forcing FreeBSD users to jump through extra hoops > > that they don't have to with gcc or on other platforms. > > I just tried this on Ubuntu and it looks like even there clang doesn't > invoke ld correctly to make -fopenmp work. Both icc and gcc do this > automatically. Thus I wonder if anyone is actually using openmp in > earnest with clang. > > > mmacy@pandemonium:~$ clang++ -fopenmp omp.cpp > /usr/bin/ld: cannot find -liomp5 > clang-3.5: error: linker command failed with exit code 1 (use -v to > see invocation) > mmacy@pandemonium:~$ clang++-3.8 -fopenmp omp.cpp > /usr/bin/ld: cannot find -lomp > clang: error: linker command failed with exit code 1 (use -v to see invocation) > mmacy@pandemonium:~$ g++ -fopenmp omp.cpp > mmacy@pandemonium:~$ g++-4.9 -fopenmp omp.cpp > mmacy@pandemonium:~$ > I'm writing from my cellphone away from my computer, so take this with a grain of salt: -L/usr/local/llvm38/lib
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMwkeZyJgzdzDqP3Pi4-CH8pM7e_afoM-cJyp3t5oBXJGFyzZg>