blob: 0fcf9a44ba62364ff557a138096e36be38e3fad1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
Problem in box64 build on OrangePi4
Hi guys,
totally newbie here on GitHub!!
I'm trying to build box64 on OrangePi4 (RK3399). The build process went smooth up (nearly) to the very end, where it can't link the final executable, as if missing most required libraries:
[ 32%] Linking C executable box64
CMakeFiles/box64.dir/src/main.c.o: In function `main':
/root/Projects/box64/src/main.c:1265: undefined reference to `pthread_atfork'
CMakeFiles/box64.dir/src/box64context.c.o: In function `init_mutexes':
/root/Projects/box64/src/box64context.c:122: undefined reference to `pthread_mutexattr_init'
/root/Projects/box64/src/box64context.c:123: undefined reference to `pthread_mutexattr_settype'
/root/Projects/box64/src/box64context.c:136: undefined reference to `pthread_mutexattr_destroy'
CMakeFiles/box64.dir/src/box64context.c.o: In function `NewBox64Context':
/root/Projects/box64/src/box64context.c:177: undefined reference to `dlopen'
/root/Projects/box64/src/box64context.c:184: undefined reference to `pthread_atfork'
/root/Projects/box64/src/box64context.c:186: undefined reference to `pthread_key_create'
...
/root/Projects/box64/src/dynarec/arm64/dynarec_arm64_functions.c:103: undefined reference to `cos'
collect2: error: ld returned 1 exit status
CMakeFiles/box64.dir/build.make:5808: recipe for target 'box64' failed
make[2]: *** [box64] Error 1
CMakeFiles/Makefile2:326: recipe for target 'CMakeFiles/box64.dir/all' failed
make[1]: *** [CMakeFiles/box64.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
so, it looks like there's a linker issue, and I don't know how to address it.
Any hint is welcome!!
Thanks,
fld2865
|