Opened 5 years ago

Closed 4 years ago

#59130 closed defect (worksforme)

lilypond-devel @2.19.83_2: error: expected initializer before '__OSX_AVAILABLE_STARTING'

Reported by: dliessi (Davide Liessi) Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: nerdling (Jeremy Lavergne)
Port: lilypond-devel

Description

A user reported this build error here, attaching the main.log file here (I attach that file to this ticket). I'll take care of keeping the user informed of the development of this ticket.

This does not seem a duplicate of #58913.

MacOS 10.14.6 Xcode 11.0

Attachments (1)

main.log (680.5 KB) - added by dliessi (Davide Liessi) 5 years ago.

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by dliessi (Davide Liessi)

Attachment: main.log added

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

This would seem to be another example of the fact that gcc cannot build things against the new MacOSX10.15.sdk headers in Xcode 11, because at present gcc does not handle these macros:

__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5, __MAC_10_6, __IPHONE_NA, __IPHONE_NA);

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

comment:2 Changed 4 years ago by nerdling (Jeremy Lavergne)

kencu: any updates? Tempted to close and just point at #59113.

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

I think they fixed gcc -- Iain certainly had fixes in. did they not?

Otherwise I can come up with some very simple defines for you like this to disappear them:

#define __OSX_AVAILABLE_BUT_DEPRECATED(...)

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

didn't do anything special port -v install lilypond-devel

looks like it built with clang now.

checking for gcc... /usr/bin/clang
$ port -v installed | grep lilypond
  lilypond-devel @2.21.2_0 (active) platform='darwin 18' archs='x86_64' date='2020-06-30T22:47:20-0700'

comment:5 Changed 4 years ago by nerdling (Jeremy Lavergne)

Resolution: worksforme
Status: assignedclosed

Sounds like things are now working without modifying lilypond ourselves.

Note: See TracTickets for help on using tickets.