Project

General

Profile

Actions

Bug #18429

closed

Configure ruby-3.0.3 on Solaris 10 Unknown keyword 'URL' in './ruby.tmp.pc'

Added by dklein (Dmitri Klein) about 2 years ago. Updated 7 months ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:106784]

Description

./configure
...
configure: ruby library version = 3.0.0
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ruby-3.0.pc
Unknown keyword 'URL' in './ruby.tmp.pc'

both doesn't work neither with cc=/usr/sfw/bin/gcc nor cc=/usr/bin/cc

Config log is attached FYI. Thanks!


Files

config.log (1.63 MB) config.log dklein (Dmitri Klein), 12/23/2021 04:50 PM
config.log (1.59 MB) config.log dklein (Dmitri Klein), 12/27/2021 08:06 PM

Related issues 3 (0 open3 closed)

Has duplicate Ruby master - Bug #18442: Make Ruby 3.0.3 on Solaris 10 with "The following command caused the error: cc -D_STDC_C99= "ClosedActions
Has duplicate Ruby master - Bug #18448: Configuring Ruby 3.0.3 on Solaris 10 by gcc 4.5.1 with error: configure: error: cannot compute sizeof (long long)ClosedActions
Has duplicate Ruby master - Bug #18445: Make Ruby 3.0.3 on Solaris 10 by gmake with gcc 4.5.1 Assembler: main.c errorsClosedActions

Updated by mame (Yusuke Endoh) about 2 years ago

As far as I remember, that error message is produced by an old version of pkg-config. Please try using opencsw's pkg-config. Maybe setting PKG_CONFIG = "/opt/csw/bin/pkg-config" will help you.

Updated by dklein (Dmitri Klein) about 2 years ago

# PKG_CONFIG_PATH=/usr/bin;export PKG_CONFIG_PATH
# PKG_CONFIG=/usr/bin/pkg-config;export PKG_CONFIG

./configure

....
.ext/include/i386-solaris2.10/ruby/config.h unchanged
configure: ruby library version = 3.0.0
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ruby-3.0.pc
Unknown keyword 'URL' in './ruby.tmp.pc'
# 

Updated by dklein (Dmitri Klein) about 2 years ago

opencsw's pkg-config is not available on the box

Updated by dklein (Dmitri Klein) about 2 years ago

Installation of was successful.

# /opt/csw/bin/pkg-config --version
0.25
# 

Updated by dklein (Dmitri Klein) about 2 years ago

PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig;export PKG_CONFIG_PATH
PKG_CONFIG=/opt/csw/bin/pkg-config;export PKG_CONFIG

./configure

...

config.status: creating ruby-3.0.pc
ld.so.1: pkg-config: fatal: relocation error: file /opt/csw/bin/pkg-config: symbol g_malloc0_n: referenced symbol not found
./config.status: line 1132:  1512 Killed                  PKG_CONFIG_PATH=. $PKG_CONFIG --print-errors ruby.tmp
# 

Updated by dklein (Dmitri Klein) about 2 years ago

Same for ruby-2.7.5 source:

PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig;export PKG_CONFIG_PATH
PKG_CONFIG=/opt/csw/bin/pkg-config;export PKG_CONFIG
PATH=/opt/csw/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin;export PATH


./configure

....
configure: ruby library version = 
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ruby-2.7.pc
ld.so.1: pkg-config: fatal: relocation error: file /opt/csw/bin/pkg-config: symbol g_malloc0_n: referenced symbol not found
./config.status: line 1132: 19994 Killed                  PKG_CONFIG_PATH=. $PKG_CONFIG --print-errors ruby.tmp

========

PATH=/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/opt/csw/bin;export PATH
PKG_CONFIG_PATH=/usr/lib/pkgconfig;export PKG_CONFIG_PATH
PKG_CONFIG=/usr/bin/pkg-config;export PKG_CONFIG

./configure

.....
.ext/include/i386-solaris2.10/ruby/config.h unchanged
configure: ruby library version = 
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ruby-2.7.pc
Unknown keyword 'URL' in './ruby.tmp.pc'
# 

