Closed suculent closed 3 years ago
C programs are expected to have a main function. It appears to be missing. That doens't look like a toolchain problem. The default crt0.o has a _start function that calls main. It isn't clear why you are asking about the other symbols used in crt0.o since you aren't having problems with them.
Anyway, this problem is related to something local. It does not fail this way on my other machine (with maybe older gcc but i'm not sure if that matters) and it does not fail on linux.
Any idea why this happens? I have no clue, where to find the error...
Then at the crt.o file:
Also in objdump those symbols seem to be undefined indeed.
When trying to run the same command in ubuntu-20 docker container, this does not fail.
Failed when using to build for pine64. https://github.com/pine64/bl_iot_sdk/issues/59?_pjax=%23js-repo-pjax-container