[MacPorts] #36250: irsim: error: expected a platform name, e.g., 'macosx' (was: irsim)

MacPorts noreply at macports.org
Thu Sep 20 16:51:33 PDT 2012


#36250: irsim: error: expected a platform name, e.g., 'macosx'
----------------------------------+--------------------------
  Reporter:  rupapara.prashant@…  |      Owner:  and.damore@…
      Type:  defect               |     Status:  new
  Priority:  Normal               |  Milestone:
 Component:  ports                |    Version:  2.1.2
Resolution:                       |   Keywords:
      Port:  irsim                |
----------------------------------+--------------------------
Changes (by ryandesign@…):

 * cc: ryandesign@… (added)
 * owner:  macports-tickets@… => and.damore@…


Comment:

 The error I see in the log you attached is:

 {{{
 error: expected a platform name, e.g., 'macosx'
 }}}

 I just fixed this problem in magic recently so hopefully the fix I applied
 there can be used for irsim as well. The problem is that a #define
 "macosx" is being set by the project, and this conflicts with directives
 in the system headers on at least Mountain Lion. The fix is to remove the
 custom `macosx` #define and to use the `__APPLE__` #define Apple already
 provides.

 I can confirm that using llvm-gcc-4.2 works around the problem but I'm
 surprised that works. I think we should not employ that workaround in the
 port; instead we should patch the software just as I patched magic
 already, and submit that patch to the developers.

 First we should update irsim to the latest version. I just fixed the
 livecheck.

 We should also apply additional patches to irsim that are already in the
 magic port, including removing "-I/sw/include" from the build system.

-- 
Ticket URL: <https://trac.macports.org/ticket/36250#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list