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

Link problem on android aarch64 #11

Closed
liwyNo opened this issue Mar 19, 2019 · 0 comments
Closed

Link problem on android aarch64 #11

liwyNo opened this issue Mar 19, 2019 · 0 comments

Comments

@liwyNo
Copy link

liwyNo commented Mar 19, 2019

I want to cross compile lkl library for android aarch64(arm64) architecture. I use android-ndk-r17c as my toolchains. Everything works fine with arm cross-compile. But I encountered so issue about link during arm64 cross-compile. (Branch feature-android-epoll-ipv4encap)

  CC       /home/leewy/lkl-linux/tools/lkl/lib/virtio_net_raw.o
  CC       /home/leewy/lkl-linux/tools/lkl/lib/virtio_net_macvtap.o
  CC       /home/leewy/lkl-linux/tools/lkl/lib/virtio_net_dpdk.o
  CC       /home/leewy/lkl-linux/tools/lkl/lib/virtio_net_vde.o
  CC       /home/leewy/lkl-linux/tools/lkl/lib/virtio_net_pipe.o
  CC       /home/leewy/lkl-linux/tools/lkl/lib/../../perf/pmu-events/jsmn.o
  CC       /home/leewy/lkl-linux/tools/lkl/lib/config.o
  LD       /home/leewy/lkl-linux/tools/lkl/lib/lkl-in.o
  AR       /home/leewy/lkl-linux/tools/lkl/liblkl.a
  LINK     /home/leewy/lkl-linux/tools/lkl/liblkl.so
/home/leewy/lkl-linux/tools/lkl/lib/lkl.o: In function `memory_intersects':
/home/leewy/lkl-linux/./include/asm-generic/sections.h:103: undefined reference to `no symbol'
/home/leewy/lkl-linux/./include/asm-generic/sections.h:103: undefined reference to `no symbol'
/home/leewy/lkl-linux/./include/asm-generic/sections.h:103: undefined reference to `no symbol'
/home/leewy/lkl-linux/tools/lkl/lib/lkl.o: In function `mem_init_print_info':
/home/leewy/lkl-linux/mm/page_alloc.c:6795: undefined reference to `no symbol'
/home/leewy/lkl-linux/mm/page_alloc.c:6795: undefined reference to `no symbol'
/home/leewy/lkl-linux/tools/lkl/lib/lkl.o:/home/leewy/lkl-linux/mm/page_alloc.c:6814: more undefined references to `no symbol' follow
collect2: error: ld returned 1 exit status
make: *** [/home/leewy/lkl-linux/tools/lkl/liblkl.so] Error 1

It seem that symbol in page_alloc.c:6795 is __init_begin and __init_end. But I don't know how to link it into program.

@liwyNo liwyNo closed this as completed Mar 21, 2019
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

1 participant