Opened 5 years ago

Closed 5 years ago

#58766 closed defect (fixed)

libgcc9 failed to build

Reported by: btywoniuk (Bart) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: catalina Cc: stromnov (Andrey Stromnov)
Port: libgcc9

Description

I'm trying to install fresh version of MacPorts on macOS Catalina. When I trying to install numpy it starts from libgcc9 that is a decency. Unfortunately compilation of libgcc fails. I have the same situation when installing directly libgcc9 or libgcc-devel

info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc/config/darwin-crt-tm.c:29:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/mach-o/dyld.h:107:168: error: 'unavailable' undeclared here (not in a function)
:info:build   107 | extern void _tlv_bootstrap(void)                                             __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0) __attribute__((availability(driverkit,unavailable))) ;
:info:build       |                                                                                                                                                                        ^~~~~~~~~~~
:info:build make[3]: *** [crttms.o] Error 1

Attachments (1)

main.log.zip (1.8 MB) - added by btywoniuk (Bart) 5 years ago.
main log

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by btywoniuk (Bart)

Attachment: main.log.zip added

main log

comment:1 Changed 5 years ago by kencu (Ken)

<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90835>

For right now, perhaps building against the 10.14 SDK might work...

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Keywords: catalina added; Catalina gcc numpy removed
Milestone: MacPorts 2.6.0

The Milestone field is for use by Macports team members only, please do not set it.

comment:3 in reply to:  1 Changed 5 years ago by btywoniuk (Bart)

Replying to kencu:

<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90835>

For right now, perhaps building against the 10.14 SDK might work...

Could you pleas guide me how to do that?

comment:4 Changed 5 years ago by kencu (Ken)

I don’t think we have a guide for this at present.

You can get an idea of what to do from the libsdl2 portfile.

It’s a bit advanced and you might need one of the usual MacPorts devs who has Catalina running to set out the full process.

It’s possible it won’t work with something like gcc.

comment:5 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Remember not to discuss issues with prerelease macOS versions publicly; see wiki:FAQ#prerelease.

comment:6 Changed 5 years ago by stromnov (Andrey Stromnov)

Cc: stromnov added

comment:7 Changed 5 years ago by dlamija (Muhammed Ramiza)

it's being fixed on full release Catalina 10.14. Considered Close!

comment:8 Changed 5 years ago by cjones051073 (Chris Jones)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.