Opened 2 years ago

Closed 2 years ago

#61108 closed defect (fixed)

LyX fails to build because wrong compiler

Reported by: metbic Owned by: kurthindenburg (Kurt Hindenburg)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: yosemite Cc:
Port: LyX

Description (last modified by ryandesign (Ryan Schmidt))

Hello.

After half a year, I decided to upgrade my Macports. However, LyX doesn't build. The upgrade program tells me I use an too old compiler and fails to build. I cleaned LyX and tried again, failed again. How do I set the right compiler for LyX? Did I somehow trigger a wrong system variable? What is to be done?

Below is the Warning message I get before the build fails:


Warning: The port 'LyX' uses the cxx11 PortGroup which is deprecated.
Warning: Please instead specify the required c++ standard directly using
Warning:     compiler.cxx_standard  2011
Warning: replacing 2011 with newer standards (e.g. 2014, 2017) as required.
Warning: For more details see https://trac.macports.org/wiki/CompilerSelection

Attachments (1)

main.log (101.2 KB) - added by metbic 2 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 2 years ago by metbic

Summary: LyX fails to build because wrong complierLyX fails to build because wrong compiler

comment:2 Changed 2 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Owner: set to kurthindenburg
Status: newassigned
Type: updatedefect

The cxx11 PortGroup warning is only a warning. Yes we should fix it but it should not prevent the port from being installed or upgraded.

If you were not able to install or upgrade the port due to an error, please attach the main.log file so that we can see what the problem was. I do see from our Lyx port status page that we do have a problem building LyX for 10.11 and earlier.

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

this seems to be killing the newest of the failures on the buildbot:

linkback/LinkBackServer.m:175:23: error: use of undeclared identifier 'NSAlertStyleCritical'

which indeed is 12+ <https://developer.apple.com/documentation/appkit/nsalertstyle/nsalertstylecritical?language=objc>

Last edited 2 years ago by kencu (Ken) (previous) (diff)

Changed 2 years ago by metbic

Attachment: main.log added

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

try this <https://github.com/macports/macports-ports/pull/8287>

works for me on 10.6.8.

comment:5 Changed 2 years ago by metbic

Alright. At first, thanks for reading through this. The port status doesn't say anything about compilers if I understood that correctly.

@Ken I see your contribution changes a compiler setting. But how do I integrate your bugfix? Is it easier to simply wait until it's part of the next upgrade version?

comment:6 Changed 2 years ago by kencu (Ken)

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