Closed FFengIll closed 4 years ago
A solution is (only for mine now):
add -arch x86_64
into CFLAS in vex.
but add -arch i386
into CFLAS in pyvex/pyvex_c.
So the version can be link and built.
But some *.o lost (of course, the arch is not compatible).
None of us have a macOS install available, so we can't fix this or test any fix you give us. Submit a pull request once you have a solution and we'll try to get someone to test it?
It takes some time to confirm the question and solution.
The question comes from ar
(for static lib) - mac xcode utils is different with gnu utils (or others) in this version,
so different compile tool chain will report different error or generate different result
(especially when the tools in PATH
are incompatible - no right error report, no real error report).
(for me, I have 2 chains)
mac xcode
ar
has different options with linux. some ld flags may need to change, too.
I am not sure the solution is safe enough to PR, I will take more chance to test more.
Furthermore, may keep this issue as tips.
some references here:
I ran into this issue trying to build pyvex on MacOS 10.14.3. Switching to the ar
that ships with xcode over the GNU ar
fixed the linking issue. I think the recommended fix should just be to make sure the xcode ar
is being used.
For macos mojave, compile failed for ld (x86_64) error. Under mac os mojave (10.14+) with darwin kernel 18+.