[OmniOS-discuss] OmniOS and OpenMP
Bob Friesenhahn
bfriesen at simple.dallas.tx.us
Mon Dec 28 22:50:23 UTC 2015
On Mon, 28 Dec 2015, Dan McDonald wrote:
>
>> On Dec 24, 2015, at 6:36 PM, Bob Friesenhahn <bfriesen at simple.dallas.tx.us> wrote:
>>
>> GCC compiled programs making use of OpenMP require libgomp in order to run. Currently this library is provided as part of the GCC packages. It is necessary to install all of GCC in order for dependent programs to be able to run, and linker run-path (e.g. -R/opt/gcc-5.1.0/lib) also needs to be specified when linking the program. There was a similar problem for libgcc_s.so but this was provided via a runtime package:
>>
>> % pkg contents system/library/gcc-5-runtime
>> PATH
>> usr/lib/amd64
>> usr/lib/amd64/libgcc_s.so
>> usr/lib/amd64/libgcc_s.so.1
>> usr/lib/libgcc_s.so
>> usr/lib/libgcc_s.so.1
>>
>> Can a similar runtime package be provided for libgomp (e.g. gcc-5-gomp-runtime)? It would make sense for gomp to be included in gcc-5-runtime except that since it was not included from the start, adding it now might cause problems.
>
> It's possible, but I'd have to think about how best to package it up (including dependencies, etc. etc.). I don't have any objections to including gomp in gcc-5-runtime, and modulo the must-have-the-latest-version problem, it might not be so bad. It's something to consider for bloody & r151018.
Due to the existing problem, I don't think that there are existing
dependencies to worry about. It is clear that for existing release
branches, gcc-5-runtime can not add libraries without the risk of an
application not running because the gcc-5-runtime vintage is too old.
This is perhaps not so much of a problem since OmniOS systems should
be updating regularly.
The gomp library is a bit large so some users might be happier if it
was optional via its own package and not part of the OmniOS baseline.
Bob
--
Bob Friesenhahn
bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
More information about the OmniOS-discuss
mailing list