[ruby-core:51602] [ruby-trunk - Bug #7737][Open] problem with generated rbconfig.rb for Haiku

4 views
Skip to first unread message

paul0 (Paulo Geyer)

unread,
Jan 23, 2013, 9:47:06 AM1/23/13
to ruby...@ruby-lang.org

Issue #7737 has been reported by paul0 (Paulo Geyer).

----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737

Author: paul0 (Paulo Geyer)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0dev (2013-01-23 trunk 38898) [i586-haiku]


After compiling ruby 2.0.0 for Haiku, I couldn't install gems with native extensions, found something wrong with rbconfig.rb

CONFIG["RPATHFLAG"] = " -Wl,-R%1$-s"

changing that to:
CONFIG["RPATHFLAG"] = ""

made possible to rubygems create native extensions


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

ko1 (Koichi Sasada)

unread,
Jan 24, 2013, 10:06:04 PM1/24/13
to ruby...@ruby-lang.org

Issue #7737 has been updated by ko1 (Koichi Sasada).

Category set to build
Assignee set to nobu (Nobuyoshi Nakada)
Target version set to 2.0.0

Nobu, could you check this issue?
----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737#change-35591

Author: paul0 (Paulo Geyer)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0

nobu (Nobuyoshi Nakada)

unread,
Jan 25, 2013, 1:44:01 AM1/25/13
to ruby...@ruby-lang.org

Issue #7737 has been updated by nobu (Nobuyoshi Nakada).

File bug-7737.diff added
Status changed from Open to Feedback

Could you try the attached patch?
----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737#change-35626

Author: paul0 (Paulo Geyer)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0

nobu (Nobuyoshi Nakada)

unread,
Jan 28, 2013, 3:31:49 AM1/28/13
to ruby...@ruby-lang.org

Issue #7737 has been updated by nobu (Nobuyoshi Nakada).

File bug-7737.diff added

Seems RPATHFLAG unnecessary for extconf.rb.

Attaching newer patch.
----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737#change-35688

Author: paul0 (Paulo Geyer)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0

paul0 (Paulo Geyer)

unread,
Feb 2, 2013, 12:53:07 PM2/2/13
to ruby...@ruby-lang.org

Issue #7737 has been updated by paul0 (Paulo Geyer).


nobu (Nobuyoshi Nakada) wrote:
> Seems RPATHFLAG unnecessary for extconf.rb.
>
> Attaching newer patch.

tried again with the latest patch, and updated my local code with the remote repository, now it can't find "complex.o"

here is the make output

linking shared-object io/wait.so
installing default wait libraries
make[2]: Leaving directory `/home/code/ruby/ext/io/wait'
make[2]: Entering directory `/home/code/ruby/ext/json'
installing default libraries
make[2]: Leaving directory `/home/code/ruby/ext/json'
make[2]: Entering directory `/home/code/ruby/ext/json/generator'
linking shared-object json/ext/generator.so
installing default generator libraries
make[2]: Leaving directory `/home/code/ruby/ext/json/generator'
make[2]: Entering directory `/home/code/ruby/ext/json/parser'
linking shared-object json/ext/parser.so
installing default parser libraries
make[2]: Leaving directory `/home/code/ruby/ext/json/parser'
make[2]: Entering directory `/home/code/ruby/ext/mathn/complex'
linking shared-object mathn/complex.so
ld: cannot find complex.o: No such file or directory
make[2]: *** [../../../.ext/i586-haiku/mathn/complex.so] Error 1
make[2]: Leaving directory `/home/code/ruby/ext/mathn/complex'
make[1]: *** [ext/mathn/complex/all] Error 2
make[1]: Leaving directory `/home/code/ruby'
make: *** [build-ext] Error 2

----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737#change-35786

Author: paul0 (Paulo Geyer)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0

paul0 (Paulo Geyer)

unread,
Feb 2, 2013, 1:15:42 PM2/2/13
to ruby...@ruby-lang.org

Issue #7737 has been updated by paul0 (Paulo Geyer).


fixed that, changed to $(srcdir)/complex.o the like where tells where the object to be linked is in the ext/mathn/complex/Makefile

had to do that with ext/mathn/rational/Makefile too
----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737#change-35787

Author: paul0 (Paulo Geyer)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0

paul0 (Paulo Geyer)

unread,
Feb 2, 2013, 4:12:51 PM2/2/13
to ruby...@ruby-lang.org

Issue #7737 has been updated by paul0 (Paulo Geyer).


paul0 (Paulo Geyer) wrote:
> fixed that, changed to $(srcdir)/complex.o the line where tells where the object to be linked is in the ext/mathn/complex/Makefile
>
> had to do that with ext/mathn/rational/Makefile too

fixed other things, and finished compiling
this patch haven't solved the gem native extension problem, it still tries to use -Wl parameter with ld
----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737#change-35788

Author: paul0 (Paulo Geyer)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0

nobu (Nobuyoshi Nakada)

unread,
Feb 3, 2013, 8:32:02 AM2/3/13
to ruby...@ruby-lang.org

Issue #7737 has been updated by nobu (Nobuyoshi Nakada).


paul0 (Paulo Geyer) wrote:
> fixed that, changed to $(srcdir)/complex.o the line where tells where the object to be linked is in the ext/mathn/complex/Makefile

$(srcdir)/complex.o?
I have no idea why the object file is prefixed with $(srcdir).
Can't you show that Makefile?


----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737#change-35806

Author: paul0 (Paulo Geyer)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0

mame (Yusuke Endoh)

unread,
Feb 18, 2013, 11:37:28 AM2/18/13
to ruby...@ruby-lang.org

Issue #7737 has been updated by mame (Yusuke Endoh).


Looks similar to #7864. Does r39290 help you?

--
Yusuke Endoh <ma...@tsg.ne.jp>
----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737#change-36559

Author: paul0 (Paulo Geyer)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0

naruse (Yui NARUSE)

unread,
Apr 18, 2013, 2:52:01 PM4/18/13
to ruby...@ruby-lang.org

Issue #7737 has been updated by naruse (Yui NARUSE).


Closed because no feedback.
----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737#change-38714

Author: paul0 (Paulo Geyer)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-01-23 trunk 38898) [i586-haiku]
Backport:

naruse (Yui NARUSE)

unread,
Apr 18, 2013, 2:53:30 PM4/18/13
to ruby...@ruby-lang.org

Issue #7737 has been updated by naruse (Yui NARUSE).

Status changed from Feedback to Closed


----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737#change-38715

Author: paul0 (Paulo Geyer)
Status: Closed
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-01-23 trunk 38898) [i586-haiku]
Backport:
Reply all
Reply to author
Forward
0 new messages