Bug 215341 - math/rpy2 fails to compile
Summary: math/rpy2 fails to compile
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-16 14:28 UTC by Tao Zhen
Modified: 2018-03-04 09:06 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tao Zhen 2016-12-16 14:28:19 UTC
Hi,
math/rpy2 fails to compile when math/R is built with option OPENMP on 11.0-RELEASE-p4. 
Thanks for help!

cc -shared -Wl,--as-needed -Wl,-rpath=/usr/local/lib/gcc49 -L/usr/local/lib/gcc49 -B/usr/local/bin -L/usr/local/lib -fstack-protector -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include build/temp.freebsd-11.0-RELEASE-p4-amd64-2.7/./rpy/rinterface/_rinterface.o -L/usr/local/lib/gcc49 -L/usr/local/lib -L/usr/local/lib/R/lib -L/usr/local/lib -L/usr/local/lib -Lbuild/temp.freebsd-11.0-RELEASE-p4-amd64-2.7 -Wl,-rpath=/usr/local/lib/gcc49 -Wl,-rpath=/usr/local/lib -Wl,-rpath=/usr/local/lib/R/lib -Wl,-rpath=/usr/local/lib -lR -lpcre -llzma -lbz2 -lz -lrt -lm -licuuc -licui18n -lpython2.7 -lr_utils -o build/lib.freebsd-11.0-RELEASE-p4-amd64-2.7/rpy2/rinterface/_rinterface.so -Wl,--export-dynamic -fopenmp -Wl,--as-needed -Wl,-rpath=/usr/local/lib/gcc49 -B/usr/local/bin -fstack-protector
/usr/local/bin/ld: cannot find -lomp
Comment 1 Walter Schwarzenfeld freebsd_triage 2016-12-16 18:51:57 UTC
Naybe, this is the problem:
 locate libomp
/usr/local/llvm37/lib/libomp.so
/usr/local/llvm38/lib/libomp.so

you are compiling with gcc49.
Comment 2 Tao Zhen 2016-12-16 22:55:53 UTC
Hi,
You are right. I am using default settings, though. It seems that math/rpy2 should have a switch to link to libgomp with default settings.
Comment 3 Joseph Mingrone freebsd_committer freebsd_triage 2018-01-10 02:25:31 UTC
I see no problems building math/rpy2 when math/R is built with OPENMP on.  I tested with an amd64 11.1-RELEASE poudriere jail.  You are using an unsupported release.  Version 11.0 went end-of-life on October 10th, 2016.
Comment 5 Walter Schwarzenfeld freebsd_triage 2018-02-14 23:21:23 UTC
Feedback timeout. Could this be closed?