Updated by dklein (Dmitri Klein) about 2 years ago

# ldd -d /opt/csw/bin/pkg-config
        libglib-2.0.so.0 =>      /usr/lib/libglib-2.0.so.0
        libintl.so.8 =>  /opt/csw/lib/i386/libintl.so.8
        libc.so.1 =>     /lib/libc.so.1
        libiconv.so.2 =>         /opt/csw/lib/i386/libiconv.so.2
        libm.so.2 =>     /lib/libm.so.2
# 

Updated by dklein (Dmitri Klein) about 2 years ago

Should those env.var be used - RUBY_CONFIGURE_OPTS -?

Actions #9

Updated by hsbt (Hiroshi SHIBATA) about 2 years ago

  • Project changed from 14 to Ruby master

Updated by mame (Yusuke Endoh) about 2 years ago

ld.so.1: pkg-config: fatal: relocation error: file /opt/csw/bin/pkg-config: symbol g_malloc0_n: referenced symbol not found

I don't think your opencsw installation is working properly. Try another distribution of pkg-config, or please contact your administrator.

Updated by dklein (Dmitri Klein) about 2 years ago

  • File config.log config.log added
  • Tracker changed from Feature to Bug
  • Backport set to 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
./configure

....

.ext/include/i386-solaris2.10/ruby/config.h unchanged
configure: ruby library version = 3.0.0
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ruby-3.0.pc
Unknown keyword 'URL' in './ruby.tmp.pc'
# 

====

# cat ruby.tmp.pc

....

URL: https://www.ruby-lang.org
Cflags: -I${rubyarchhdrdir} -I${rubyhdrdir}
Libs: ${DLDFLAGS} ${LIBRUBYARG_SHARED} ${LIBS}
Requires:
# 

Updated by dklein (Dmitri Klein) about 2 years ago

configure: ruby library version = 3.0.0
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ruby-3.0.pc
Unknown keyword 'URL' in './ruby.tmp.pc'
# echo $PKG_CONFIG
/usr/bin/pkg-config
# /usr/bin/pkg-config --version
0.15.0

Updated by dklein (Dmitri Klein) about 2 years ago

It has been configured now as per:

Configuration summary for ruby version 3.0.3

   * Installation prefix: /usr/local
   * exec prefix:         ${prefix}
   * arch:                i386-solaris2.10
   * site arch:           ${arch}
   * RUBY_BASE_NAME:      ruby
   * ruby lib prefix:     ${libdir}/${RUBY_BASE_NAME}
   * site libraries path: ${rubylibprefix}/${sitearch}
   * vendor path:         ${rubylibprefix}/vendor_ruby
   * target OS:           solaris2.10
   * compiler:            /usr/sfw/bin/gcc -std=gnu99
   * with pthread:        yes
   * with coroutine:      ucontext
   * enable shared libs:  no
   * dynamic library ext: so
   * CFLAGS:              ${optflags} ${debugflags} ${warnflags}
   * LDFLAGS:             -L. 
   * optflags:            -O3
   * debugflags:          -ggdb3
   * warnflags:           -Wall -Wdeprecated-declarations \
                          -Wimplicit-function-declaration -Wimplicit-int \
                          -Wpointer-arith -Wwrite-strings \
                          -Wimplicit-fallthrough=0 -Wmissing-noreturn \
                          -Wno-long-long -Wno-packed-bitfield-compat \
                          -Wno-parentheses-equality -Wno-unused-parameter \
                          -Wno-unused-value -Wunused-variable
   * strip command:       gstrip -S -x
   * install doc:         rdoc
   * JIT support:         yes
   * man page type:       man

---
# 

# CC=/usr/bin/CC;export CC
# cc=/usr/bin/cc;export cc
# 

Updated by dklein (Dmitri Klein) about 2 years ago

make:

