I looked a bit at your project and wanted to create a Release executable using CMake:
cd chill
# ROSEHOME, etc. are already set
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config=Release -j 12
However, when I try to run a simple program (see below) it seems to run into an endless loop (at least that's what I assume).
I guess my compiler optimizes some undefined behavior in such a way, that chill runs into an endless loop. One CPU works at 100% and even after 5min, the program hasn't finished and I aborted it.
It took me a while to just delete my build folder and compile CHiLL in debug mode. And to my surprise, I instantly got the correct result.
While compiling, I get a lot of compiler warnings. I haven't looked into them, but I assume that there are a few that would need fixing. I only wanted to create this issue in case others run into the same bug. Furthermore, CHiLL works just fine when compiled in Debug mode. :-)
$ /usr/bin/g++ --version
g++ (Ubuntu 11.1.0-1ubuntu1~20.04) 11.1.0
Copyright (C) 2021 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.
ROSE: 0.11.46
$ apt info rose
Package: rose
Version: 0.11.46.0.1-0
Hi there,
first of all: Great project! :+1:
I looked a bit at your project and wanted to create a Release executable using CMake:
However, when I try to run a simple program (see below) it seems to run into an endless loop (at least that's what I assume).
I guess my compiler optimizes some undefined behavior in such a way, that
chill
runs into an endless loop. One CPU works at 100% and even after 5min, the program hasn't finished and I aborted it.It took me a while to just delete my build folder and compile CHiLL in debug mode. And to my surprise, I instantly got the correct result.
While compiling, I get a lot of compiler warnings. I haven't looked into them, but I assume that there are a few that would need fixing. I only wanted to create this issue in case others run into the same bug. Furthermore, CHiLL works just fine when compiled in Debug mode. :-)
loop.script.py
loop.cpp
Output in
Release
modeOutput in
Debug
modeSetup
GCC: 11.1
ROSE: 0.11.46
IEGenLib: latest master branch from GitHub