[MacPorts] #64187: Add a patch to libtapi to fix a build on PPC: vector to __vector in Lexer.cpp
MacPorts
noreply at macports.org
Mon Mar 21 13:15:07 UTC 2022
#64187: Add a patch to libtapi to fix a build on PPC: vector to __vector in
Lexer.cpp
---------------------------+-------------------------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: powerpc, leopard, snowleopard
Port: libtapi |
---------------------------+-------------------------------------------
Comment (by barracuda156):
Replying to [comment:1 kencu]:
> I would imagine libtapi might be made to build on ppc with enough effort
The current `libtapi` @1100.0.11_0 has built after I added the following
patch:
{{{
--- src/llvm/projects/clang/lib/Lex/Lexer.cpp.orig 2020-12-19
14:12:05.000000000 +0800
+++ src/llvm/projects/clang/lib/Lex/Lexer.cpp 2022-03-21
21:05:18.000000000 +0800
@@ -2573,7 +2573,7 @@
'/', '/', '/', '/', '/', '/', '/', '/'
};
while (CurPtr+16 <= BufferEnd &&
- !vec_any_eq(*(const vector unsigned char*)CurPtr, Slashes))
+ !vec_any_eq(*(const __vector unsigned char*)CurPtr,
Slashes))
CurPtr += 16;
#else
// Scan for '/' quickly. Many block comments are very large.
}}}
Ref: https://systems.nic.uoregon.edu/internal-
wiki/index.php?title=Tau_clang_plugin
Once Lexer.cpp is patched, it builds normally with macports-gcc-11:
```
36-73% port -v installed libtapi
The following ports are currently installed:
libtapi @1000.10.8_1 requested_variants='' platform='darwin 10'
archs='ppc' date='2022-03-20T07:55:02+0800'
libtapi @1100.0.11_0 (active) requested_variants='' platform='darwin 10'
archs='ppc' date='2022-03-21T20:55:45+0800'
```
--
Ticket URL: <https://trac.macports.org/ticket/64187#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list