[MacPorts] #30388: mono fails to build
#30388: mono fails to build -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: mono -------------------------------+-------------------------------------------- Upgraded to MacPorts 2.0.0 today and tried to install mono. The build fails with a #error: :info:build /usr/include/ucontext.h:43:2: error: #error The deprecated ucontext routines require _XOPEN_SOURCE to be defined Logs attached. -- Ticket URL: <https://trac.macports.org/ticket/30388> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: lion | Port: mono -------------------------------+-------------------------------------------- Changes (by jmr@…): * keywords: => lion * cc: rb@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/30388#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: lion | Port: mono -------------------------------+-------------------------------------------- Description changed by ryandesign@…: Old description:
Upgraded to MacPorts 2.0.0 today and tried to install mono. The build fails with a #error:
:info:build /usr/include/ucontext.h:43:2: error: #error The deprecated ucontext routines require _XOPEN_SOURCE to be defined
Logs attached.
New description: Upgraded to MacPorts 2.0.0 today and tried to install mono. The build fails with a #error: {{{ :info:build /usr/include/ucontext.h:43:2: error: #error The deprecated ucontext routines require _XOPEN_SOURCE to be defined }}} Logs attached. -- -- Ticket URL: <https://trac.macports.org/ticket/30388#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: lion | Port: mono -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * cc: notstop@… (added) Comment: Has duplicate #30408. -- Ticket URL: <https://trac.macports.org/ticket/30388#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: lion | Port: mono -------------------------------+-------------------------------------------- Comment(by craig-tanis@…): I got it to compile by adding "#define _XOPEN_SOURCE 600" at the top of mono/utils/mono-sigcontext.h -- Ticket URL: <https://trac.macports.org/ticket/30388#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: lion | Port: mono -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Is this still a problem with mono @2.10.6? -- Ticket URL: <https://trac.macports.org/ticket/30388#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: lion | Port: mono -------------------------------+-------------------------------------------- Comment(by notstop@…): Replying to [comment:10 ryandesign@…]:
Is this still a problem with mono @2.10.6? No
-- Ticket URL: <https://trac.macports.org/ticket/30388#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: lion | Port: mono -------------------------------+-------------------------------------------- Comment(by reid@…): I disagree. I just tried to install mono and got this error (snow leopard). -- Ticket URL: <https://trac.macports.org/ticket/30388#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: lion | Port: mono -------------------------------+-------------------------------------------- Comment(by reid@…): After adding _XOPEN_SOURCE as above, I get this: … mini-amd64.c: In function ‘mono_arch_skip_single_step’: mini-amd64.c:8521: warning: cast to pointer from integer of different size mini-amd64.c:8521: warning: cast from pointer to integer of different size mini-amd64.c: In function ‘cpuid’: mini-amd64.c:1244: error: can't find a register in class ‘BREG’ while reloading ‘asm’ mini-amd64.c:1244: error: ‘asm’ operand has impossible constraints make[4]: *** [libmono_2_0_la-mini-amd64.lo] Error 1 make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_mono/mono/work/mono-2.10.6/mono/mini' ... -- Ticket URL: <https://trac.macports.org/ticket/30388#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: lion | Port: mono -------------------------------+-------------------------------------------- Comment(by notstop@…): i didn't tweak any "#define _XOPEN_SOURCE 600" or such, just port selfupdate and so on. -- Ticket URL: <https://trac.macports.org/ticket/30388#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: lion | Port: mono -------------------------------+-------------------------------------------- Comment(by a2piratesoft@…): I got it to work under Lion by adding the following to the portfile: {{{ configure.ldflags-append -L/opt/local/lib }}} -- Ticket URL: <https://trac.macports.org/ticket/30388#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 -------------------------------+-------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: lion | Port: mono -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * cc: a2piratesoft@…, ryandesign@… (added) Comment: Replying to [comment:15 a2piratesoft@…]:
I got it to work under Lion by adding the following to the portfile:
{{{ configure.ldflags-append -L/opt/local/lib }}} That seems unlikely; -L/opt/local/lib is already in configure.ldflags by default. -- Ticket URL: <https://trac.macports.org/ticket/30388#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30388: mono fails to build on 10.7 --------------------------------+------------------------------------------- Reporter: rb@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: fixed | Keywords: lion Port: mono | --------------------------------+------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: Mono has built on Lion since at least 2.10.6: http://packages.macports.org/mono/ -- Ticket URL: <https://trac.macports.org/ticket/30388#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts