Make Ruby 3.0.3 on Solaris 10 by gmake with gcc 4.5.1 generates Assembler: main.c errors

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 (GCC) 4.5.1
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs