its-pointless / gcc_termux

Gcc for termux with fortran scipy etc... Use apt for newest updates instructions in README.txt
463 stars 75 forks source link

Any solution for this gcc-10 #143

Closed Saikatsaha1996 closed 2 years ago

Saikatsaha1996 commented 2 years ago

Screenshot_2022-04-01-23-09-26-238_com termux

martin-frbg commented 2 years ago

Have you checked if you have any headers in /usr/include/android at all ? (Full path is probably something like /data/data/com.termux/files/usr/include/android). Possibly you need to install clang in termux first to get the NDK headers.

Saikatsaha1996 commented 2 years ago

Have you checked if you have any headers in /usr/include/android at all ? (Full path is probably something like /data/data/com.termux/files/usr/include/android). Possibly you need to install clang in termux first to get the NDK headers.

Already installed..

Saikatsaha1996 commented 2 years ago

Have you checked if you have any headers in /usr/include/android at all ? (Full path is probably something like /data/data/com.termux/files/usr/include/android). Possibly you need to install clang in termux first to get the NDK headers.

All available in $PREFIX/include.. With clang not issue.. with gcc can't find

martin-frbg commented 2 years ago

Strange. Seems to work for me (just tried to configure libunwind), though with the gcc-11.1 package. Does $PREFIX look correct on your system ? (Here it is /data/data/com.termux/files/usr)

Saikatsaha1996 commented 2 years ago

Yes $PREFIX/include i found all .h file....

How can I configure with libunwind ?

I installed gcc-10 with llvm libllvm

martin-frbg commented 2 years ago

Anything in config.log ? "configure" checks for header files by creating small C programs and trying to compile them, maybe configure is simply unable to run gcc for some other reason.

Saikatsaha1996 commented 2 years ago

Anything in config.log ? "configure" checks for header files by creating small C programs and trying to compile them, maybe configure is simply unable to run gcc for some other reason.

I am sorry.. I actually don't know anything about c or c++ programs.. but I faced issue everytime with configure and cmake with gcc ..

martin-frbg commented 2 years ago

Can you upload the config.log here ?

Saikatsaha1996 commented 2 years ago

Can you upload the config.log here ?

gcc can't compile ? already patch for gcc used but same..

Screenshot_2022-05-24-00-23-38-936_com termux

martin-frbg commented 2 years ago

So it does find include files, but you need the workaround discussed in #141 (or copy the file I put in https://github.com/its-pointless/gcc_termux/issues/141#issuecomment-1100011783 )

Saikatsaha1996 commented 2 years ago

So it does find include files, but you need the workaround discussed in #141 (or copy the file I put in #141 (comment) )

Where i can found setuppatchfor-gcc ?

Screenshot_2022-05-24-01-00-17-342_com termux

Saikatsaha1996 commented 2 years ago

So it does find include files, but you need the workaround discussed in #141 (or copy the file I put in #141 (comment) )

I added patching headers with /data/data/com.termux/files/usr/share/setup_scripts/cdefs.h-gcc-compat.diff

Is it okay?

Saikatsaha1996 commented 2 years ago

So it does find include files, but you need the workaround discussed in #141 (or copy the file I put in #141 (comment) )

