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

multiple definition of `timer_create' #1

Open
jsommr opened this issue Mar 13, 2021 · 0 comments
Open

multiple definition of `timer_create' #1

jsommr opened this issue Mar 13, 2021 · 0 comments

Comments

@jsommr
Copy link

jsommr commented Mar 13, 2021

When adding musl to kraft.yaml libraries, selecting it in menuconfig and compiling, the following error occurs:

2021-03-14 00:43:01 INFO     LD      libmuslglue.ld.o
2021-03-14 00:43:01 INFO     OBJCOPY libmuslglue.o
2021-03-14 00:43:01 INFO     LD      libmusl.ld.o
2021-03-14 00:43:02 INFO     OBJCOPY libmusl.o
2021-03-14 00:43:03 INFO     LD      app-gats_kvm-x86_64.ld.o
/usr/bin/ld: /home/jan/Desktop/gats2/apps/app-gats/build/libmusl.o: in function `timer_create':
/home/jan/Desktop/gats2/apps/app-gats/build/libmusl/origin/musl-1.1.19//src/time/timer_create.c:82: multiple definition of `timer_create'; /home/jan/Desktop/gats2/apps/app-gats/build/libuktime.o:/home/jan/.unikraft/unikraft/lib/uktime/timer.c:42: first defined here
/usr/bin/ld: /home/jan/Desktop/gats2/apps/app-gats/build/libmusl.o: in function `timer_delete':
/home/jan/Desktop/gats2/apps/app-gats/build/libmusl/origin/musl-1.1.19//src/time/timer_delete.c:6: multiple definition of `timer_delete'; /home/jan/Desktop/gats2/apps/app-gats/build/libuktime.o:/home/jan/.unikraft/unikraft/lib/uktime/timer.c:49: first defined here
/usr/bin/ld: /home/jan/Desktop/gats2/apps/app-gats/build/libmusl.o: in function `timer_gettime':
/home/jan/Desktop/gats2/apps/app-gats/build/libmusl/origin/musl-1.1.19//src/time/timer_gettime.c:6: multiple definition of `timer_gettime'; /home/jan/Desktop/gats2/apps/app-gats/build/libuktime.o:/home/jan/.unikraft/unikraft/lib/uktime/timer.c:67: first defined here
/usr/bin/ld: /home/jan/Desktop/gats2/apps/app-gats/build/libmusl.o: in function `scandir':
/home/jan/Desktop/gats2/apps/app-gats/build/libmusl/origin/musl-1.1.19//src/dirent/scandir.c:12: multiple definition of `scandir'; /home/jan/Desktop/gats2/apps/app-gats/build/libvfscore.o:/home/jan/.unikraft/unikraft/lib/vfscore/main.c:908: first defined here
/usr/bin/ld: /home/jan/Desktop/gats2/apps/app-gats/build/libmusl.o: in function `timer_getoverrun':
/home/jan/Desktop/gats2/apps/app-gats/build/libmusl/origin/musl-1.1.19//src/time/timer_getoverrun.c:6: multiple definition of `timer_getoverrun'; /home/jan/Desktop/gats2/apps/app-gats/build/libuktime.o:/home/jan/.unikraft/unikraft/lib/uktime/timer.c:74: first defined here
/usr/bin/ld: /home/jan/Desktop/gats2/apps/app-gats/build/libmusl.o: in function `timer_settime':
/home/jan/Desktop/gats2/apps/app-gats/build/libmusl/origin/musl-1.1.19//src/time/timer_settime.c:6: multiple definition of `timer_settime'; /home/jan/Desktop/gats2/apps/app-gats/build/libuktime.o:/home/jan/.unikraft/unikraft/lib/uktime/timer.c:59: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [/home/jan/.unikraft/unikraft/plat/kvm/Linker.uk:22: /home/jan/Desktop/gats2/apps/app-gats/build/app-gats_kvm-x86_64.dbg] Error 1
make[1]: *** [Makefile:984: sub-make] Error 2
make: *** [Makefile:32: _all] Error 2
2021-03-14 00:43:03 INFO     make: Leaving directory '/home/jan/.unikraft/unikraft'
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