....
vm_exec.c:137: confused by earlier errors, bailing out
*** Error code 1
The following command caused the error:
/usr/sfw/bin/gcc -std=gnu99 -O3 -ggdb3 -Wall -Wdeprecated-declarations -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-long-long -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-unused-parameter -Wno-unused-value -Wunused-variable  -D_FORTIFY_SOURCE=2 -DRUBY_EXPORT -fPIE -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0 -std=gnu99 -D_XOPEN_SOURCE=600    -o vm.o -c vm.c
make: Fatal error: Command failed for target `vm.o'

Updated by dklein (Dmitri Klein) about 2 years ago

# /usr/sfw/bin/gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

Updated by dklein (Dmitri Klein) about 2 years ago

make

...

cc: acomp failed for vm.c
*** Error code 2
The following command caused the error:
cc -D_STDC_C99=  -g -erroff=E_STATEMENT_NOT_REACHED -erroff=E_INIT_SIGN_EXTEND -erroff=E_INIT_DOES_NOT_FIT -erroff=E_INITIALIZATION_TYPE_MISMATCH  -DRUBY_EXPORT -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0 -D_XOPEN_SOURCE=600    -o vm.o -c vm.c
make: Fatal error: Command failed for target `vm.o'
# 

Updated by nobu (Nobuyoshi Nakada) about 2 years ago

dklein (Dmitri Klein) wrote in #note-15:

# /usr/sfw/bin/gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

We can't support such old version.

Updated by mame (Yusuke Endoh) about 2 years ago

FYI: our Solaris 10 CI uses opencsw's gcc.

$ /opt/csw/bin/gcc --version
gcc (GCC) 5.5.0

Updated by dklein (Dmitri Klein) about 2 years ago

In our case:

# /opt/csw/bin/gcc --version
/opt/csw/bin/gcc: cannot execute
# 

# ls -la /opt/csw/bin/gcc
-rwxr-xr-x   1 root     root      845228 Nov 15 13:15 /opt/csw/bin/gcc
# 

Updated by dklein (Dmitri Klein) about 2 years ago

# /opt/csw/bin/gcc-5.5 --version
gcc-5.5 (GCC) 5.5.0

# cc=/opt/csw/bin/gcc-5.5 ./configure

Configuration summary for ruby version 3.0.3

   * Installation prefix: /usr/local
   * exec prefix:         ${prefix}
   * arch:                i386-solaris2.10
   * site arch:           ${arch}
   * RUBY_BASE_NAME:      ruby
   * ruby lib prefix:     ${libdir}/${RUBY_BASE_NAME}
   * site libraries path: ${rubylibprefix}/${sitearch}
   * vendor path:         ${rubylibprefix}/vendor_ruby
   * target OS:           solaris2.10
   * compiler:            cc -D_STDC_C99=
   * with pthread:        yes
   * with coroutine:      ucontext
   * enable shared libs:  no
   * dynamic library ext: so
   * CFLAGS:              ${optflags} ${debugflags} ${warnflags}
   * LDFLAGS:             -L. 
   * debugflags:          -g
   * warnflags:           -erroff=E_STATEMENT_NOT_REACHED \
                          -erroff=E_INIT_SIGN_EXTEND \
                          -erroff=E_INIT_DOES_NOT_FIT \
                          -erroff=E_INITIALIZATION_TYPE_MISMATCH
   * strip command:       gstrip -S -x
   * install doc:         rdoc
   * JIT support:         yes
   * man page type:       man

# 

# gmake
        BASERUBY = echo executable host ruby is required.  use --with-baseruby option.; false
        CC = /opt/csw/bin/gcc-5.5
        LD = /usr/ccs/bin/ld
        LDSHARED = /opt/csw/bin/gcc-5.5 -G
        CFLAGS =  -g -erroff=E_STATEMENT_NOT_REACHED -erroff=E_INIT_SIGN_EXTEND -erroff=E_INIT_DOES_NOT_FIT -erroff=E_INITIALIZATION_TYPE_MISMATCH  
        XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0
        CPPFLAGS = -D_XOPEN_SOURCE=600   
        DLDFLAGS =  
        SOLIBS = -lz -lpthread -lrt -lrt -lrt -lsocket -ldl -lcrypt -lm 
        LANG = 
        LC_ALL = 
        LC_CTYPE = 
        MFLAGS = 
