failed to link with ffi on aarch64
I am not sure why I fails to build only when doing cross compile for aarch64.
There's similar issue, #182 (closed), but it is about arm7 and no progress. (Update: #182 (closed) and this are reported almost at the same time :)
FAILED: src/tests/vec4
aarch64-linux-gnu-gcc -o src/tests/vec4 'src/tests/a4ccf2d@@vec4@exe/vec4.c.o' -Wl,--no-undefined -Wl,--as-needed -Wl,--start-group src/libgraphene-1.0.so.0.800.2 -lm /home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so /home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libglib-2.0.so -Wl,--end-group -pthread '-Wl,-rpath,$ORIGIN/..' -Wl,-rpath-link,/home/ubuntu-builder/cerbero/build/sources/linux_arm64/graphene-1.8.2/_builddir/src -L/home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib
/usr/lib/gcc-cross/aarch64-linux-gnu/7/../../../../aarch64-linux-gnu/bin/ld: warning: libffi.so.7, needed by /home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so, not found (try using -rpath or -rpath-link)
/home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so: undefined reference to `ffi_type_pointer'
/home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so: undefined reference to `ffi_type_float'
/home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so: undefined reference to `ffi_type_void'
/home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so: undefined reference to `ffi_type_sint64'
/home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so: undefined reference to `ffi_prep_cif'
/home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so: undefined reference to `ffi_type_uint32'
/home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so: undefined reference to `ffi_type_double'
/home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so: undefined reference to `ffi_call'
/home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so: undefined reference to `ffi_type_sint32'
/home/ubuntu-builder/cerbero/build/dist/linux_arm64/lib/libgobject-2.0.so: undefined reference to `ffi_type_uint64'
Edited by Justin Kim