Date: Mon, 09 Sep 2024 19:24:20 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 276271] lang/crystal: update to 1.13.2 Message-ID: <bug-276271-7788-RtjuFZnnXo@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-276271-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-276271-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276271 --- Comment #7 from Mohamed Akram <mohd.akram@outlook.com> --- The problem seems to be with the old bootstrap compiler used (1.5.1). The `has_method?` macro doesn't seem to work correctly in it: $ curl -OL https://github.com/dmgk/crystal-bootstrap/releases/download/1.5.1/crystal-1= .5.1-amd64-llvm14.tar.xz $ tar -xf crystal-1.5.1-amd64-llvm14.tar.xz $ cat boehm.cr @[Link("gc-threaded")] lib LibGC fun set_stackbottom =3D GC_set_stackbottom(th : ThreadHandle, sb : StackB= ase*) : ThreadHandle end module GC {% if !LibGC.has_method?(:set_stackbottom) %} {% raise "has_method? failed" %} {% end %} end $ CRYSTAL_PATH=3D/usr/local/lib/crystal .build/crystal build boehm.cr # bui= ld with the 1.5.1 compiler Showing last frame. Use --error-trace for full trace. In boehm.cr:6:3 6 | {% if !LibGC.has_method?(:set_stackbottom) %} ^ Error: has_method? failed $ crystal build boehm.cr # build with the 1.10.1 compiler $ Will have to update the bootstrap compiler to eg. 1.10.1, the current versi= on in ports, and it should work then. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276271-7788-RtjuFZnnXo>