ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:102000] Bootstrap ruby-2.6.6 on OpenBSD6.7/octeon
@ 2021-01-11 16:09 Georg Bege
  2021-01-11 16:13 ` [ruby-core:102001] " Al Snow
  2021-01-11 16:49 ` [ruby-core:102002] " Jeremy Evans
  0 siblings, 2 replies; 3+ messages in thread
From: Georg Bege @ 2021-01-11 16:09 UTC (permalink / raw)
  To: ruby-core

Hello,

Im trying to build/bootstrap Ruby 2.6 on OpenBSD,

however this seems to fail on the octeon/mips64 platform.

Is this a (known) bug, should I report it?

Details below:

-------------------------------------- snip
--------------------------------------

===>  Building for ruby-2.6.6
    BASERUBY = echo executable host ruby is required.  use
--with-baseruby option.; false
    CC = cc
    LD = ld
    LDSHARED = cc -shared
    CFLAGS = -O2 -pipe -fPIC
    XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong
-fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
-DCANONICALIZATION_FOR_MATHN
    CPPFLAGS = -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -I.
-I.ext/include/mips64-openbsd -I./include -I. -I./enc/unicode/12.1.0
    DLDFLAGS = -L/usr/local/lib -fstack-protector-strong 
    SOLIBS = -pthread -lgmp -lm
    LANG =
    LC_ALL =
    LC_CTYPE =
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: mips64-unknown-openbsd6.7
Thread model: posix

-------------------------------------- snip
--------------------------------------

Later on the build bails out with:

./miniruby -I./lib -I. -I.ext/common  ./ext/extmk.rb --make='make' 
--command-output=ext/objspace/exts.mk --dest-dir=""  --extout=".ext" 
--mflags="  V=1 mkdir_p=mkdir\ -p\ --
SHARED_LIBS_LOG=/usr/obj/ports/ruby-2.6.6/ruby-2.6.6/shared_libs.log
LIBTOOL=/usr/bin/libtool LIBruby26_LTVERSION=-version-info\ 0:0:0
libruby26_ltversion=0.0 "  --make-flags=" V=1 mkdir_p=mkdir\ -p\ --
SHARED_LIBS_LOG=/usr/obj/ports/ruby-2.6.6/ruby-2.6.6/shared_libs.log
LIBTOOL=/usr/bin/libtool LIBruby26_LTVERSION=-version-info\ 0:0:0
libruby26_ltversion=0.0 " --gnumake= --extflags="" 
--make-flags="MINIRUBY='./miniruby -I./lib -I. -I.ext/common '"
--extstatic   -- configure ext/objspace
./ext/extmk.rb:39: [BUG] Bus Error at 0xdfdfdfdfdfdfdfdf
ruby 2.6.6p146 (2020-03-31 revision 67876) [mips64-openbsd]

-- Control frame information -----------------------------------------------
c:0003 p:---- s:0042 e:000041 CFUNC  :load
c:0002 p:0198 s:0037 E:000f98 EVAL   ./ext/extmk.rb:39 [FINISH]
c:0001 p:0000 s:0003 E:0016d0 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
./ext/extmk.rb:39:in `<main>'
./ext/extmk.rb:39:in `load'

-- Other runtime information -----------------------------------------------

* Loaded script: ./ext/extmk.rb

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 rational.so
    3 complex.so
    4 /usr/obj/ports/ruby-2.6.6/ruby-2.6.6/rbconfig.rb
    5 mkmf.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension
libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html

-------------------------------------- snip
--------------------------------------



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:102001] Re: Bootstrap ruby-2.6.6 on OpenBSD6.7/octeon
  2021-01-11 16:09 [ruby-core:102000] Bootstrap ruby-2.6.6 on OpenBSD6.7/octeon Georg Bege
@ 2021-01-11 16:13 ` Al Snow
  2021-01-11 16:49 ` [ruby-core:102002] " Jeremy Evans
  1 sibling, 0 replies; 3+ messages in thread
From: Al Snow @ 2021-01-11 16:13 UTC (permalink / raw)
  To: georg@bege.email, Ruby developers


