[MacRuby-devel] Rake aborts reporting libsqlite3.0.dylib "not of required architecture"
Laurent Sansonetti
lsansonetti at apple.com
Sun Aug 23 17:14:52 PDT 2009
Hi Bruce,
The problem here is that you have a custom version of sqlite3 in /usr/
local, not compiled for both 32-bit and 64-bit architectures, and
picked by the linker since the Foundation system relies on it.
The MacRuby build system looks in /usr/local/lib in priority because
it's where the LLVM stuff is installed by default.
I recommend to temporarily rename the library in /usr/local/lib and
try again.
Laurent
On Aug 23, 2009, at 4:12 PM, Bruce Hobbs wrote:
> Any thoughts as to what I've managed to screw up?
>
> 10.5.8
> MacBook Pro
> 2.33 GHz Intel Core 2 Duo
> 4 GB 667 MHz DDR2 SDRAM
> 163.61 GB available
>
> /usr/local/bin/sqlite3 --version
> 3.6.17
>
> Since ld is complaining about /usr/local/lib/libsqlite3.0.dylib,
> perhaps my
> installation of the latest sqlite3 needed a non-default configure?
> =====
> rake
> (in
> /Users/brucehobbs/Downloads/masterkain-
> macruby-199cc4bc63d141988ad96ca80844e4e77637f665)
> /usr/bin/ruby tool/compile_prelude.rb prelude.rb miniprelude.c.new
> rm miniprelude.c.new
> cp miniprelude.c prelude.c
> /usr/bin/g++ -I. -I./include -I./onig -I/usr/include/libxml2 -arch
> i386
> -arch x86_64 -fno-common -pipe -O3 -g -Wall -fexceptions -Wno-
> parentheses
> -Wno-deprecated-declarations -Werror -std=c99 array.o bignum.o class.o
> compar.o complex.o enum.o enumerator.o error.o eval.o file.o load.o
> proc.o
> gc.o hash.o inits.o io.o math.o numeric.o object.o pack.o parse.o
> prec.o
> dir.o process.o random.o range.o rational.o re.o onig/regcomp.o
> onig/regext.o onig/regposix.o onig/regenc.o onig/reggnu.o onig/
> regsyntax.o
> onig/regerror.o onig/regparse.o onig/regtrav.o onig/regexec.o
> onig/regposerr.o onig/regversion.o onig/enc/ascii.o onig/enc/unicode.o
> onig/enc/utf8.o onig/enc/euc_jp.o onig/enc/sjis.o onig/enc/iso8859_1.o
> onig/enc/utf16_be.o onig/enc/utf16_le.o onig/enc/utf32_be.o
> onig/enc/utf32_le.o ruby.o set.o signal.o sprintf.o st.o string.o
> struct.o
> time.o transcode.o util.o variable.o version.o thread.o id.o objc.o
> bs.o
> encoding.o dln.o dmyext.o marshal.o vm_eval.o prelude.o
> bridgesupport.o
> compiler.o vm.o MacRuby.o -L/usr/local/lib -lpthread -lffi -lm
> -lLLVMBitWriter /usr/local/lib/LLVMInterpreter.o
> /usr/local/lib/LLVMX86CodeGen.o -lLLVMSelectionDAG -lLLVMAsmPrinter
> /usr/local/lib/LLVMExecutionEngine.o /usr/local/lib/LLVMJIT.o -
> lLLVMCodeGen
> -lLLVMScalarOpts -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -
> lLLVMTarget
> -lLLVMCore -lLLVMSupport -lLLVMSystem -lpthread -ldl -lxml2 -lobjc -
> lauto
> -framework Foundation -dynamiclib -undefined suppress -flat_namespace
> -install_name
> /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/
> libmacruby.dylib
> -current_version 0.5 -compatibility_version 0.5 -o libmacruby.
> 1.9.0.dylib
> ld: in /usr/local/lib/libsqlite3.0.dylib, file is not of required
> architecture
> collect2: ld returned 1 exit status
> lipo: can't open input file:
> /var/folders/jS/jSmTpNh+GKGJz4zbxXGfGE+++TI/-Tmp-//ccNkBPk0.out (No
> such
> file or directory)
> rake aborted!
> Command failed with status (1): [/usr/bin/g++ -I. -I./include -I./
> onig -I/u...]
>
> (See full trace by running task with --trace)
> --
> Bruce Hobbs, CCP, CDP Engineered Software Office: 626-570-8028
> Partner 856 N Monterey St Cell: 626-278-0273
> Alhambra, CA 91801-1574 FAX: 208-474-0732
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
More information about the MacRuby-devel
mailing list