llvminfo woes
Adriaan van Os via fpc-pascal <[email protected]> Wed, 22 Jul 2026 07:45:46 +0000 (UTC)
| Newsgroups | gmane.comp.compilers.free-pascal.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============4704008229112466643==
Content-Type: multipart/alternative;
boundary="------------O25olRT7HFjw546mLkVxRV15"
Content-Language: en-US
This is a multi-part message in MIME format.
--------------O25olRT7HFjw546mLkVxRV15
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
This is a follow up on
<https://gitlab.com/freepascal.org/fpc/source/-/work_items/41823>
Jonas suggests to add -dNOLLVM (to compile a non-llvm compiler with an
llvm compiler). When I do that, I get
/Users/administrator/fpc-svn/fpc/compiler/ppc1 -dFPC_USE_LIBC -Ur -Xs
-O2 -n -Fi../inc -Fi../aarch64 -Fi../unix -Fi../bsd -Fi../bsd/aarch64
-Fi../darwin/aarch64 -FE.
-FU/Users/administrator/fpc-svn/fpc/rtl/units/aarch64-darwin
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
-XR/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-g- -Clv15.0 -dNOLLVM -daarch64 -dRELEASE -Us -Sg ../bsd/system.pp
Error: Illegal parameter: -Clv15.0
make[7]: *** [system.ppu] Error 1
make[6]: *** [darwin_all] Error 2
make[5]: *** [rtl] Error 2
make[4]: *** [next] Error 2
make[3]: *** [ppc2] Error 2
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.aarch64-darwin] Error 2
logout
When I skip the -Clv15.0, I get
/bin/mkdir -p /Users/administrator/fpc-svn/fpc/rtl/units/aarch64-darwin
/usr/local/lib/fpc/3.3.1-llvm/ppca64 -dFPC_USE_LIBC -Ur -Xs -O2 -n
-Fi../inc -Fi../aarch64 -Fi../unix -Fi../bsd -Fi../bsd/aarch64
-Fi../darwin/aarch64 -FE.
-FU/Users/administrator/fpc-svn/fpc/rtl/units/aarch64-darwin
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
-XR/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-g- -dNOLLVM -daarch64 -dRELEASE -Us -Sg ../bsd/system.pp
/Users/administrator/fpc-svn/fpc/rtl/units/aarch64-darwin/system.ll:10644:77:
error: expected '('
define void @"\01_SYSTEM_$$_STRPAS$PANSICHAR$$SHORTSTRING"([256 x i8]*
sret noalias nocapture %p.$result, i8* %p.p) inlinehint nobuiltin
"null-pointer-is-valid"="true" strictfp {
^
1 error generated.
system.pp(429,1) Error: Error while assembling exitcode 1
Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
make[7]: *** [system.ppu] Error 1
make[6]: *** [darwin_all] Error 2
make[5]: *** [rtl] Error 2
make[4]: *** [next] Error 2
make[3]: *** [ppc1] Error 2
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.aarch64-darwin] Error 2
logout
Regards,
Adriaan van Os
--------------O25olRT7HFjw546mLkVxRV15
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<font face="Helvetica, Arial, sans-serif">This is a follow up on
<a class="moz-txt-link-rfc2396E" href="https://gitlab.com/freepascal.org/fpc/source/-/work_items/41823"><https://gitlab.com/freepascal.org/fpc/source/-/work_items/41823></a><br>
<br>
Jonas suggests to add -dNOLLVM (to compile a non-llvm compiler
with an llvm compiler). When I do that, I get<br>
<br>
/Users/administrator/fpc-svn/fpc/compiler/ppc1 -dFPC_USE_LIBC -Ur
-Xs -O2 -n -Fi../inc -Fi../aarch64 -Fi../unix -Fi../bsd
-Fi../bsd/aarch64 -Fi../darwin/aarch64 -FE.
-FU/Users/administrator/fpc-svn/fpc/rtl/units/aarch64-darwin
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
-XR/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-g- -Clv15.0 -dNOLLVM -daarch64 -dRELEASE -Us -Sg
../bsd/system.pp<br>
Error: Illegal parameter: -Clv15.0<br>
make[7]: *** [system.ppu] Error 1<br>
make[6]: *** [darwin_all] Error 2<br>
make[5]: *** [rtl] Error 2<br>
make[4]: *** [next] Error 2<br>
make[3]: *** [ppc2] Error 2<br>
make[2]: *** [cycle] Error 2<br>
make[1]: *** [compiler_cycle] Error 2<br>
make: *** [build-stamp.aarch64-darwin] Error 2<br>
logout<br>
<br>
When I skip the </font><font face="Helvetica, Arial, sans-serif">
-Clv15.0, I get<br>
<br>
/bin/mkdir -p
/Users/administrator/fpc-svn/fpc/rtl/units/aarch64-darwin<br>
/usr/local/lib/fpc/3.3.1-llvm/ppca64 -dFPC_USE_LIBC -Ur -Xs -O2 -n
-Fi../inc -Fi../aarch64 -Fi../unix -Fi../bsd -Fi../bsd/aarch64
-Fi../darwin/aarch64 -FE.
-FU/Users/administrator/fpc-svn/fpc/rtl/units/aarch64-darwin
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
-XR/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-g- -dNOLLVM -daarch64 -dRELEASE -Us -Sg ../bsd/system.pp<br>
/Users/administrator/fpc-svn/fpc/rtl/units/aarch64-darwin/system.ll:10644:77:
error: expected '('<br>
define void @"\01_SYSTEM_$$_STRPAS$PANSICHAR$$SHORTSTRING"([256 x
i8]* sret noalias nocapture %p.$result, i8* %p.p) inlinehint
nobuiltin "null-pointer-is-valid"="true" strictfp {<br>
^<br>
1 error generated.<br>
system.pp(429,1) Error: Error while assembling exitcode 1<br>
Fatal: There were 2 errors compiling module, stopping<br>
Fatal: Compilation aborted<br>
make[7]: *** [system.ppu] Error 1<br>
make[6]: *** [darwin_all] Error 2<br>
make[5]: *** [rtl] Error 2<br>
make[4]: *** [next] Error 2<br>
make[3]: *** [ppc1] Error 2<br>
make[2]: *** [cycle] Error 2<br>
make[1]: *** [compiler_cycle] Error 2<br>
make: *** [build-stamp.aarch64-darwin] Error 2<br>
logout<br>
<br>
<br>
Regards,<br>
<br>
Adriaan van Os<br>
<br>
</font>
</body>
</html>
--------------O25olRT7HFjw546mLkVxRV15--
--===============4704008229112466643==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
--===============4704008229112466643==--