Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Solaris (openindiana) compile issue #53

Closed
mikesplain opened this issue Sep 19, 2012 · 1 comment
Closed

Solaris (openindiana) compile issue #53

mikesplain opened this issue Sep 19, 2012 · 1 comment

Comments

@mikesplain
Copy link

Hello,

I've been trying to build libv8 on an openindiana box and continuously failing. It seems like it's failing at ld but ld is absolutely in the path...

Any suggestions would be much appreciated!

Thanks!

root@devops:/usr/local/src/solaris/libv8# gem install /usr/local/src/solaris/libv8/pkg/libv8-3.11.8.3.gem
Building native extensions.  This could take a while...
ERROR:  Error installing /usr/local/src/solaris/libv8/pkg/libv8-3.11.8.3.gem:
        ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby extconf.rb
creating Makefile
Using compiler: /usr/bin/g++
ld: fatal: unrecognized option '-n'
ld: fatal: use the -z help option for usage information
collect2: ld returned 1 exit status
gmake[1]: *** [/usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/preparser] Error 1
gmake: *** [ia32.release] Error 2
GYP_GENERATORS=make \
        build/gyp/gyp --generator-output="out" build/all.gyp \
                      -Ibuild/standalone.gypi --depth=. \
                      -Dv8_target_arch=ia32 \
                      -S.ia32 -Dhost_arch=ia32
gmake[1]: Entering directory `/usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out'
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/allocation.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/bignum.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/bignum-dtoa.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/cached-powers.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/conversions.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/diy-fp.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/dtoa.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/fast-dtoa.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/fixed-dtoa.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/once.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/preparse-data.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/preparser.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/preparser-api.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/scanner.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/strtod.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/token.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/unicode.o
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/utils.o
  AR(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/tools/gyp/libpreparser_lib.a
  CXX(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/obj.target/preparser/preparser/preparser-process.o
  LINK(target) /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out/ia32.release/preparser
gmake[1]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/vendor/v8/out'


Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.3/ext/libv8/gem_make.out
@cowboyd
Copy link
Collaborator

cowboyd commented Sep 19, 2012

It looks like the problem is not that it can't find ld, but that it does not recognize the -n option:

ld: fatal: unrecognized option '-n'

This is a problem with the V8 gyp build itself, and not the libv8 gem. I'm not sure what we can do, but if you patch the v8 build we can include it with the gem

@cowboyd cowboyd closed this as completed Sep 19, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants