[MacPorts] #20906: babl opcode errors on OS X 10.6
MacPorts
noreply at macports.org
Mon Aug 31 14:54:42 PDT 2009
#20906: babl opcode errors on OS X 10.6
----------------------------------+-----------------------------------------
Reporter: macports@… | Owner: devans@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Resolution: fixed | Keywords:
Port: babl |
----------------------------------+-----------------------------------------
Comment(by albert.veli@…):
I have done some more investigations into this and I traced it to the
function arch_get_vendor(), and the following section:
{{{
#ifndef ARCH_X86_64
/* Only need to check this on ia32 */
__asm__ ("pushfl\n\t"
"pushfl\n\t"
"popl %0\n\t"
"movl %0,%1\n\t"
"xorl $0x200000,%0\n\t"
"pushl %0\n\t"
"popfl\n\t"
"pushfl\n\t"
"popl %0\n\t"
"popfl"
: "=a" (eax),
"=c" (ecx)
:
: "cc");
if (eax == ecx)
return ARCH_X86_VENDOR_NONE;
#endif
}}}
This trouble code should not be run if arch is x86_64, but it is run
anyway. So I noted configure detects the build system as "i386-apple-
darwin10.0.0". This in turn comments out the ARCH_X86_64 define from
config.h. So I tried to force it to set ARCH_X86_64 by writing the
following into the babl portfile:
configure.args = --build=x86_64-apple-darwin10.0.0
I have no idea if this is a good solution, but at least it works for babl.
And it works for gegl too.
--
Ticket URL: <http://trac.macports.org/ticket/20906#comment:13>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list