Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#60285 closed defect (fixed)

gnutls fails to build because of -no_weak_imports

Reported by: mouse07410 (Mouse) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Schamschula (Marius Schamschula)
Port: gnutls

Description

MacOS Catalina 10.15.4, Xcode-11.4.

GNUTLS upgrade fails:

. . . . .
:info:build ld: weak import of symbol '___darwin_check_fd_set_overflow' not supported because of option: -no_weak_imports for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[4]: *** [ocsptool] Error 1
. . . . .

Complete build log attached.

Attachments (1)

gnutls-failed.log.txt (1.9 MB) - added by mouse07410 (Mouse) 5 years ago.
main.log

Download all attachments as: .zip

Change History (11)

Changed 5 years ago by mouse07410 (Mouse)

Attachment: gnutls-failed.log.txt added

main.log

comment:2 Changed 5 years ago by Schamschula (Marius Schamschula)

As mentioned in the above discussion, dialing the test for -no_weak_imports allowed gnutls 3.6.13 fully build on Catalina.

I will update the portfile with this temporary workaround.

comment:3 Changed 5 years ago by Schamschula (Marius Schamschula)

Owner: set to Schamschula
Resolution: fixed
Status: newclosed

In 046efe5f4567153d22d847c21b43f55e1fac0ffa/macports-ports (master):

gnutls: workaround Xcode 11.4 isue

Closes: #60285

comment:4 Changed 5 years ago by mouse07410 (Mouse)

When will the update show up? The build is still broken.

comment:5 Changed 5 years ago by Schamschula (Marius Schamschula)

It typically will take over 90 minutes for it to show.

You may have to run sudo port clean gnutls first. Otherwise, it will try to continue building the broken install.

comment:6 Changed 5 years ago by mouse07410 (Mouse)

Re. sudo port clean gnutls - absolutely. I always do that after a failed build. Didn't help (yet).

"Over 90 minutes" - that probably explains it. I'll try again in a couple of hours, and report here if the problem persists.

Thanks!

comment:7 Changed 5 years ago by mouse07410 (Mouse)

Thanks - all works now.

Plus, a weird question: why cannot one install gnutls without first deactivating autogen?''

comment:9 Changed 4 years ago by mf2k (Frank Schima)

Hmmm. Now I see this:

$ port -v sync
--->  Updating the ports tree
Synchronizing local ports tree from file:///opt/mports/macports-ports
Current branch master is up to date.
Creating port index in /opt/mports/macports-ports
Failed to parse file devel/gnutls/Portfile: expected boolean value but got "${xcodeversion} == 11.4 || ${xcodeversion} == 11.4"

comment:10 Changed 4 years ago by Schamschula (Marius Schamschula)

My bad. I wish port lint -nitpick would have pointed out the error.

Note: See TracTickets for help on using tickets.