Bug 263533 - math/sage: Fails to build with GCC 11: [gfortran-9.2.0] ld: error: unable to find library -lc
Summary: math/sage: Fails to build with GCC 11: [gfortran-9.2.0] ld: error: unable to ...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Thierry Thomas
URL: http://package18.nyi.freebsd.org/data...
Keywords:
Depends on: 261703
Blocks:
  Show dependency treegraph
 
Reported: 2022-04-24 19:18 UTC by Lorenzo Salvadore
Modified: 2022-09-23 16:04 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (thierry)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Salvadore freebsd_committer freebsd_triage 2022-04-24 19:18:48 UTC
Building port with GCC 11 gives the following error message (full log in URL):

[gfortran-9.2.0] ld: error: unable to find library -lc
[gfortran-9.2.0] collect2: error: ld returned 1 exit status
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2022-04-25 17:19:56 UTC
Unfortunately, Sage is broken ATM (waiting for Python-3.9 to be the default Python to upgrade it to a newer release).

Anyway, it seems that the reported failure is the same that devel/libds, and the workaround used in PR 226972 should do the trick:

LLD_UNSAFE=	yes
Comment 2 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-04-27 21:50:05 UTC
(In reply to Thierry Thomas from comment #1)

Thanks Thierry. I remove the dependency block then: if sage gets fixed before GCC default version update is completed we shall put it back.
Comment 3 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-04-27 21:52:15 UTC
Of course, I mean we put back the block if sage gets fixed thanks to the Python update but it is still broken with respect to GCC.
Comment 4 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-06-26 21:37:29 UTC
I have seen that bug #261703 has just been closed, so I guess you might soon unbreak math/sage.

I would like to warn you that the post-processing of GCC default version exp-run is finished, so GCC default version update will soon be committed. In case you see that you have problems with GCC 11, please set USE_GCC=10, at least as a temporary workaround. Thanks.
Comment 5 Thierry Thomas freebsd_committer freebsd_triage 2022-09-23 16:04:49 UTC
Closing this bug, in order to group the various problems of Sagemath in a unique PR: please see PR 257412.