ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:23372] [Bug #1438] dylib architecture error building 1.9.1-rc2 on osx10.5.6
@ 2009-05-06 20:55 Matthew Moss
  2009-05-07  2:13 ` [ruby-core:23373] " Ollivier Robert
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Matthew Moss @ 2009-05-06 20:55 UTC (permalink / raw
  To: ruby-core

Bug #1438: dylib architecture error building 1.9.1-rc2 on osx10.5.6
http://redmine.ruby-lang.org/issues/show/1438

Author: Matthew Moss
Status: Open, Priority: Normal
Category: core, Target version: 1.9.1 RC2
ruby -v: (miniruby) 1.9.1p0 

Attempting to build 1.9.1-rc2 on osx 10.5.6 in the following manner:

./configure --prefix=/usr/local --program-suffix=19 --enable-pthread --with-readline-dir=/usr/local --enable-shared
make



Much of the basic source builds just fine. After a while, though, I get the following:

ar rcu libruby19-static.a dln.o encoding.o prelude.o array.o bignum.o class.o compar.o complex.o dir.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o version.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o lgamma_r.o  dmyext.o
cc -dynamiclib -undefined suppress -flat_namespace -install_name /usr/local/lib/libruby19.dylib -current_version 1.9.1 -compatibility_version 1.9   dln.o encoding.o prelude.o array.o bignum.o class.o compar.o complex.o dir.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o version.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o lgamma_r.o  dmyext.o  -o libruby19.1.9.1.dylib
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb  ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc
encdb.h updated
make -f enc.mk RUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " MINIRUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb "  enc
gcc -I. -I.ext/include/i386-darwin9.6.0 -I./include -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -DONIG_ENC_REGISTER=rb_enc_register -fno-common  -O2 -g -Wall -Wno-parentheses  -fno-common -pipe -fno-common  -o enc/encdb.o -c enc/encdb.c
cc -dynamic -bundle -undefined suppress -flat_namespace -o .ext/i386-darwin9.6.0/enc/encdb.bundle enc/encdb.o -L. -L. -L. -L/usr/local/lib    -lruby19 -lpthread -ldl -lobjc  
ld: in /usr/local/lib/libstdc++.6.dylib, file is not of required architecture
collect2: ld returned 1 exit status
make[1]: *** [.ext/i386-darwin9.6.0/enc/encdb.bundle] Error 1


----------------------------------------
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:23373] [Bug #1438] dylib architecture error building 1.9.1-rc2 on osx10.5.6
  2009-05-06 20:55 [ruby-core:23372] [Bug #1438] dylib architecture error building 1.9.1-rc2 on osx10.5.6 Matthew Moss
@ 2009-05-07  2:13 ` Ollivier Robert
  2009-05-07  3:39 ` [ruby-core:23375] " Matthew Moss
  2009-05-07  4:54 ` [ruby-core:23377] " Matthew Moss
  2 siblings, 0 replies; 6+ messages in thread
From: Ollivier Robert @ 2009-05-07  2:13 UTC (permalink / raw
  To: ruby-core

Issue #1438 has been updated by Ollivier Robert.


Are you sure you don't want to link against /usr/lib/libstdc++.dylib instead?  Apparently the one is /usr/local/lib is either 64 bit or PPC...
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1438

----------------------------------------
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:23375] [Bug #1438] dylib architecture error building 1.9.1-rc2 on osx10.5.6
  2009-05-06 20:55 [ruby-core:23372] [Bug #1438] dylib architecture error building 1.9.1-rc2 on osx10.5.6 Matthew Moss
  2009-05-07  2:13 ` [ruby-core:23373] " Ollivier Robert
@ 2009-05-07  3:39 ` Matthew Moss
  2009-05-07  4:54 ` [ruby-core:23377] " Matthew Moss
  2 siblings, 0 replies; 6+ messages in thread
From: Matthew Moss @ 2009-05-07  3:39 UTC (permalink / raw
  To: ruby-core

Issue #1438 has been updated by Matthew Moss.


Perhaps, but I'm just running 'make', not linking in that specifically. Or is that what --prefix=/usr/local implies in the 'configure' command? (My Unix/BSD kung-fu is not very strong.) I assumed that --prefix directed where the built products would be installed; is that wrong?
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1438

----------------------------------------
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:23377] [Bug #1438] dylib architecture error building 1.9.1-rc2 on osx10.5.6
  2009-05-06 20:55 [ruby-core:23372] [Bug #1438] dylib architecture error building 1.9.1-rc2 on osx10.5.6 Matthew Moss
  2009-05-07  2:13 ` [ruby-core:23373] " Ollivier Robert
  2009-05-07  3:39 ` [ruby-core:23375] " Matthew Moss
@ 2009-05-07  4:54 ` Matthew Moss
  2009-05-07  5:33   ` [ruby-core:23380] " Nobuyoshi Nakada
  2 siblings, 1 reply; 6+ messages in thread
From: Matthew Moss @ 2009-05-07  4:54 UTC (permalink / raw
  To: ruby-core

Issue #1438 has been updated by Matthew Moss.


Okay, if I change line 40 of enc.mk from:
   LDFLAGS = -L. -L/usr/local/lib
to:
   LDFLAGS = -L. -L/usr/lib

Then it gets past that linking error, builds encdb.bundle, and moves on. It runs into the same error at the next attempt to link a .bundle (i.e. bigdecimal). So I'm wondering...

1. Is that really a legitimate change to LDFLAGS?
2. Do I need to go to all these modules and change LDFLAGS in a like manner?

----------------------------------------
http://redmine.ruby-lang.org/issues/show/1438

----------------------------------------
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:23380] Re: [Bug #1438] dylib architecture error building 1.9.1-rc2 on osx10.5.6
  2009-05-07  4:54 ` [ruby-core:23377] " Matthew Moss
@ 2009-05-07  5:33   ` Nobuyoshi Nakada
  2009-05-07 22:47     ` [ruby-core:23393] " Matthew Moss
  0 siblings, 1 reply; 6+ messages in thread
From: Nobuyoshi Nakada @ 2009-05-07  5:33 UTC (permalink / raw
  To: ruby-core

Hi,

At Thu, 7 May 2009 13:54:17 +0900,
Matthew Moss wrote in [ruby-core:23377]:
> 1. Is that really a legitimate change to LDFLAGS?

No.

> 2. Do I need to go to all these modules and change LDFLAGS in a like manner?

No.

You should uninstall the wrong library and install a correct
library.  Try `file /usr/local/lib/libstdc++.6.dylib' to check
what it is.

-- 
Nobu Nakada

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:23393] [Bug #1438] dylib architecture error building 1.9.1-rc2 on osx10.5.6
  2009-05-07  5:33   ` [ruby-core:23380] " Nobuyoshi Nakada
@ 2009-05-07 22:47     ` Matthew Moss
  0 siblings, 0 replies; 6+ messages in thread
From: Matthew Moss @ 2009-05-07 22:47 UTC (permalink / raw
  To: ruby-core

Issue #1438 has been updated by Matthew Moss.


Thanks Nobu...

Seems like the lib in /usr/local/lib is arm... I believe the iPhone SDK installation (w/Unix tools) put it there.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1438

----------------------------------------
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-05-07 22:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06 20:55 [ruby-core:23372] [Bug #1438] dylib architecture error building 1.9.1-rc2 on osx10.5.6 Matthew Moss
2009-05-07  2:13 ` [ruby-core:23373] " Ollivier Robert
2009-05-07  3:39 ` [ruby-core:23375] " Matthew Moss
2009-05-07  4:54 ` [ruby-core:23377] " Matthew Moss
2009-05-07  5:33   ` [ruby-core:23380] " Nobuyoshi Nakada
2009-05-07 22:47     ` [ruby-core:23393] " Matthew Moss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).