[MacPorts] #54616: When installing wine, orc fails compilation (Snow Leopard)
MacPorts
noreply at macports.org
Tue Aug 15 22:27:57 UTC 2017
#54616: When installing wine, orc fails compilation (Snow Leopard)
--------------------+-----------------
Reporter: Umo022 | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
--------------------+-----------------
When I'm upgrading wine, among the dependencies being rebuilt is orc
(depended upon by gstreamer1-gst-plugins-base and pulseaudio, which in
turn, wine eventually depends on). When orc is being built, it fails with
the following error:
{{{
:info:build CC liborc_0.4_la-orccpu-x86.lo
:info:build CC generate_bytecode-generate-bytecode.o
:info:build orccpu-x86.c: In function ‘get_cpuid_ecx’:
:info:build orccpu-x86.c:99: error: can't find a register in class ‘BREG’
while
reloading ‘asm’:info:build orccpu-x86.c:99: error: ‘asm’ operand has
impossible constraints
}}}
with the associated code being:
{{{
#if defined(HAVE_I386)
__asm__ (
" pushl %%ebx\n"
" cpuid\n"
" mov %%ebx, %%esi\n"
" popl %%ebx\n"
: "+a" (*a), "=S" (*b), "+c" (*c), "=d" (*d));
#elif defined(HAVE_AMD64)
/**** ERROR HAPPENS HERE ****/
__asm__ (
" cpuid\n"
: "+a" (*a), "=b" (*b), "+c" (*c), "=d" (*d));
#endif
}
}}}
Now, the thing being that I'm running MacOS 10.6 "Snow Leopard" on a
MacBook, I don't have an AMD64 processor, but I do have an I386 (an Intel
Core 2 Duo to be precise), so it looks to me that the wrong branch is
being taken on that #elif. However, I haven't been able to figure out
where the HAVE_AMD64 symbol is being defined. Maybe a build script error?
I thought that maybe my setup had been corrupted somehow, so I completely
wiped my macports installation and macports and wine from scratch. I
ended up with the same error.
Unfortunately, orc doesn't have a maintainer, so since this happened while
I was trying to build wine, hopefully someone on this end can help ...
Thanks.
--
Ticket URL: <https://trac.macports.org/ticket/54616>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list