This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Can't link to pthread and sed. #106
Comments
How do you install HermitCore? Do you find the program |
I installed toolchain via deb from tutorial,then i built hermit from sources, installed via 'sudo make install'. The 'pi' from '/opt/hermit/x86_64-hermit/extra/tests' runs normally |
Hm, which Linux distribution do you use? |
Does C compiler work? |
C compiler work, I use lubuntu 17.04 |
Please link the linpthread to your example. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
tema3210@tema2-devhost:~/unigo$` x86_64-hermit-gccgo main.go -o main /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/lib/libgo.a(proc.o): in function `runtime_newosproc': /work/build/x86_64-hermit/libgo/../../../libgo/runtime/proc.c:202: undefined reference to `pthread_attr_init' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgo/../../../libgo/runtime/proc.c:204: undefined reference to `pthread_attr_setdetachstate' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgo/../../../libgo/runtime/proc.c:218: undefined reference to `pthread_create' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/lib/libgo.a(thread-sema.o): in function `runtime_semacreate': /work/build/x86_64-hermit/libgo/../../../libgo/runtime/thread-sema.c:40: undefined reference to `sem_init' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/lib/libgo.a(thread-sema.o): in function `runtime_semasleep': /work/build/x86_64-hermit/libgo/../../../libgo/runtime/thread-sema.c:77: undefined reference to `sem_timedwait' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgo/../../../libgo/runtime/thread-sema.c:107: undefined reference to `sem_wait' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/lib/libgo.a(thread-sema.o): in function `runtime_semawakeup': /work/build/x86_64-hermit/libgo/../../../libgo/runtime/thread-sema.c:125: undefined reference to `sem_post' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/lib/libgo.a(go-cgo.o): in function `_cgo_wait_runtime_init_done': /work/build/x86_64-hermit/libgo/../../../libgo/runtime/go-cgo.c:216: undefined reference to `pthread_mutex_lock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgo/../../../libgo/runtime/go-cgo.c:221: undefined reference to `pthread_cond_wait' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgo/../../../libgo/runtime/go-cgo.c:225: undefined reference to `pthread_mutex_unlock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/lib/libgo.a(go-cgo.o): in function `_cgo_notify_runtime_init_done': /work/build/x86_64-hermit/libgo/../../../libgo/runtime/go-cgo.c:238: undefined reference to `pthread_mutex_lock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgo/../../../libgo/runtime/go-cgo.c:242: undefined reference to `pthread_cond_broadcast' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgo/../../../libgo/runtime/go-cgo.c:245: undefined reference to `pthread_mutex_unlock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/libgcc.a(unwind-dw2-fde.o): in function `__gthread_mutex_lock': /work/build/x86_64-hermit/libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/libgcc.a(unwind-dw2-fde.o): in function `__gthread_mutex_unlock': /work/build/x86_64-hermit/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/libgcc.a(unwind-dw2-fde.o): in function `__gthread_mutex_lock': /work/build/x86_64-hermit/libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/libgcc.a(unwind-dw2-fde.o): in function `__gthread_mutex_unlock': /work/build/x86_64-hermit/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' /opt/hermit/lib/gcc/x86_64-hermit/6.3.0/../../../../x86_64-hermit/bin/ld: /work/build/x86_64-hermit/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock' collect2: error: ld returned 1 exit status tema3210@tema2-devhost:~/unigo$
Such thing i've encouter by running hermits gccgo, it seems it didn't compiled these, suggest adding pthread and\or sed mirrors in include, or write manual how to do it manually, please.
The text was updated successfully, but these errors were encountered: