its-pointless / gcc_termux

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

cannot find crt1.o crti.o crtn.o #121

Closed mjuned47 closed 3 years ago

mjuned47 commented 3 years ago

Hello,

I have tried to build gcc-4.8.5 using ndk-r15c for android 7.

everthing compiles fine and install But when i tried hello.c program with following command gcc -o hello hello.c It reports error Cannot find crt1.o Cannot find crtn.o Cannot find crri.o

Is there anything that i missed during configuration ? Or any patch ?

its-pointless commented 3 years ago

That has nothing to do with what i am doing. But anyway what is likely occurring is the binutils not being correct in someway. Its using the host binutils not the target or something like that.

mjuned47 commented 3 years ago

Ok i fixed it , Now the problem when i compile a library :

error "libc++ does not support using GCC with C++03. Please enable C++11"

Also when i type "gcc-v" I don't see message like "Supported LTO compression algorithms: zlib zstd" which i see in your gcc build

Is there anything that i'm missing?