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]: clang++: error: unknown argument: '-fno-openmp-implicit-rpath' #19766

Closed
tangjinchuan opened this issue Apr 14, 2024 · 5 comments · Fixed by #20464
Closed

[Bug]: clang++: error: unknown argument: '-fno-openmp-implicit-rpath' #19766

tangjinchuan opened this issue Apr 14, 2024 · 5 comments · Fixed by #20464
Labels
bug report Something is not working properly

Comments

@tangjinchuan
Copy link

tangjinchuan commented Apr 14, 2024

Problem description

Dear Termux team,
I am trying to bring GPU computing to Termux in Octave using the OpenCL based package I created at https://sourceforge.net/projects/octave-ocl-extra/files/ .
However, it produced the following errors. I would be grateful if you could help me look at it.
Best wishes,
Jinchuan

182 |   DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2 (OCTAVE_EMPTY_CPP_ARG)                                     |   ^
/data/data/com.termux/files/usr/include/octave-8.4.0/octave/../octave/ov-base.h:191:58: note:              expanded from macro 'DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2'                                      191 |     VIRTUAL std::string class_name (void) const { return c_name; }      \                          |                                                          ^                                   50 warnings generated.                                                                               14 warnings generated.                                                                               38 warnings generated.
2 warnings generated.                                                                                38 warnings generated.
clang++: error: unknown argument: '-fno-openmp-implicit-rpath'
clang++: error: no such file or directory: '/home/builder/.termux-build/_cache/android-r26b-api-24-v2/lib/clang/17/lib/linux/libclang_rt.builtins-aarch64-android.a'
make: *** [Makefile:48: ocl_bin.oct] Error 1                                                         make: Entering directory '/data/data/com.termux/files/usr/tmp/oct-XGEMDO/ocl-1.2.0-Termux/src'
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_constant.cc                               /data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_lib.cc
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_context.cc                                /data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_context_obj.cc
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_program.cc
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_memobj.cc
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_array.cc
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_array_prog.cc
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_ov_matrix.cc
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_ov_matrix_ops.cc
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_ov_matrix_fcns.cc
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_ov_program.cc
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 -c ocl_ov_types.cc
/data/data/com.termux/files/usr/bin/mkoctfile-8.4.0 ocl_constant.o ocl_lib.o ocl_context.o ocl_context_obj.o ocl_program.o ocl_memobj.o ocl_array.o ocl_array_prog.o ocl_ov_matrix.o ocl_ov_matrix_ops.o ocl_ov_matrix_fcns.o ocl_ov_program.o ocl_ov_types.o -o ocl_bin.oct
make: Leaving directory '/data/data/com.termux/files/usr/tmp/oct-XGEMDO/ocl-1.2.0-Termux/src'        
error: pkg: error running 'make' for the ocl package                                                 error: called from
    configure_make at line 117 column 9                                                                  install at line 202 column 7
    pkg at line 619 column 9                                                                         octave:2>

What steps will reproduce the bug?

1 install Ocatve 8.4 via
pkg install ocatve

2 Inside Ocatve, type
pkg install https://sourceforge.net/projects/octave-ocl-extra/files/ocl-1.2.0-Termux.tar.gz/download

What is the expected behavior?

No response

System information

termux-info:

TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=31118
TERMUX_IS_DEBUGGABLE_BUILD=1                                                                         TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirror.nevacloud.com/applications/termux/termux-main stable main
# x11-repo (sources.list.d/x11.list)
deb https://mirror.nevacloud.com/applications/termux/termux-x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.42.0                                                                                               Android version:
13
Kernel build information:
Linux localhost 4.19.157-perf+ #1 SMP PREEMPT Tue Dec 19 02:13:01 CST 2023 aarch64 Android
Device manufacturer:
Lenovo                                                                                               Device model:
TB138FC                                                                                              LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
@akater
Copy link

akater commented May 15, 2024

This also breaks ECL (Termux package ecl).

@drui9
Copy link

drui9 commented May 24, 2024

Also breaks yt-dlp, and a few more packages I was actively developing on.

@Biswa96
Copy link
Member

Biswa96 commented May 24, 2024

There is a workaround explained in the above linked issue.

@drui9
Copy link

drui9 commented May 24, 2024

Thanks. The workaround did come around 💯

@licy183
Copy link
Member

licy183 commented Jun 9, 2024

Emmm... This hasn't been fixed yet. Only Python is workarounded currently.

@licy183 licy183 reopened this Jun 9, 2024
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

Successfully merging a pull request may close this issue.

6 participants