[-- Attachment #1.1: Type: text/plain, Size: 3372 bytes --]

FYI: I see OpenBSD listed on https://rubyci.org.


________________________________
From: ruby-core <ruby-core-bounces@ruby-lang.org> on behalf of Georg Bege <georg@bege.email>
Sent: Monday, January 11, 2021 11:09 AM
To: ruby-core@ruby-lang.org <ruby-core@ruby-lang.org>
Subject: [ruby-core:102000] Bootstrap ruby-2.6.6 on OpenBSD6.7/octeon

Hello,

Im trying to build/bootstrap Ruby 2.6 on OpenBSD,

however this seems to fail on the octeon/mips64 platform.

Is this a (known) bug, should I report it?

Details below:

-------------------------------------- snip
--------------------------------------

===>  Building for ruby-2.6.6
    BASERUBY = echo executable host ruby is required.  use
--with-baseruby option.; false
    CC = cc
    LD = ld
    LDSHARED = cc -shared
    CFLAGS = -O2 -pipe -fPIC
    XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong
-fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
-DCANONICALIZATION_FOR_MATHN
    CPPFLAGS = -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -I.
-I.ext/include/mips64-openbsd -I./include -I. -I./enc/unicode/12.1.0
    DLDFLAGS = -L/usr/local/lib -fstack-protector-strong
    SOLIBS = -pthread -lgmp -lm
    LANG =
    LC_ALL =
    LC_CTYPE =
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: mips64-unknown-openbsd6.7
Thread model: posix

-------------------------------------- snip
--------------------------------------

Later on the build bails out with:

./miniruby -I./lib -I. -I.ext/common  ./ext/extmk.rb --make='make'
--command-output=ext/objspace/exts.mk --dest-dir=""  --extout=".ext"
--mflags="  V=1 mkdir_p=mkdir\ -p\ --
SHARED_LIBS_LOG=/usr/obj/ports/ruby-2.6.6/ruby-2.6.6/shared_libs.log
LIBTOOL=/usr/bin/libtool LIBruby26_LTVERSION=-version-info\ 0:0:0
libruby26_ltversion=0.0 "  --make-flags=" V=1 mkdir_p=mkdir\ -p\ --
SHARED_LIBS_LOG=/usr/obj/ports/ruby-2.6.6/ruby-2.6.6/shared_libs.log
LIBTOOL=/usr/bin/libtool LIBruby26_LTVERSION=-version-info\ 0:0:0
libruby26_ltversion=0.0 " --gnumake= --extflags=""
--make-flags="MINIRUBY='./miniruby -I./lib -I. -I.ext/common '"
--extstatic   -- configure ext/objspace
./ext/extmk.rb:39: [BUG] Bus Error at 0xdfdfdfdfdfdfdfdf
ruby 2.6.6p146 (2020-03-31 revision 67876) [mips64-openbsd]

-- Control frame information -----------------------------------------------
c:0003 p:---- s:0042 e:000041 CFUNC  :load
c:0002 p:0198 s:0037 E:000f98 EVAL   ./ext/extmk.rb:39 [FINISH]
c:0001 p:0000 s:0003 E:0016d0 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
./ext/extmk.rb:39:in `<main>'
./ext/extmk.rb:39:in `load'

-- Other runtime information -----------------------------------------------

* Loaded script: ./ext/extmk.rb

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 rational.so
    3 complex.so
    4 /usr/obj/ports/ruby-2.6.6/ruby-2.6.6/rbconfig.rb
    5 mkmf.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension
libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html

-------------------------------------- snip
--------------------------------------



Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

[-- Attachment #1.2: Type: text/html, Size: 5373 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:102002] Re: Bootstrap ruby-2.6.6 on OpenBSD6.7/octeon
  2021-01-11 16:09 [ruby-core:102000] Bootstrap ruby-2.6.6 on OpenBSD6.7/octeon Georg Bege
  2021-01-11 16:13 ` [ruby-core:102001] " Al Snow
@ 2021-01-11 16:49 ` Jeremy Evans
  1 sibling, 0 replies; 3+ messages in thread
From: Jeremy Evans @ 2021-01-11 16:49 UTC (permalink / raw)
  To: georg, Ruby developers

On 01/11 05:09, Georg Bege wrote:
> Hello,
> 
> Im trying to build/bootstrap Ruby 2.6 on OpenBSD,
> 
> however this seems to fail on the octeon/mips64 platform.

You should use the OpenBSD package:

  pkg_add ruby%2.6

The "Bus Error at 0xdfdfdfdfdfdfdfdf" is a strong indication of a
use-after-free bug, since 0xdf is the pattern that OpenBSD malloc writes
to freed memory.  However, since there is an OpenBSD package for it, it
must build successfully with the options and patches that the OpenBSD
ports system uses.

Thanks,
Jeremy

> Is this a (known) bug, should I report it?
> 
> Details below:
> 
> -------------------------------------- snip
> --------------------------------------
> 
> ===>?? Building for ruby-2.6.6
> ?????? BASERUBY = echo executable host ruby is required.?? use
> --with-baseruby option.; false
> ?????? CC = cc
> ?????? LD = ld
> ?????? LDSHARED = cc -shared
> ?????? CFLAGS = -O2 -pipe -fPIC
> ?????? XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong
> -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
> -DCANONICALIZATION_FOR_MATHN
> ?????? CPPFLAGS = -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include???? -I.
> -I.ext/include/mips64-openbsd -I./include -I. -I./enc/unicode/12.1.0
> ?????? DLDFLAGS = -L/usr/local/lib -fstack-protector-strong??
> ?????? SOLIBS = -pthread -lgmp -lm
> ?????? LANG =
> ?????? LC_ALL =
> ?????? LC_CTYPE =
> OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
> Target: mips64-unknown-openbsd6.7
> Thread model: posix
> 
> -------------------------------------- snip
> --------------------------------------
> 
> Later on the build bails out with:
> 
> ./miniruby -I./lib -I. -I.ext/common?? ./ext/extmk.rb --make='make'??
> --command-output=ext/objspace/exts.mk --dest-dir=""?? --extout=".ext"??
> --mflags="?? V=1 mkdir_p=mkdir\ -p\ --
> SHARED_LIBS_LOG=/usr/obj/ports/ruby-2.6.6/ruby-2.6.6/shared_libs.log
> LIBTOOL=/usr/bin/libtool LIBruby26_LTVERSION=-version-info\ 0:0:0
> libruby26_ltversion=0.0 "?? --make-flags=" V=1 mkdir_p=mkdir\ -p\ --
> SHARED_LIBS_LOG=/usr/obj/ports/ruby-2.6.6/ruby-2.6.6/shared_libs.log
> LIBTOOL=/usr/bin/libtool LIBruby26_LTVERSION=-version-info\ 0:0:0
> libruby26_ltversion=0.0 " --gnumake= --extflags=""??
> --make-flags="MINIRUBY='./miniruby -I./lib -I. -I.ext/common '"
> --extstatic???? -- configure ext/objspace
> ./ext/extmk.rb:39: [BUG] Bus Error at 0xdfdfdfdfdfdfdfdf
> ruby 2.6.6p146 (2020-03-31 revision 67876) [mips64-openbsd]
> 
> -- Control frame information -----------------------------------------------
> c:0003 p:---- s:0042 e:000041 CFUNC?? :load
> c:0002 p:0198 s:0037 E:000f98 EVAL???? ./ext/extmk.rb:39 [FINISH]
> c:0001 p:0000 s:0003 E:0016d0 (none) [FINISH]
> 
> -- Ruby level backtrace information ----------------------------------------
> ./ext/extmk.rb:39:in `<main>'
> ./ext/extmk.rb:39:in `load'
> 
> -- Other runtime information -----------------------------------------------
> 
> * Loaded script: ./ext/extmk.rb
> 
> * Loaded features:
> 
> ?????? 0 enumerator.so
> ?????? 1 thread.rb
> ?????? 2 rational.so
> ?????? 3 complex.so
> ?????? 4 /usr/obj/ports/ruby-2.6.6/ruby-2.6.6/rbconfig.rb
> ?????? 5 mkmf.rb
> 
> [NOTE]
> You may have encountered a bug in the Ruby interpreter or extension
> libraries.
> Bug reports are welcome.
> For details: https://www.ruby-lang.org/bugreport.html
> 
> -------------------------------------- snip
> --------------------------------------
> 
> 
> 
> Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-11 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 16:09 [ruby-core:102000] Bootstrap ruby-2.6.6 on OpenBSD6.7/octeon Georg Bege
2021-01-11 16:13 ` [ruby-core:102001] " Al Snow
2021-01-11 16:49 ` [ruby-core:102002] " Jeremy Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).