Same problem :(

Screenshot_2022-05-24-01-18-49-777_com termux

Saikatsaha1996 commented 2 years ago

I am install gcc like this way..

curl -LO https://its-pointless.github.io/setup-pointless-repo.sh bash setup-pointless-repo.sh

pkg i gcc-9

Is it correct way ? Or i am Missing anything.. because some time gcc also cannot find any #include file

Saikatsaha1996 commented 2 years ago

@its-pointless @martin-frbg see gcc can't find also include directory..

can you trying too compile ? If you can .. :(

https://github.com/tux-mind/libbthread

Screenshot_2022-05-24-01-55-29-778_com termux

Saikatsaha1996 commented 2 years ago

Okay after adding this code gcc working.. but found one problem i know it can be solve ..

OPENCL NOT FOUND any solution for this ? With clang OpenCL found .. with gcc not found..

Saikatsaha1996 commented 2 years ago

@martin-frbg after patch all problem is solved.. Can is possible to add support for cmake ?.. gnu cmake can't compile anything ?

strikersix23 commented 2 years ago

Cmake has an extreme hatred for gcc on termux, as well, I got partial compilation by targeting aarch64-linux-android but it failed hard, cmake is useless unless a cmake patch is included in its api-gnu.cmake files to search termuxs sysroot these are under $PREFIX/share/cmake-3.23/Modules/Platform/Android

Saikatsaha1996 commented 2 years ago

Cmake has an extreme hatred for gcc on termux, as well, I got partial compilation by targeting aarch64-linux-android but it failed hard, cmake is useless unless a cmake patch is included in its api-gnu.cmake files to search termuxs sysroot these are under $PREFIX/share/cmake-3.23/Modules/Platform/Android

Any solution for this ?

Gcc-10 error: conflicting types for 'gl_int_fast8_t' Screenshot_2022-06-03-01-44-34-173_com termux

Saikatsaha1996 commented 2 years ago

Screenshot_2022-06-04-22-22-44-980_com termux @strikersix23 any solution please..

strikersix23 commented 2 years ago

I don't have any solution its an issue with cmake on termux, some headers need to be patched and others need to be rewritten, this needs to be reopened and changed name to cmake header conflicts

strikersix23 commented 2 years ago

I'm going to try something might be a few hours

Saikatsaha1996 commented 2 years ago

I'm going to try something might be a few hours

Okay 🤩 waiting waiting

strikersix23 commented 2 years ago

Be aware im not a good programer and there might not be a solution

strikersix23 commented 2 years ago

Mind telling me what you where compiling @Saikatsaha1996

Saikatsaha1996 commented 2 years ago

Mind telling me what you where compiling @Saikatsaha1996

https://github.com/fancyIX/sgminer-phi2-branch

Error in

https://github.com/fancyIX/sgminer-phi2-branch/blob/master/SWIFFTX/SWIFFTX.c

strikersix23 commented 2 years ago

Did you uncomment

//#include "stdbool.h"

Saikatsaha1996 commented 2 years ago

Did you uncomment

//#include "stdbool.h"

Ok trying

Saikatsaha1996 commented 2 years ago

Did you uncomment

//#include "stdbool.h"

No same problem..

strikersix23 commented 2 years ago

This is crypto mining for amd gpus and therefore doesn't fit the scope of termux or termux gcc please do not ask how to build desktop hardware specific software on termux unless it can be used on mobile or is within current bounds if termux or termux gcc

Saikatsaha1996 commented 2 years ago

This is crypto mining for amd gpus and therefore doesn't fit the scope of termux or termux gcc please do not ask how to build desktop hardware specific software on termux unless it can be used on mobile or is within current bounds if termux or termux gcc

I already complete successfully in termux

https://github.com/Saikatsaha1996/sgminer-android.git

See this.. this is also for amd but it worked on android with termux

Saikatsaha1996 commented 2 years ago

This is crypto mining for amd gpus and therefore doesn't fit the scope of termux or termux gcc please do not ask how to build desktop hardware specific software on termux unless it can be used on mobile or is within current bounds if termux or termux gcc

But i can't compile it

https://github.com/fancyIX/sgminer-phi2-branch

strikersix23 commented 2 years ago

Its unsupported

On Sat, Jun 4, 2022, 12:37 PM Saikat @.***> wrote:

This is crypto mining for amd gpus and therefore doesn't fit the scope of termux or termux gcc please do not ask how to build desktop hardware specific software on termux unless it can be used on mobile or is within current bounds if termux or termux gcc

But i can't compile it

https://github.com/fancyIX/sgminer-phi2-branch

— Reply to this email directly, view it on GitHub https://github.com/its-pointless/gcc_termux/issues/143#issuecomment-1146656790, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECLXRU2O4B5UZ4TEGRQDRDVNOH7FANCNFSM5SJLGHKA . You are receiving this because you were mentioned.Message ID: @.***>

strikersix23 commented 2 years ago

What you are compiling is unsupported because it requires amd gpu to compile read the description

strikersix23 commented 2 years ago

https://github.com/Saikatsaha1996/sgminer-android.git This is ported to android

Saikatsaha1996 commented 2 years ago

What you are compiling is unsupported because it requires amd gpu to compile read the description

This is also for AMD GPU .. but i change something And successful compiled in android

https://github.com/Saikatsaha1996/sgminer-android.git

I just #include <bthread.h> ... But i can't compile it mey for stdc99 features

strikersix23 commented 2 years ago

Ok then why did advertise it for mali gpus You do realize that is unethical right even I know that and the other program has protection in it to prevent it from being used like this miss matching stuff like this an saying it works without testing it 100% people can fry there

Saikatsaha1996 commented 2 years ago

Ok then why did advertise it for mali gpus You do realize that is unethical right even I know that and the other program has protection in it to prevent it from being used like this miss matching stuff like this an saying it works without testing it 100% people can fry there

I already tested it is working with Mali and adreno GPU https://github.com/Saikatsaha1996/sgminer-android.git

strikersix23 commented 2 years ago

What gpu's what devices

Saikatsaha1996 commented 2 years ago

What gpu's what devices

Adreno 650 GPU Mi 10T

strikersix23 commented 2 years ago

here's the in the readme explain you tested under those devices and there is a risk of over heat on other devices and risk of complete lose of function under the I am not responsible warning and precede at your own risk

strikersix23 commented 2 years ago

I cannot help you in compiling that software as it us hardcoded to x64/32 devices

Saikatsaha1996 commented 2 years ago

I cannot help you in compiling that software as it us hardcoded to x64/32 devices

Ohh is it SSE2 instruction ?

strikersix23 commented 2 years ago

No

strikersix23 commented 2 years ago

No Its GCN cross lane instructions not supported on android

Saikatsaha1996 commented 2 years ago

No Its GCN cross lane instructions not supported on android

Okay oky understand.. thank you for your clarification.. actually i don't know any programing language.. Thank you for your help..

And also its-pointless gcc just working fine.. some code can't compile with termux clang.. but it's done with gcc

Saikatsaha1996 commented 2 years ago

Cmake has an extreme hatred for gcc on termux, as well, I got partial compilation by targeting aarch64-linux-android but it failed hard, cmake is useless unless a cmake patch is included in its api-gnu.cmake files to search termuxs sysroot these are under $PREFIX/share/cmake-3.23/Modules/Platform/Android

Any solution for this ?

Gcc-10 error: conflicting types for 'gl_int_fast8_t' Screenshot_2022-06-03-01-44-34-173_com termux

@strikersix23 but can i get this solution?

strikersix23 commented 2 years ago

don't have a clue

Saikatsaha1996 commented 2 years ago

don't have a clue

Ohh actually i solved https://github.com/fancyIX/sgminer-phi2-branch/blob/master/SWIFFTX/SWIFFTX.c

But this is another error.. but i don't know why

Saikatsaha1996 commented 2 years ago

Cmake has an extreme hatred for gcc on termux, as well, I got partial compilation by targeting aarch64-linux-android but it failed hard, cmake is useless unless a cmake patch is included in its api-gnu.cmake files to search termuxs sysroot these are under $PREFIX/share/cmake-3.23/Modules/Platform/Android

Any solution for this ? Gcc-10 error: conflicting types for 'gl_int_fast8_t' Screenshot_2022-06-03-01-44-34-173_com termux

@strikersix23 but can i get this solution?

@strikersix23 yes this problem only happened with gcc , with clang not given problem in this code