Opened 7 years ago

Closed 6 years ago

#55834 closed defect (fixed)

LibreCAD: g++-mp-4.8: error: unrecognized command line option '-arch'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: librecad@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: dongxuli2011@…
Port: LibreCAD

Description

LibreCAD fails to build on OS X 10.8 and earlier with:

g++-mp-4.8: error: unrecognized command line option '-arch'

What is going on here? Why does the port force the use of gcc48 on 10.8 and earlier? That's super strange.

I see the build uses -std=c++11. If the use of gcc48 was an attempt to provide a C++11-compatible compiler, please just include the cxx11-1.1 portgroup and let it handle these details.

Change History (3)

comment:1 Changed 7 years ago by rvt (R. van Twisk)

At the time more than a few moons ago... I don't think we had a cxx11-1.1 option but educate me if that was the case. If I remember correctly, and it's been a while.... 10.8 support was needed for us and we only had one test machine (virtualised) to test it on. It wasn't easy to make all builds work....

We can drop support of 10.8...

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

I have this working on the last MacPorts version back to 10.6.8 without any trouble.

$ port -v installed librecad
The following ports are currently installed:
  LibreCAD @2.0.8_2 (active) platform='darwin 10' archs='x86_64' date='2018-05-21T15:30:16-0700'

I'll update it to the current release version and set up a PR for you shortly.

comment:3 Changed 6 years ago by ken-cunningham-webuse

Resolution: fixed
Status: newclosed

In 9bc787f838942a25557b91f8dfc67b4e19a1b0d5/macports-ports (master):

LibreCAD: update to 2.1.3

LibreCAD-devel: new port
change both to qt5
add cxx11 1.1 PG
simplify Portfile structure

closes: #43276
closes: #48806
closes: #54722
closes: #55834
closes: #56024

Note: See TracTickets for help on using tickets.