gcc-5.5: error: unrecognized command line option '-V'
gcc-5.5: fatal error: no input files
compilation terminated.
gmake: [showflags] Error 1 (ignored)
compiling ./main.c
ld.so.1: cc1: fatal: libisl.so.15: open failed: No such file or directory
gcc-5.5: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [main.o] Error 4
# 

Updated by dklein (Dmitri Klein) about 2 years ago

In our case:

# /usr/local/gcc4/bin/gcc --version
gcc (GCC) 4.5.1

# gmake
        BASERUBY = echo executable host ruby is required.  use --with-baseruby option.; false
        CC = /usr/local/gcc4/bin/gcc
        LD = /usr/ccs/bin/ld
        LDSHARED = /usr/local/gcc4/bin/gcc -G
        CFLAGS =  -g -erroff=E_STATEMENT_NOT_REACHED -erroff=E_INIT_SIGN_EXTEND -erroff=E_INIT_DOES_NOT_FIT -erroff=E_INITIALIZATION_TYPE_MISMATCH  
        XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0
        CPPFLAGS = -D_XOPEN_SOURCE=600   
        DLDFLAGS =  
        SOLIBS = -lz -lpthread -lrt -lrt -lrt -lsocket -ldl -lcrypt -lm 
        LANG = 
        LC_ALL = 
        LC_CTYPE = 
        MFLAGS = 
gcc: '-V' option must have argument
gmake: [showflags] Error 1 (ignored)
compiling ./main.c
ld.so.1: cc1: fatal: libmpc.so.2: open failed: No such file or directory
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [main.o] Error 1
# 

====

# make
        BASERUBY = echo executable host ruby is required.  use --with-baseruby option.; false
        CC = /usr/local/gcc4/bin/gcc
        LD = /usr/ccs/bin/ld
        LDSHARED = /usr/local/gcc4/bin/gcc -G
        CFLAGS =  -g -erroff=E_STATEMENT_NOT_REACHED -erroff=E_INIT_SIGN_EXTEND -erroff=E_INIT_DOES_NOT_FIT -erroff=E_INITIALIZATION_TYPE_MISMATCH 
        XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0
        CPPFLAGS = -D_XOPEN_SOURCE=600   
        DLDFLAGS =  
        SOLIBS = -lz -lpthread -lrt -lrt -lrt -lsocket -ldl -lcrypt -lm
        LANG = 
        LC_ALL = 
        LC_CTYPE = 
        MFLAGS = 
