Open PHHargrove opened 4 months ago
Hmm. This might be a GCC bug, rather than a Chapel one !
In particular, if I set CHPL_HOST_COMPILER=clang
then the reported issue goes away.
In the initial report I have clang-17.0.3 as the compiler version.
However, I now realize that CC defaulted to gcc-7
from openSUSE Leap 15.4.
$ gcc --version
gcc (SUSE Linux) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Summary of Problem
Description:
When I build Chapel with
CHPL_LLVM=system
I see an assertion from LLVM when compiling even a simple test:The installs of LLVM on this system appear to have been build with assertions enabled, which differs from every other site where I've used
CHPL_LLVM=system
, as well as differing from how Chapel builds LLVM forCHPL_LLVM=bundled
.Is this issue currently blocking your progress?
No.
I am currently using
CHPL_LLVM=bundled
on this system, at the expense of additional time spent rebuilding Chapel.Steps to Reproduce
Source Code:
Using
hello6-taskpar-dist.chpl
in the Chapel git repo.Compile command:
Execution command:
N/A - compile step failed
Configuration Information
Note that commit d5a4aa23aa was the current tip of
main
when I started the build to reproduce this issue.Also occurs for
CHPL_GASNET_SEGMENT=large
(not that I'd have expected that to be a factor)Note, in particular, the
ON
for--assertion-mode
.Also occurs with LLVM 18.1.0 install on the same system (also
Release+Asserts
)Other
In a private Slack discussion, @jabraham17 and I agree this looks consistent with Chapel misusing some LLVM API.
However, it could just as well indicate an LLVM bug.
Independent of resolving this particular issue, I want to offer the following change for consideration: