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

[Bug]: cmake does not work #7831

Closed
ProjectPhysX opened this issue Oct 23, 2021 · 12 comments
Closed

[Bug]: cmake does not work #7831

ProjectPhysX opened this issue Oct 23, 2021 · 12 comments
Labels
bug report Something is not working properly

Comments

@ProjectPhysX
Copy link

ProjectPhysX commented Oct 23, 2021

Problem description

cmake does not work in Termux F-Droid Versions 0.117, 0.116 and 0.115. I have a Samsung Galaxy S9+ with Android 10. In the Google Play Store version it does also not work anymore. cmake is version 3.21.3

EDIT: It seems to be related with g++ not working. Compiling C++ with clang result in cannot find -lgcc. I can't even install g++.

What steps will reproduce the bug?

Install Termux from F-Droid.

apt update
apt upgrade
pkg install cmake
cmake --version
CANNOT LINK EXECUTABLE "cmake": cannot locate symbol "_Unwind_Resume" referenced by "/data/data/com.termux/files/usr/bin/cmake"...

What is the expected behavior?

No response

System information

termux-info: Version 0.117 on Android 10

@ProjectPhysX ProjectPhysX added the bug report Something is not working properly label Oct 23, 2021
@landfillbaby
Copy link
Member

#7788 (comment)

@landfillbaby
Copy link
Member

landfillbaby commented Oct 23, 2021

looks like the mass bump didn't include this
or android-tools
after llvm 13 finishes building we can bump cmake

@Grimler91
Copy link
Member

Yepp, cmake and ldc needs libllvm first.

android-tools is one of the ones with build issues: #7806

@tathastu871
Copy link
Contributor

checking whether the C++ compiler works... no
configure: error: C++ compiler cannot create executables

@finagolfin
Copy link
Member

The -lgcc issue is not with CMake: it should disappear after upgrading to clang 13 that was just released. I cannot reproduce the CANNOT LINK EXECUTABLE error with CMake itself, using the latest 3.21.3 package from a couple weeks ago.

@pcurz
Copy link

pcurz commented Oct 25, 2021

I have the same issue
btw here is termux-info output

Application version:
0.117
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages.termux.org/apt/termux-main/ stable main
# game-repo (sources.list.d/game.list)
deb https://packages.termux.org/apt/termux-games games stable
# science-repo (sources.list.d/science.list)
deb https://packages.termux.org/apt/termux-science science stable
# sources.list.d/pointless.list
deb https://its-pointless.github.io/files/24 termux extras
Updatable packages:
All packages up to date
Android version:
10
Kernel build information:
Linux localhost 4.14.116 #1 SMP PREEMPT Mon Aug 30 16:58:26 CST 2021 aarch64 Android
Device manufacturer:
HUAWEI
Device model:
STK-LX3

@finagolfin
Copy link
Member

Can you clarify what the issue you're seeing is, @xfrcc? There are two different errors noted above.

@pcurz
Copy link

pcurz commented Oct 25, 2021

Calling cmake throws
CANNOT LINK EXECUTABLE "cmake": cannot locate symbol "_Unwind_Resume" referenced by "/data/data/com.termux/files/usr/bin/cmake"...
However, i can compile c++ with clang without issues, i already restarted with a fresh install.

@finagolfin
Copy link
Member

Hmm, there is something weird going on with the unwind symbols, I just had a CI failure on Android 7 with a similar error. It might be related to the Android version, as I cannot reproduce with the CMake package running on Android 11 aarch64.

@pcurz
Copy link

pcurz commented Oct 25, 2021

Curiously enough it was working for me before clang v13.0.0, is there any documentation about compiling previous packages? since Termux works with rolling-release updates.

@finagolfin
Copy link
Member

No, it has nothing to do with clang 13: we cross-compile the packages from linux with clang 12 from the Android NDK. Rather, it has to do with the NDK 23 update this weekend, which changed how it links against libunwind.

I bumped the CMake package to trigger a rebuild against NDK 23b, 53e6dff, that should fix it for you all. If I keep seeing other issues like on my CI, I will open another issue for libunwind generally.

@ProjectPhysX
Copy link
Author

cmake works now. The clang issue is also fixed.
Thank you all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly
Projects
None yet
Development

No branches or pull requests

6 participants