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

ghc (Gasglow Haskell compiler) and cabal-install (package manager) packages segfault #18646

Open
redaHBZ0 opened this issue Dec 8, 2023 · 4 comments · May be fixed by #22991
Open

ghc (Gasglow Haskell compiler) and cabal-install (package manager) packages segfault #18646

redaHBZ0 opened this issue Dec 8, 2023 · 4 comments · May be fixed by #22991
Assignees
Labels
arch-arm Issue reproducible on packages compiled for ARM bug report Something is not working properly has build issues Package compilation fails haskell Haskell related stuff

Comments

@redaHBZ0
Copy link

redaHBZ0 commented Dec 8, 2023

Problem description

The package ghc, and the cabal package manager cabal-install, which is used to compile and run Haskell, and install Haskell packages respectively, are giving me a segmentation fault (with no other messages) after running ANY command related to them (even just running ghc).
I have tried installing in a fresh termux installation, but it still failed.

What steps will reproduce the bug?

pkg install ghc cabal-install
Run ghc or cabal

What is the expected behavior?

Work as intended and no segfaults.

System information

termux-info: (rooted)

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=9898
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://grimler.se/termux/termux-main stable main
# root-repo (sources.list.d/root.list)
deb https://grimler.se/termux/termux-root root stable
# x11-repo (sources.list.d/x11.list)
deb https://grimler.se/termux/termux-x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.39.5
Android version:
9
Kernel build information:
Linux localhost 3.18.91-19993241 #1 SMP PREEMPT Fri Apr 16 19:35:47 KST 2021 armv8l Android
Device manufacturer:
samsung
Device model:
SM-J330G
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
@redaHBZ0 redaHBZ0 added bug report Something is not working properly untriaged labels Dec 8, 2023
@truboxl truboxl added arch-arm Issue reproducible on packages compiled for ARM and removed untriaged labels Dec 9, 2023
@truboxl truboxl added the haskell Haskell related stuff label Jan 2, 2024
@LemmusLemmus
Copy link

I have the same issue, both ghc and ghci instantly segfaults.

@stale stale bot added the inactive No activity in a certain period of time label May 12, 2024
@ariadesupriyatna
Copy link

run proot ubuntu success, but run termux segfaults

@stale stale bot removed the inactive No activity in a certain period of time label Sep 10, 2024
@truboxl truboxl added the has build issues Package compilation fails label Sep 11, 2024
@stale stale bot added the inactive No activity in a certain period of time label Nov 26, 2024
@alan-sandollar
Copy link

What needs to happen? I want to use ghc to build other packages from git, but ghc isn't even available to install. Do I need to maybe build ghc on termux and then upload the built package?

@stale stale bot removed the inactive No activity in a certain period of time label Jan 16, 2025
@MrAdityaAlok
Copy link
Member

@alan-sandollar I'm working on building ghc v9.12.1 locally. Wait for few days.

@MrAdityaAlok MrAdityaAlok self-assigned this Jan 16, 2025
@MrAdityaAlok MrAdityaAlok linked a pull request Jan 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-arm Issue reproducible on packages compiled for ARM bug report Something is not working properly has build issues Package compilation fails haskell Haskell related stuff
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants