#69857 closed defect (fixed)
R-RoBMA @3.1.0: ld: library 'gfortran' not found
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | barracuda156 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.3 |
Keywords: | Cc: | ||
Port: | R-RoBMA |
Description
ld: warning: search path '/opt/local/lib/gcc13/gcc/x86_64-apple-darwin23/13.2.0' not found ld: warning: search path '/opt/local/lib/gcc13' not found ld: library 'gfortran' not found clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [RoBMA.so] Error 1 ERROR: compilation failed for package ‘RoBMA’ * removing ‘/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_R_R-RoBMA/R-RoBMA/work/.tmp/Rtmpb3wYzj/Rinst90d345761037/RoBMA’ ----------------------------------- ERROR: package installation failed
Change History (5)
comment:1 Changed 7 months ago by barracuda156
comment:2 Changed 7 months ago by barracuda156
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 follow-up: 4 Changed 7 months ago by kencu (Ken)
the problem is likely in the R portgroup.
this build asked for the (newly updated) +gcc13 variant of this port, was told that a +gcc13 variant does not exist, and then failed when it couldn’t link against it.
If you’ve seen this elsewhere as well, then there is something to sort out in that PG.
comment:4 Changed 7 months ago by barracuda156
Replying to kencu:
the problem is likely in the R portgroup.
this build asked for the (newly updated) +gcc13 variant of this port, was told that a +gcc13 variant does not exist, and then failed when it couldn’t link against it.
If you’ve seen this elsewhere as well, then there is something to sort out in that PG.
+gcc13
is only added when there is compiler.setup configure_fortran
in the portfile. Which is handled by compilers PG, not R PG.
comment:5 Changed 7 months ago by kencu (Ken)
gcc13 was requested in the first failed build, which was before you added this to the Portfile:
compiler.setup configure_fortran
right here:
DEBUG: Requested variant +gcc13 is not provided by port R-RoBMA.
and -- the R PortGroup includes the compilers PortGroup when it runs:
So -- back to what I said -- if you are seeing this issue in other places as you said you were, and if you have no idea what might be wrong as you said -- the issue looks likely to be somewhere in the R PortGroup.
Well, the fix is easy, adding
compilers.setup require_fortran
into the portfile.What I do not understand (and I have noticed this happenning a couple of times with some ports) is why only some configurations all of a sudden decide to link to
libgfortran
but not others. This port passed CI earlier, which means it did not ask forlibgfortran
that time.