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

Undefined reference error occurred when compiling ld dir #14

Open
iiicp opened this issue Apr 25, 2021 · 1 comment
Open

Undefined reference error occurred when compiling ld dir #14

iiicp opened this issue Apr 25, 2021 · 1 comment

Comments

@iiicp
Copy link

iiicp commented Apr 25, 2021

gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)

  1. cd aqcc/ld dir
  2. make

The following error occurred:

/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400144
/tmp/ccs55tqL.o: In function exit': /home/xxxx/compiler/aqcc/ld/stdlib.c:113: undefined reference to syscall'
/tmp/ccs55tqL.o: In function brk': /home/xxxx/compiler/aqcc/ld/stdlib.c:120: undefined reference to syscall'
/tmp/ccs55tqL.o: In function open': /home/xxxx/compiler/aqcc/ld/stdlib.c:150: undefined reference to syscall'
/tmp/ccs55tqL.o: In function close': /home/xxxx/compiler/aqcc/ld/stdlib.c:153: undefined reference to syscall'
/tmp/ccs55tqL.o: In function write': /home/xxxx/compiler/aqcc/ld/stdlib.c:161: undefined reference to syscall'
/tmp/ccs55tqL.o:/home/xxxx/compiler/aqcc/ld/stdlib.c:166: more undefined references to `syscall' follow
collect2: error: ld returned 1 exit status
Makefile:8: recipe for target 'ld' failed

@ushitora-anqou
Copy link
Owner

Hmm, that's strange. Maybe gcc is not correctly installed? I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants