Bug 275163 - math/dgl: Fails to build with GCC 13: ImportError: /usr/local/lib/python3.9/site-packages/torch/lib/libtorch_cpu.so: Undefined symbol "__assert_fail"
Summary: math/dgl: Fails to build with GCC 13: ImportError: /usr/local/lib/python3.9/s...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks: 273397
  Show dependency treegraph
 
Reported: 2023-11-18 10:35 UTC by Lorenzo Salvadore
Modified: 2024-01-07 12:56 UTC (History)
0 users

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


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 2023-11-18 10:35:55 UTC
This bug report blocks the update of GCC_DEFAULT to 13. This webpage can help finding a fix: https://gcc.gnu.org/gcc-13/porting_to.html

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/torch/__init__.py", line 235, in <module>
    from torch._C import *  # noqa: F403
ImportError: /usr/local/lib/python3.9/site-packages/torch/lib/libtorch_cpu.so: Undefined symbol "__assert_fail"
ninja: build stopped: subcommand failed.

Full log: https://pkg-status.freebsd.org/package22/data/132amd64-default-foo/2023-11-10_07h48m13s/logs/errors/dgl-1.1.1.log
Comment 1 Lorenzo Salvadore freebsd_committer freebsd_triage 2024-01-07 12:56:31 UTC
Fixed by https://cgit.freebsd.org/ports/commit/?id=b5ab8514ee9cd88c944d92d6a45b5d4caab3af2a . And the port does not depend directly on GCC, so this error has probably nothing to do with GCC_DEFAULT update.