gcc: '-V' option must have argument
*** Error code 1 (ignored)
The following command caused the error:
/usr/local/gcc4/bin/gcc -V
compiling vm.c
ld.so.1: cc1: fatal: libmpc.so.2: open failed: No such file or directory
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1
The following command caused the error:
/usr/local/gcc4/bin/gcc  -g -erroff=E_STATEMENT_NOT_REACHED -erroff=E_INIT_SIGN_EXTEND -erroff=E_INIT_DOES_NOT_FIT -erroff=E_INITIALIZATION_TYPE_MISMATCH  -DRUBY_EXPORT -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0 -D_XOPEN_SOURCE=600    -o vm.o -c vm.c
make: Fatal error: Command failed for target `vm.o'
# 

Updated by dklein (Dmitri Klein) about 2 years ago

# gmake
        BASERUBY = echo executable host ruby is required.  use --with-baseruby option.; false
        CC = /usr/local/gcc4/bin/gcc -std=gnu99
        LD = /usr/ccs/bin/ld
        LDSHARED = /usr/local/gcc4/bin/gcc -std=gnu99 -G
        CFLAGS =  -g -erroff=E_STATEMENT_NOT_REACHED -erroff=E_INIT_SIGN_EXTEND -erroff=E_INIT_DOES_NOT_FIT -erroff=E_INITIALIZATION_TYPE_MISMATCH  
        XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0
        CPPFLAGS = -D_XOPEN_SOURCE=600   
        DLDFLAGS =  
        SOLIBS = -lz -lpthread -lrt -lrt -lrt -lsocket -ldl -lcrypt -lm 
        LANG = 
        LC_ALL = 
        LC_CTYPE = 
        MFLAGS = 
gcc: '-V' must come at the start of the command line
gmake: [showflags] Error 1 (ignored)
compiling ./main.c
Assembler: main.c
        "/var/tmp//cccYLZfp.s", line 10 : Illegal mnemonic
        Near line: "    .cfi_sections   .debug_frame"
...
        "/var/tmp//cccYLZfp.s", line 56 : Syntax error
        Near line: "    .cfi_def_cfa_offset 8"
Too many errors - Goodbye
gmake: *** [main.o] Error 1
# 

Actions #23

Updated by nobu (Nobuyoshi Nakada) about 2 years ago

  • Has duplicate Bug #18442: Make Ruby 3.0.3 on Solaris 10 with "The following command caused the error: cc -D_STDC_C99= " added

Updated by nobu (Nobuyoshi Nakada) about 2 years ago

dklein (Dmitri Klein) wrote in #note-20:

# /opt/csw/bin/gcc-5.5 --version
gcc-5.5 (GCC) 5.5.0

# cc=/opt/csw/bin/gcc-5.5 ./configure

It should be CC=/opt/csw/bin/gcc-5.5 ./configure.

compiling ./main.c
ld.so.1: cc1: fatal: libisl.so.15: open failed: No such file or directory

Seems the necessary library is not installed.

Actions #25

Updated by nobu (Nobuyoshi Nakada) about 2 years ago

  • Related to Bug #18445: Make Ruby 3.0.3 on Solaris 10 by gmake with gcc 4.5.1 Assembler: main.c errors added
Actions #26

Updated by nobu (Nobuyoshi Nakada) about 2 years ago

  • Has duplicate Bug #18448: Configuring Ruby 3.0.3 on Solaris 10 by gcc 4.5.1 with error: configure: error: cannot compute sizeof (long long) added
Actions #27

Updated by nobu (Nobuyoshi Nakada) about 2 years ago

  • Related to deleted (Bug #18445: Make Ruby 3.0.3 on Solaris 10 by gmake with gcc 4.5.1 Assembler: main.c errors)
Actions #28

Updated by nobu (Nobuyoshi Nakada) about 2 years ago

  • Has duplicate Bug #18445: Make Ruby 3.0.3 on Solaris 10 by gmake with gcc 4.5.1 Assembler: main.c errors added

Updated by dklein (Dmitri Klein) about 2 years ago

We are using newer version of gcc now :

/usr/local/gcc4/bin/gcc --version
gcc (GCC) 4.5.1

Updated by dklein (Dmitri Klein) about 2 years ago

gmake

    BASERUBY = echo executable host ruby is required.  use --with-baseruby option.; false
    CC = /usr/local/gcc4/bin/gcc -std=gnu99
    LD = /usr/ccs/bin/ld
    LDSHARED = /usr/local/gcc4/bin/gcc -std=gnu99 -G
    CFLAGS =  -g -erroff=E_STATEMENT_NOT_REACHED -erroff=E_INIT_SIGN_EXTEND -erroff=E_INIT_DOES_NOT_FIT -erroff=E_INITIALIZATION_TYPE_MISMATCH  
    XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0
    CPPFLAGS = -D_XOPEN_SOURCE=600   
    DLDFLAGS =  
    SOLIBS = -lz -lpthread -lrt -lrt -lrt -lsocket -ldl -lcrypt -lm 
    LANG = 
    LC_ALL = 
    LC_CTYPE = 
    MFLAGS = 

....

Assembler: main.c
"/var/tmp//ccERyFfi.s", line 10 : Illegal mnemonic
Near line: " .cfi_sections .debug_frame"
"/var/tmp//ccERyFfi.s", line 10 : Syntax error
Near line: " .cfi_sections .debug_frame"
"/var/tmp//ccERyFfi.s", line 10 : Illegal mnemonic
Near line: " .cfi_sections .debug_frame"
"/var/tmp//ccERyFfi.s", line 14 : Syntax error
Near line: " .file 1 "/usr/include/sys/stat_impl.h""
"/var/tmp//ccERyFfi.s", line 15 : Illegal mnemonic
Near line: " .loc 1 163 0"
"/var/tmp//ccERyFfi.s", line 15 : Syntax error
Near line: " .loc 1 163 0"
"/var/tmp//ccERyFfi.s", line 16 : Illegal mnemonic
Near line: " .cfi_startproc"
"/var/tmp//ccERyFfi.s", line 16 : Syntax error
Near line: " .cfi_startproc"
"/var/tmp//ccERyFfi.s", line 19 : Illegal mnemonic
Near line: " .cfi_def_cfa_offset 8"
"/var/tmp//ccERyFfi.s", line 19 : Syntax error
Near line: " .cfi_def_cfa_offset 8"
"/var/tmp//ccERyFfi.s", line 21 : Illegal mnemonic
Near line: " .cfi_offset 5, -8"
"/var/tmp//ccERyFfi.s", line 21 : Syntax error
Near line: " .cfi_offset 5, -8"
"/var/tmp//ccERyFfi.s", line 23 : Illegal mnemonic
Near line: " .cfi_def_cfa_register 5"
"/var/tmp//ccERyFfi.s", line 23 : Syntax error
Near line: " .cfi_def_cfa_register 5"
"/var/tmp//ccERyFfi.s", line 25 : Illegal mnemonic
Near line: " .loc 1 164 0"
"/var/tmp//ccERyFfi.s", line 25 : Syntax error
Near line: " .loc 1 164 0"
"/var/tmp//ccERyFfi.s", line 34 : Illegal mnemonic
Near line: " .loc 1 165 0"
"/var/tmp//ccERyFfi.s", line 34 : Syntax error
Near line: " .loc 1 165 0"
"/var/tmp//ccERyFfi.s", line 36 : Illegal mnemonic
Near line: " .cfi_restore 5"
"/var/tmp//ccERyFfi.s", line 36 : Syntax error
Near line: " .cfi_restore 5"
"/var/tmp//ccERyFfi.s", line 38 : Illegal mnemonic
Near line: " .cfi_def_cfa 4, 4"
"/var/tmp//ccERyFfi.s", line 38 : Syntax error
Near line: " .cfi_def_cfa 4, 4"
"/var/tmp//ccERyFfi.s", line 40 : Illegal mnemonic
Near line: " .cfi_endproc"
"/var/tmp//ccERyFfi.s", line 40 : Syntax error
Near line: " .cfi_endproc"
"/var/tmp//ccERyFfi.s", line 51 : Syntax error
Near line: " .file 2 "./main.c""
"/var/tmp//ccERyFfi.s", line 52 : Illegal mnemonic
Near line: " .loc 2 38 0"
"/var/tmp//ccERyFfi.s", line 52 : Syntax error
Near line: " .loc 2 38 0"
"/var/tmp//ccERyFfi.s", line 53 : Illegal mnemonic
Near line: " .cfi_startproc"
"/var/tmp//ccERyFfi.s", line 53 : Syntax error
Near line: " .cfi_startproc"
"/var/tmp//ccERyFfi.s", line 56 : Illegal mnemonic
Near line: " .cfi_def_cfa_offset 8"
"/var/tmp//ccERyFfi.s", line 56 : Syntax error
Near line: " .cfi_def_cfa_offset 8"
Too many errors - Goodbye
gmake: *** [main.o] Error 1

Updated by ngoto (Naohisa Goto) about 2 years ago

Could you please show the full output of gcc -v and check the "Configured with:" line?

On Intel Solaris, it seems that gcc configured with --with-gnu-as is needed to compile recent Ruby versions. i.e. gcc configured with --without-gnu-as cannot be used to build Ruby on Intel Solaris.
This also suggests that Sun Workshop (Sun Studio, Oracle Developer Studio) cc is not suitable to compile Ruby on Intel Solaris.

(On the other hand, on SPARC platform, gcc configured with --without-gnu-as --with-as=/usr/ccs/bin/as and Oracle Developer Studio 12.5 can be used to compile Ruby.)

Updated by dklein (Dmitri Klein) about 2 years ago

Thanks. We have tried three different gcc compilers:

/usr/sfw/bin/gcc --version

gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

/usr/local/gcc4/bin/gcc --version

gcc (GCC) 4.5.1

/opt/csw/gcc5/bin/gcc --version

gcc (GCC) 5.5.0

None of the could make ruby-3.0.3 on Solaris.

Please advice.

Updated by dklein (Dmitri Klein) about 2 years ago

/usr/sfw/bin/gcc -v

Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

=====

/opt/csw/gcc5/bin/gcc -v

Reading specs from /opt/csw/lib/gcc/i386-pc-solaris2.10/5.5.0/specs
COLLECT_GCC=/opt/csw/gcc5/bin/gcc
COLLECT_LTO_WRAPPER=/opt/csw/libexec/gcc/i386-pc-solaris2.10/5.5.0/lto-wrapper
Target: i386-pc-solaris2.10
Configured with: /home/dam/mgar/pkg/gcc5/trunk/work/solaris10-i386/build-isa-pentium_pro/gcc-5.5.0/configure --prefix=/opt/csw --exec_prefix=/opt/csw --bindir=/opt/csw/bin --sbindir=/opt/csw/sbin --libexecdir=/opt/csw/libexec --datadir=/opt/csw/share --sysconfdir=/etc/opt/csw --sharedstatedir=/opt/csw/share --localstatedir=/var/opt/csw --libdir=/opt/csw/lib --infodir=/opt/csw/share/info --includedir=/opt/csw/include --mandir=/opt/csw/share/man --enable-cloog-backend=isl --enable-java-awt=xlib --enable-languages=ada,c,c++,fortran,go,java,objc --enable-libada --enable-libssp --enable-nls --enable-objc-gc --enable-threads=posix --program-suffix=-5.5 --with-cloog=/opt/csw --with-gmp=/opt/csw --with-included-gettext --with-ld=/usr/ccs/bin/ld --without-gnu-ld --with-libiconv-prefix=/opt/csw --with-mpfr=/opt/csw --with-ppl=/opt/csw --with-system-zlib=/opt/csw --with-gnu-as --with-as=/opt/csw/bin/gas
Thread model: posix
gcc version 5.5.0 (GCC)

/usr/local/gcc4/bin/gcc -v

Using built-in specs.
COLLECT_GCC=/usr/local/gcc4/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc4/libexec/gcc/i386-pc-solaris2.10/4.5.1/lto-wrapper
Target: i386-pc-solaris2.10
Configured with: ../configure --with-gnu-as --with-as=/usr/local/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-nls --enable-threads=posix --prefix=/usr/local/gcc4 --enable-shared --enable-multilib --enable-languages=c,c++,objc --enable-bootstrap --with-mpfr=/usr/local --with-mpc=/usr/local --with-gmp=/usr/local
Thread model: posix
gcc version 4.5.1 (GCC)

====

Updated by dklein (Dmitri Klein) about 2 years ago

Looks like all of our GCCs are configured with --with-gnu-as!

Updated by dklein (Dmitri Klein) about 2 years ago

Gmake has been stopped at:

Generating RDoc documentation
uh-oh! RDoc had a problem:
ld.so.1: ruby: fatal: Init_ripper: can't find symbol

Can you help with that, please? Many thanks!

Updated by jeremyevans0 (Jeremy Evans) 7 months ago

  • Status changed from Open to Feedback

@dklein (Dmitri Klein) Are you still having problems building Ruby 3.1 or 3.2 on Solaris?

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0