Opened 15 years ago
Closed 15 years ago
#21124 closed defect (fixed)
Cannot compile ruby 1.8.7 on snow leopard w/ build_arch set to i386
Reported by: | jkebinger@… | Owned by: | kimuraw (kimura wataru) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | ||
Port: | ruby |
Description (last modified by tobypeterson)
I can't get ruby 1.8 to compile in 32 bit mode on snow leopard - I need a 32 bit ruby because we're using an older version of a library that is 32 bit only.
I completely purged all of /opt/local, installed the SL version of macports 1.8 , then set build_arch to i386 in macports.conf. My log output is below.
This might be a problem w/ open ssl instead of ruby but i did check the architecture of two of the open ssl files mentioned in the log and they were i386
file /opt/local/lib/libcrypto.dylib /opt/local/lib/libcrypto.dylib: Mach-O dynamically linked shared library i386 file /opt/local/lib/libssl.dylib /opt/local/lib/libssl.dylib: Mach-O dynamically linked shared library i386
sudo port install ruby ---> Computing dependencies for ruby ---> Fetching gperf ---> Attempting to fetch gperf-3.0.4.tar.gz from http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/gperf ---> Verifying checksum(s) for gperf ---> Extracting gperf ---> Configuring gperf ---> Building gperf ---> Staging gperf into destroot ---> Installing gperf @3.0.4_0 ---> Activating gperf @3.0.4_0 ---> Cleaning gperf ---> Fetching libiconv ---> Attempting to fetch libiconv-1.13.tar.gz from http://distfiles.macports.org/libiconv ---> Verifying checksum(s) for libiconv ---> Extracting libiconv ---> Applying patches to libiconv ---> Configuring libiconv ---> Building libiconv ---> Staging libiconv into destroot ---> Installing libiconv @1.13_0 ---> Activating libiconv @1.13_0 ---> Cleaning libiconv ---> Fetching ncursesw ---> Attempting to fetch ncurses-5.7.tar.gz from http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/ncurses ---> Verifying checksum(s) for ncursesw ---> Extracting ncursesw ---> Configuring ncursesw ---> Building ncursesw ---> Staging ncursesw into destroot ---> Installing ncursesw @5.7_0+darwin_10 ---> Activating ncursesw @5.7_0+darwin_10 ---> Cleaning ncursesw ---> Fetching ncurses ---> Verifying checksum(s) for ncurses ---> Extracting ncurses ---> Configuring ncurses ---> Building ncurses ---> Staging ncurses into destroot ---> Installing ncurses @5.7_0+darwin_10 ---> Activating ncurses @5.7_0+darwin_10 ---> Cleaning ncurses ---> Fetching zlib ---> Attempting to fetch zlib-1.2.3.tar.bz2 from http://www.zlib.net/ ---> Verifying checksum(s) for zlib ---> Extracting zlib ---> Applying patches to zlib ---> Configuring zlib ---> Building zlib ---> Staging zlib into destroot ---> Installing zlib @1.2.3_3 ---> Activating zlib @1.2.3_3 ---> Cleaning zlib ---> Fetching openssl ---> Attempting to fetch openssl-0.9.8k.tar.gz from http://distfiles.macports.org/openssl ---> Verifying checksum(s) for openssl ---> Extracting openssl ---> Applying patches to openssl ---> Configuring openssl ---> Building openssl ---> Staging openssl into destroot ---> Installing openssl @0.9.8k_0+darwin ---> Activating openssl @0.9.8k_0+darwin ---> Cleaning openssl ---> Fetching readline ---> Attempting to fetch readline-6.0.tar.gz from http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/readline ---> Verifying checksum(s) for readline ---> Extracting readline ---> Applying patches to readline ---> Configuring readline ---> Building readline ---> Staging readline into destroot ---> Installing readline @6.0.000_1+darwin ---> Activating readline @6.0.000_1+darwin ---> Cleaning readline ---> Fetching ruby ---> Attempting to fetch ruby-1.8.7-p174.tar.bz2 from ftp://xyz.lcs.mit.edu/pub/ruby/1.8 ---> Verifying checksum(s) for ruby ---> Extracting ruby ---> Applying patches to ruby ---> Configuring ruby ---> Building ruby Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby/work/ruby-1.8.7-p174" && /usr/bin/make -j2 all " returned error 2 Command output: ld: warning: in ossl_ssl_session.o, file is not of required architecture ld: warning: in ossl_x509.o, file is not of required architecture ld: warning: in ossl_x509attr.o, file is not of required architecture ld: warning: in ossl_x509cert.o, file is not of required architecture ld: warning: in ossl_x509crl.o, file is not of required architecture ld: warning: in ossl_x509ext.o, file is not of required architecture ld: warning: in ossl_x509name.o, file is not of required architecture ld: warning: in ossl_x509req.o, file is not of required architecture ld: warning: in ossl_x509revoked.o, file is not of required architecture ld: warning: in ossl_x509store.o, file is not of required architecture ld: warning: in /opt/local/lib/libssl.dylib, file is not of required architecture ld: warning: in /opt/local/lib/libcrypto.dylib, file is not of required architecture compiling pty /usr/bin/gcc-4.2 -I. -I../.. -I../../. -I../.././ext/pty -DHAVE_OPENPTY -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch i386 -fno-common -pipe -fno-common -c pty.c cp ../.././ext/pty/lib/expect.rb ../../.ext/common /usr/bin/gcc-4.2 -dynamic -bundle -undefined suppress -flat_namespace -o ../../.ext/i686-darwin10/pty.bundle pty.o -L. -L../.. -L. -L/opt/local/lib -lruby -lutil -lpthread -ldl -lobjc ld: warning: in pty.o, file is not of required architecture compiling racc/cparse mkdir -p ../../../.ext/i686-darwin10/racc /usr/bin/gcc-4.2 -I. -I../../.. -I../../../. -I../../.././ext/racc/cparse -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -arch i386 -fno-common -pipe -fno-common -c cparse.c /usr/bin/gcc-4.2 -dynamic -bundle -undefined suppress -flat_namespace -o ../../../.ext/i686-darwin10/racc/cparse.bundle cparse.o -L. -L../../.. -L. -L/opt/local/lib -lruby -lpthread -ldl -lobjc ld: warning: in cparse.o, file is not of required architecture compiling readline /usr/bin/gcc-4.2 -I. -I../.. -I../../. -I../.././ext/readline -DHAVE_READLINE_READLINE_H -DHAVE_READLINE_HISTORY_H -DHAVE_RL_FILENAME_COMPLETION_FUNCTION -DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_DEPREP_TERM_FUNCTION -DHAVE_RL_COMPLETION_APPEND_CHARACTER -DHAVE_RL_BASIC_WORD_BREAK_CHARACTERS -DHAVE_RL_COMPLETER_WORD_BREAK_CHARACTERS -DHAVE_RL_BASIC_QUOTE_CHARACTERS -DHAVE_RL_COMPLETER_QUOTE_CHARACTERS -DHAVE_RL_FILENAME_QUOTE_CHARACTERS -DHAVE_RL_ATTEMPTED_COMPLETION_OVER -DHAVE_RL_LIBRARY_VERSION -DHAVE_RL_EVENT_HOOK -DHAVE_RL_CLEANUP_AFTER_SIGNAL -DHAVE_REPLACE_HISTORY_ENTRY -DHAVE_REMOVE_HISTORY -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch i386 -fno-common -pipe -fno-common -c readline.c readline.c: In function 'username_completion_proc_call': readline.c:730: error: 'username_completion_function' undeclared (first use in this function) readline.c:730: error: (Each undeclared identifier is reported only once readline.c:730: error: for each function it appears in.) make[1]: *** [readline.o] Error 1 make: *** [all] Error 1
Attachments (1)
Change History (5)
Changed 15 years ago by jkebinger@…
Attachment: | 32bitrubyinstalllog.txt added |
---|
comment:1 Changed 15 years ago by tobypeterson
Description: | modified (diff) |
---|
comment:2 Changed 15 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to kimuraw@… |
---|
comment:3 Changed 15 years ago by kimuraw (kimura wataru)
Status: | new → assigned |
---|
two ports, ruby and readline, are not ready for build_arch. I fixed ruby at r57212.
comment:4 Changed 15 years ago by kimuraw (kimura wataru)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
fixed #21359
installation log file