#65388 closed defect (fixed)
mlir-14 @14.0.5_0+universal: fatal error: error in backend: Unsupported expression in static initializer: zext (i32 ptrtoint ([9 x i8]* @.str.26 to i32) to i64)
Reported by: | thetrial (alabay) | Owned by: | Chris Jones <jonesc@…> |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | elcapitan legacy-os | Cc: | cjones051073 (Chris Jones) |
Port: | mlir-14 |
Description
I’m cought in a catch-22 – mlir-14 is called by clang-14, clang-14 is called by openal-soft, openal-soft is called by winetricks. A clang-13 is present and working, but unnecessarily I’m stuck with mlir-14.
I found no way to install that – and it seems this only happens with the +universal variant. I can build mlir-14 without +universal, but this gets discarded when trying to update my setup.
:info:build [ 94%] Built target obj.MLIRStandardOpsTransforms :info:build fatal error: error in backend: Unsupported expression in static initializer: zext (i32 ptrtoint ([9 x i8]* @.str.26 to i32) to i64) :info:build clang: error: clang frontend command failed with exit code 70 (use -v to see invocation) :info:build clang version 11.1.0 :info:build Target: i386-apple-darwin15.6.0 :info:build Thread model: posix :info:build InstalledDir: /opt/local/libexec/llvm-11/bin :info:build clang: note: diagnostic msg: Error generating preprocessed source(s) - cannot generate preprocessed source with multiple -arch options.
Is mlir-14 necessary?! There is no attempt to build flang in this chain.
I’ll attach the ~24 MB logfile zipped.
This seems to be an occurance of that before: #63734.
Attachments (1)
Change History (8)
Changed 2 years ago by thetrial (alabay)
Attachment: | main.log.7z added |
---|
comment:1 Changed 2 years ago by jmroot (Joshua Root)
Port: | clang-14 openal-soft winetricks removed |
---|---|
Summary: | mlir-14 @ 14-14.0.5_0+universal: fatal error: error in backend: Unsupported expression in static initializer: zext (i32 ptrtoint ([9 x i8]* @.str.26 to i32) to i64) → mlir-14 @14.0.5_0+universal: fatal error: error in backend: Unsupported expression in static initializer: zext (i32 ptrtoint ([9 x i8]* @.str.26 to i32) to i64) |
comment:2 Changed 2 years ago by jmroot (Joshua Root)
Cc: | cjones051073 added |
---|
comment:3 Changed 2 years ago by cjones051073 (Chris Jones)
Probably an oversight... currently testing LLVM 14.0.6, with the dep removed. If it tests out will back port to clang-13.
comment:4 Changed 2 years ago by Chris Jones <jonesc@…>
Owner: | set to Chris Jones <jonesc@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:5 Changed 2 years ago by jmroot (Joshua Root)
That removes the unneeded dependency, but is mlir-14's universal variant still broken?
comment:6 Changed 2 years ago by cjones051073 (Chris Jones)
Good point... I'll reopen this so that can be tracked..
comment:7 Changed 2 years ago by cjones051073 (Chris Jones)
Actually, lets use https://trac.macports.org/ticket/63734 for both 13 and 14 as its likely the same thing in each.
Chris, it looks like your initial commit of llvm-13 had clang depending on mlir. Was that an oversight (as suggested by Ken in #63734) or is it in fact necessary?