Opened 22 months ago

Last modified 12 months ago

#65550 closed defect

julia: link fails for 10.14 and earlier: ld: unsupported tapi file type '!tapi-tbd' in YAML file — at Version 9

Reported by: githubbjs (BJS) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc: githubbjs (BJS), flwyd (Trevor Stone), mascguy (Christopher Nielsen)
Port: julia

Description (last modified by mascguy (Christopher Nielsen))

This port is failing to build for 10.14 and earlier, with the following link error:

ld: unsupported tapi file type '!tapi-tbd' in YAML file 'work/julia-1.8.0/src/mach_dyld_atfork.tbd' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

https://ports.macports.org/port/julia/details/

Change History (12)

comment:1 Changed 22 months ago by githubbjs (BJS)

Cc: githubbjs added

comment:2 Changed 22 months ago by kencu (Ken)

will need a log please

comment:3 Changed 22 months ago by kencu (Ken)

Port: julia added
Summary: Julia cannot be installed with gcc12ulia-1.7.3_0+gcc12: build fails on High Sierra

comment:4 Changed 22 months ago by kencu (Ken)

Owner: set to essandess
Status: newassigned
Summary: ulia-1.7.3_0+gcc12: build fails on High Sierrajulia-1.7.3_0+gcc12: build fails on High Sierra

Changed 22 months ago by githubbjs (BJS)

Attachment: main.log added

log file

comment:5 Changed 22 months ago by kencu (Ken)

kind of an unusual error:

Failed to build julia: ln: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_julia/julia/work/bin/gfortran: File exists

comment:6 Changed 21 months ago by flwyd (Trevor Stone)

I'm also getting an error on Mojave (10.14.6). I first saw this with port upgrade outdated but the error continues after an uninstall/reinstall cycle. I don't think the gfortran message is the root cause. In my log and the log from githubbjs I see:

:info:build ld: warning: text-based stub file /opt/local/var/macports/build/_opt_local_var_macports_
sources_rsync.macports.org_macports_release_tarballs_ports_lang_julia/julia/work/julia-1.8.0/src/mach_dyld_atfork.tbd and library file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_julia/julia/work/julia-1.8.0/src/mach_dyld_atfork.tbd are out of sync. Falling back to library file for linking.
:info:build ld: unsupported tapi file type '!tapi-tbd' in YAML file '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_julia/julia/work/julia-1.8.0/src/mach_dyld_atfork.tbd' for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)

My first attempt doesn't have a gfortran error, but if I run port install julia a second time without port clean julia then I get the following error:

--->  Attempting to fetch julia-1.8.0_0+gcc12.darwin_18.x86_64.tbz2 from http://packages.macports.org/julia
--->  Attempting to fetch julia-1.8.0_0+gcc12.darwin_18.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/julia
--->  Attempting to fetch julia-1.8.0_0+gcc12.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/julia
--->  Building julia
Error: Failed to build julia: ln: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_julia/julia/work/bin/gfortran: File exists
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_julia/julia/main.log for details.

gfortran in the work/bin directory is a symlink to /opt/local/bin/gfortran-mp-12.

Changed 21 months ago by flwyd (Trevor Stone)

Attachment: julia-build1.log added

error after clean

Changed 21 months ago by flwyd (Trevor Stone)

Attachment: julia-build2.log added

Error on second try without cleaning

comment:7 Changed 21 months ago by flwyd (Trevor Stone)

Cc: flwyd added

comment:8 Changed 21 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:9 Changed 21 months ago by mascguy (Christopher Nielsen)

Description: modified (diff)
Summary: julia-1.7.3_0+gcc12: build fails on High Sierrajulia: link fails for 10.14 and earlier: ld: unsupported tapi file type '!tapi-tbd' in YAML file
Version: 2.7.2
Note: See TracTickets for help on using tickets.