Skip to content

Instantly share code, notes, and snippets.

@yuyak
Created August 18, 2012 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuyak/3384961 to your computer and use it in GitHub Desktop.
Save yuyak/3384961 to your computer and use it in GitHub Desktop.
file was built for unsupported file format (...) which is not the architecture being linked (i386)

ld: warning: ignoring file /opt/local/lib/libsqlite3.0.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/local/lib/libsqlite3.0.dylib

% file /opt/local/lib/sqlite3.0.dylib
/opt/local/lib/libsqlite3.0.dylib: Mach-O 64-bit dynamically linked shared library x86_64

% sudo port upgrade --enforce-variants sqlite3 +universal

% file /opt/local/lib/sqlite3.0.dylib

% file /opt/local/lib/libsqlite3.0.dylib                 
/opt/local/lib/libsqlite3.0.dylib: Mach-O universal binary with 2 architectures
/opt/local/lib/libsqlite3.0.dylib (for architecture x86_64):    Mach-O 64-bit dynamically linked shared library x86_64
/opt/local/lib/libsqlite3.0.dylib (for architecture i386):      Mach-O dynamically linked shared library i386
@pomozoff
Copy link

Like!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment