Skip to content

Instantly share code, notes, and snippets.

@ababich
Created March 8, 2011 12:15
Show Gist options
  • Save ababich/860210 to your computer and use it in GitHub Desktop.
Save ababich/860210 to your computer and use it in GitHub Desktop.
$ ARCHFLAGS='-arch x86_64' rake compile(in /Volumes/Sites/ruby-stemmer)
rake-compiler must be configured first to enable cross-compilation
mkdir -p tmp/x86_64-darwin10/stemmer_native/1.9.2
cd tmp/x86_64-darwin10/stemmer_native/1.9.2
/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/bin/ruby -I. ../../../../ext/lingua/extconf.rb
cc -Iinclude -fPIC -arch x86_64 -c -o src_c/stem_ISO_8859_1_latin.o src_c/stem_ISO_8859_1_latin.c
..... NOTE ARCH IS HERE NOW ....
cc -Iinclude -fPIC -arch x86_64 -c -o src_c/stem_UTF_8_turkish.o src_c/stem_UTF_8_turkish.c
cc -Iinclude -fPIC -arch x86_64 -c -o runtime/api.o runtime/api.c
cc -Iinclude -fPIC -arch x86_64 -c -o runtime/utilities.o runtime/utilities.c
cc -Iinclude -fPIC -arch x86_64 -c -o libstemmer/libstemmer.o libstemmer/libstemmer.c
ar -cru libstemmer.o src_c/stem_ISO_8859_1_latin.o src_c/stem_UTF_8_latin.o src_c/stem_ISO_8859_1_danish.o src_c/stem_UTF_8_danish.o src_c/stem_ISO_8859_1_dutch.o src_c/stem_UTF_8_dutch.o src_c/stem_ISO_8859_1_english.o src_c/stem_UTF_8_english.o src_c/stem_ISO_8859_1_finnish.o src_c/stem_UTF_8_finnish.o src_c/stem_ISO_8859_1_french.o src_c/stem_UTF_8_french.o src_c/stem_ISO_8859_1_german.o src_c/stem_UTF_8_german.o src_c/stem_ISO_8859_1_hungarian.o src_c/stem_UTF_8_hungarian.o src_c/stem_ISO_8859_1_italian.o src_c/stem_UTF_8_italian.o src_c/stem_ISO_8859_1_norwegian.o src_c/stem_UTF_8_norwegian.o src_c/stem_ISO_8859_1_porter.o src_c/stem_UTF_8_porter.o src_c/stem_ISO_8859_1_portuguese.o src_c/stem_UTF_8_portuguese.o src_c/stem_ISO_8859_2_romanian.o src_c/stem_UTF_8_romanian.o src_c/stem_KOI8_R_russian.o src_c/stem_UTF_8_russian.o src_c/stem_ISO_8859_1_spanish.o src_c/stem_UTF_8_spanish.o src_c/stem_ISO_8859_1_swedish.o src_c/stem_UTF_8_swedish.o src_c/stem_UTF_8_turkish.o runtime/api.o runtime/utilities.o libstemmer/libstemmer.o
checking for libstemmer.h... yes
creating Makefile
cd -
cd tmp/x86_64-darwin10/stemmer_native/1.9.2
make
gcc -I. -I/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/x86_64-darwin10 -I/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/ruby/backward -I/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1 -I../../../../ext/lingua -DHAVE_LIBSTEMMER_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -I/Volumes/Sites/ruby-stemmer/libstemmer_c/include -o stemmer.o -c ../../../../ext/lingua/stemmer.c
../../../../ext/lingua/stemmer.c: In function 'rb_stemmer_stem':
../../../../ext/lingua/stemmer.c:65: warning: implicit conversion shortens 64-bit value into a 32-bit value
gcc -dynamic -bundle -o stemmer_native.bundle stemmer.o -L. -L/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/lib -L. -L/usr/local/lib -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -lruby.1.9.1 -L/Volumes/Sites/ruby-stemmer/libstemmer_c /Volumes/Sites/ruby-stemmer/libstemmer_c/libstemmer.o -lpthread -ldl -lobjc
cd -
cp tmp/x86_64-darwin10/stemmer_native/1.9.2/stemmer_native.bundle lib/lingua/stemmer_native.bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment