[MacPorts] #67221: luajit fails on 10.5, needs TLS
MacPorts
noreply at macports.org
Fri Jan 26 08:40:58 UTC 2024
#67221: luajit fails on 10.5, needs TLS
-----------------------+---------------------
Reporter: rmottola | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: leopard
Port: luajit |
-----------------------+---------------------
Comment (by rmottola):
@ryandesign sorry for the late answer, didn't read it! Since I hit the
issue again, I tried.
Your suggestion works.
Also, in the portfile I see:
{{{
compiler.blacklist {clang < 700} *gcc-4.2 macports-clang-3.3 macports-
clang-3.4
}}}
But 10.5 has both 4.0 and 4.2 gcc, so paradoxically blacklisting 4.2
probably selects 4.0. I tried and it is enough to add *gcc-4.0 there
So both ways work, I think that your suggestion is conceptually cleaner,
but the other follows the existing path (maybe could even be substituted).
This leads to cleang-11 being used on intel(instead of forced gcc7) which
I think is what macports prefers.
Clang gives:
{{{
./lj_arch.h:127:5: error: 'TARGET_OS_IPHONE' is not defined, evaluates to
0 [-Werror,-Wundef-prefix=TARGET_OS_]
#if TARGET_OS_IPHONE
}}}
which I think should be written
{{{
#ifdef TARGET_OS_IPHONE)
}}}
or pedantically as
{{{
#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
}}}
and we are done on 10.5 intel, both 32bit and 64bit.
--
Ticket URL: <https://trac.macports.org/ticket/67221#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list