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

Undefined symbols for architecture arm64 #821

Open
fatduckling opened this issue Jan 31, 2024 · 0 comments
Open

Undefined symbols for architecture arm64 #821

fatduckling opened this issue Jan 31, 2024 · 0 comments

Comments

@fatduckling
Copy link

fatduckling commented Jan 31, 2024

Hi,

I am running Debian 11 and I'm using OSXCross to compile for iOS. I got it working for MacOS already but now I'm using arm-apple-darwin11-clang to cross-compile. Here is my configuration:

# IOS_TRIPLE= arm-apple-darwin11
export PATH=$IOS_TOOLCHAIN_ROOT/bin:$PATH 
export HOST=$IOS_TRIPLE 
export CC=$IOS_TRIPLE-clang 
export CXX=$IOS_TRIPLE-clang++ 
export RANLIB=$IOS_TRIPLE-ranlib 
export LD=$IOS_TRIPLE-ld 
export AR=$IOS_TRIPLE-ar 
export CODESIGN_ALLOCATE=$IOS_TOOLCHAIN_ROOT/bin/$IOS_TRIPLE-codesign_allocate 
export C_INCLUDE_PATH=$IOS_TOOLCHAIN_ROOT/include 
export CPLUS_INCLUDE_PATH=$IOS_TOOLCHAIN_ROOT/include 
export LIBRARY_PATH=$IOS_TOOLCHAIN_ROOT/lib 

cd /tmp/libffi-3.4.4.tar/build 

../configure --host=$IOS_TRIPLE --prefix=$IOS_TOOLCHAIN_ROOT --libdir=$IOS_TOOLCHAIN_ROOT/lib  --disable-docs > /tmp/configure.out 

This is the error I'm getting:

libtool: link: ( cd ".libs" && rm -f "libffi_convenience.la" && ln -s "../libffi_convenience.la" "libffi_convenience.la" )
Undefined symbols for architecture arm64:
  "_ffi_call", referenced from:
      _ffi_raw_call in raw_api.o
      _ffi_java_raw_call in java_raw_api.o
  "_ffi_closure_trampoline_table_page", referenced from:
      _ffi_closure_alloc in closures.o
  "_ffi_prep_cif_machdep", referenced from:
      _ffi_prep_cif_core in prep_cif.o
  "_ffi_prep_cif_machdep_var", referenced from:
      _ffi_prep_cif_core in prep_cif.o
  "_ffi_prep_closure_loc", referenced from:
      _ffi_prep_closure in prep_cif.o
      _ffi_prep_raw_closure_loc in raw_api.o
      _ffi_prep_raw_closure in raw_api.o
      _ffi_prep_java_raw_closure_loc in java_raw_api.o
      _ffi_prep_java_raw_closure in java_raw_api.o
ld: symbol(s) not found for architecture arm64

Here is the entire configure and make output: configure.txt

Any suggestions for a fix or workaround would be appreciated.

Thanks

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