Bug #7737
closedproblem with generated rbconfig.rb for Haiku
Added by paul0 (Paulo Geyer) over 12 years ago. Updated over 12 years ago.
Description
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
Files
| bug-7737.diff (918 Bytes) bug-7737.diff | nobu (Nobuyoshi Nakada), 01/25/2013 03:43 PM | ||
| bug-7737.diff (586 Bytes) bug-7737.diff | nobu (Nobuyoshi Nakada), 01/28/2013 05:31 PM |
Updated by ko1 (Koichi Sasada) over 12 years ago
Actions
#1
[ruby-core:51630]
- Category set to build
- Assignee set to nobu (Nobuyoshi Nakada)
- Target version set to 2.0.0
Nobu, could you check this issue?
Updated by nobu (Nobuyoshi Nakada) over 12 years ago
Actions
#2
[ruby-core:51662]
- File bug-7737.diff bug-7737.diff added
- Status changed from Open to Feedback
Could you try the attached patch?
Updated by nobu (Nobuyoshi Nakada) over 12 years ago
Actions
#3
[ruby-core:51723]
- File bug-7737.diff bug-7737.diff added
Seems RPATHFLAG unnecessary for extconf.rb.
Attaching newer patch.
Updated by paul0 (Paulo Geyer) over 12 years ago
Actions
#4
[ruby-core:51810]
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
Updated by paul0 (Paulo Geyer) over 12 years ago
Actions
#5
[ruby-core:51811]
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
Updated by paul0 (Paulo Geyer) over 12 years ago
Actions
#6
[ruby-core:51812]
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
Updated by nobu (Nobuyoshi Nakada) over 12 years ago
Actions
#7
[ruby-core:51825]
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?
Updated by mame (Yusuke Endoh) over 12 years ago
Actions
#8
[ruby-core:52486]
Looks similar to #7864. Does r39290 help you?
--
Yusuke Endoh mame@tsg.ne.jp
Updated by naruse (Yui NARUSE) over 12 years ago
Actions
#9
[ruby-core:54437]
Closed because no feedback.
Updated by naruse (Yui NARUSE) over 12 years ago
Actions
#10
[ruby-core:54438]
- Status changed from Feedback to Closed