Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: exception hangs #5453

Open
certik opened this issue Nov 22, 2024 · 4 comments
Open

macOS: exception hangs #5453

certik opened this issue Nov 22, 2024 · 4 comments

Comments

@certik
Copy link
Contributor

certik commented Nov 22, 2024

+ lfortran -c tests/string1.f90
Internal Compiler Error: Unhandled exception
[HANG]
@Thirumalai-Shaktivel
Copy link
Member

Yes, this seems to be related to generating the stack trace.

Disabling it using DWITH_STACKTRACE=NO works.

We need to fix this.

@pjh40
Copy link
Contributor

pjh40 commented Nov 23, 2024

I was having that problem as well. This CMake config fixes it for me:

cmake \
    -DCMAKE_BUILD_TYPE=Debug \
    -DWITH_LLVM=yes \
    -DWITH_STACKTRACE=yes \
    -DWITH_LLVM_STACKTRACE=yes \
    -DWITH_RUNTIME_STACKTRACE=yes \
    -DCMAKE_INSTALL_PREFIX=`pwd`/inst \
    -DWITH_LSP=no \
    -DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH_LFORTRAN;$CONDA_PREFIX" \
    -DCMAKE_INSTALL_PREFIX=`pwd`/inst \
    -DCMAKE_INSTALL_LIBDIR=share/lfortran/lib \
    -GNinja \
    .

I think it was the WITH_LLVM_STACKTRACE that did the trick.

@Thirumalai-Shaktivel
Copy link
Member

Yes, that works. Thank you!

@certik
Copy link
Contributor Author

certik commented Nov 23, 2024

I finally have good access to all three platforms (Windows, macOS, Linux), so I'll try to get this experience smoothed out on all platforms, so that things just work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants