[MacPorts] #57724: py37-zmq @17.1.2: Build failure on OSX PPC: can't locate installed zmq
MacPorts
noreply at macports.org
Sat Dec 8 08:16:17 UTC 2018
#57724: py37-zmq @17.1.2: Build failure on OSX PPC: can't locate installed zmq
---------------------------+----------------------
Reporter: SerpentChris | Owner: jrjsmrtn
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: py-zmq |
---------------------------+----------------------
Comment (by SerpentChris):
Update: I tried downloading the pyzmq source code off github, and
compiling it that way. The problem is that when it tests the installed
library, it compiles a C file into an executable, but when I run the
executable it says "Illegal Instruction" and exits with code 132. I don't
fully understand why it takes two steps to build the executable though.
Here are the lines:
{{{
/usr/bin/gcc-4.2 -fno-strict-aliasing -Wsign-compare -fno-common -dynamic
-DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -I/opt/local/include
-Izmq/utils -Izmq/backend/cython -Izmq/devices -c buildutils/vers.c -o
vers.o
/usr/bin/gcc-4.2 -arch ppc -undefined dynamic_lookup -Wl,-rpath
-Wl,/opt/local/lib vers.o -L/opt/local/lib -lzmq -o vers
}}}
I tried making my own very similar C program and running it and I got the
same error. Here are the contents:
{{{
#include <stdio.h>
#include <zmq.h>
int
main(int argc, char *argv[])
{
int major, minor, patch;
zmq_version(&major, &minor, &patch);
printf("Current ZMQ version is %d.%d.%d\n", major, minor, patch);
return 0;
}
}}}
I compiled this:
{{{
gcc-4.2 -I/opt/local/include -L/opt/local/lib -lzmq zmq_vers.c -o zmq_vers
}}}
I ran the resulting executable and got the same error, Illegal
Instruction. This is all on my Power Mac G5 running OS X 10.5.8 btw.
--
Ticket URL: <https://trac.macports.org/ticket/57724#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list