Opened 4 years ago

Last modified 4 years ago

#61108 closed defect

LyX fails to build because wrong compiler — at Version 2

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 Carsten 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

Change History (2)

comment:1 Changed 4 years ago by metbic

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

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten 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.

Note: See TracTickets for help on using tickets.