Skip to content

multiple definition of `timer_create' #1

@jsommr

Description

@jsommr

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions