[MacPorts] #59675: babl @ 0.1.72: error: instruction requires: Not 64-bit mode
MacPorts
noreply at macports.org
Tue Nov 12 04:28:33 UTC 2019
#59675: babl @ 0.1.72: error: instruction requires: Not 64-bit mode
--------------------+----------------------
Reporter: kencu | Owner: dbevans
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: babl
--------------------+----------------------
meson and babl have some trouble sorting out what they are building for:
{{{
[16/184] Compiling C object 'babl/4170c83@@babl-0.1 at sha/babl-cache.c.o'.
[17/184] Compiling C object 'babl/4170c83@@babl-0.1 at sha/babl-core.c.o'.
[18/184] Compiling C object 'babl/4170c83@@babl-0.1 at sha/babl-
cpuaccel.c.o'.
FAILED: babl/4170c83@@babl-0.1 at sha/babl-cpuaccel.c.o
/opt/local/bin/clang-mp-9.0 -Ibabl/4170c83@@babl-0.1 at sha -Ibabl
-I../babl-0.1.72/babl -I. -I../babl-0.1.72/ -Ibabl/base
-I../babl-0.1.72/babl/base -I/opt/local/include -Xclang -fcolor-
diagnostics -pipe -Wall -Winvalid-pch -g -Ofast -Wdeclaration-after-
statement -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wold-
style-definition -Wpointer-arith -mmmx -msse -mfpmath=sse -Os -arch x86_64
-msse2 '-DLIBDIR="/opt/local/lib"' -MD -MQ 'babl/4170c83@@babl-0.1 at sha
/babl-cpuaccel.c.o' -MF 'babl/4170c83@@babl-0.1 at sha/babl-cpuaccel.c.o.d'
-o 'babl/4170c83@@babl-0.1 at sha/babl-cpuaccel.c.o' -c ../babl-0.1.72/babl
/babl-cpuaccel.c
../babl-0.1.72/babl/babl-cpuaccel.c:161:12: error: instruction requires:
Not 64-bit mode
__asm__ ("pushfl\n\t"
^
<inline asm>:1:2: note: instantiated into assembly here
pushfl
}}}
I had to add the following two lines to the `meson.build` script to get it
to build on SnowLeopard. Likely the same on similar hardware (10.7, etc).
{{{
if host_cpu.startswith('i') and host_cpu.endswith('86')
have_x86 = true
conf.set10('ARCH_X86', true, description:
'Define to 1 if you are compiling for ix86.')
+ conf.set10('ARCH_X86_64', true, description:
+ 'Define to 1 if you are compiling for amd64.')
elif host_cpu == 'x86_64'
have_x86 = true
conf.set10('ARCH_X86', true, description:
'Define to 1 if you are compiling for ix86.')
conf.set10('ARCH_X86_64', true, description:
'Define to 1 if you are compiling for amd64.')
elif host_cpu == 'ppc' or host_cpu == 'powerpc'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/59675>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list