From nobody Fri Feb 24 14:58:32 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PNY1N2RR7z3tZqb for ; Fri, 24 Feb 2023 14:58:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PNY1N0wbHz4FYY for ; Fri, 24 Feb 2023 14:58:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677250712; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JOE7UzV/NRWmJpryUOfcs0Wx2p20hDDEoXbTw3GNZBU=; b=T7gQ9Nox28mSpQ2s5mn7VkTFGctQpYDblqgxtAdB+mZe2SDLNksuRFVThwTSkebAO5Z2Jc jTHEoap7GlcF05stF84BOir5mU0DSk5ejsqH1ha/sShMjKGx29duUeMFOAzFdUKz1Pw2pw C7NVTcYnkc+RNIzk46HfhjOu0MTsKc10A/SRIhBwjImqEGbwtaKkLXtLQkYlgVnH+6yVV7 /dEWUeNqVteY8Zk6Z/osKHKY7Eog+gNuLu2Gh7Cv5mlBUf4OB466A7MnPox4HhbjtTawOt Z5OXn1x23C/DDBj3jc/UnegpigfcRhikiesl2pfL+Djsz0bGdUhlGCZCQ2pY4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677250712; a=rsa-sha256; cv=none; b=EAGqJcL6Z37R9Xkf6pkBGUmfNdnhBN/EGy5pPEqLzimhqD6Eb+OvGc092n2KCI+mj5yhIx 8+V9riX0qx5VbCewvpTAyZdpVRVFAQNEtO3mVFqFzSxWHzsfLGXB/f26Y+rAWdGT5rd47d aWF3xYTLxShoK7vnfFP9h5GLJPkTV2YEKS/DB3EnCwzEGdlV0Pokc78eVHt2vf73luuqSI 2j3uJXGXy02xNCFqEk2PBMAKN6O7w8MXodppJhDWP1KyrFi9j+3Nf6SLfCbDm9Adi6cT2c eVSo57BwkUzz9hcdKx+HxIMMkmMgVhFJ/MyEWGWNm0vciMJL4HobdloRZW33tw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PNY1N0169zSCv for ; Fri, 24 Feb 2023 14:58:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 31OEwV0Q010676 for ; Fri, 24 Feb 2023 14:58:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31OEwVLj010675 for bugs@FreeBSD.org; Fri, 24 Feb 2023 14:58:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269803] Ruby 3.2 compilation error (cannot load such file -- psych) Date: Fri, 24 Feb 2023 14:58:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nicholashubbard@posteo.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269803 Bug ID: 269803 Summary: Ruby 3.2 compilation error (cannot load such file -- psych) Product: Base System Version: 13.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: nicholashubbard@posteo.net Created attachment 240378 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D240378&action= =3Dedit Output of "./configure" and "make" commands On FreeBSD 13.1-RELEASE, I am able to compile every Ruby version from 2.1 to 3.1, however I get a compilation error about missing a library named "psych" when compiling Ruby versions 3.2.0 and 3.2.1. Here is the error I get when running "make": Generating RDoc documentation /usr/home/_73/ruby-3.2.0/lib/yaml.rb:3: warning: It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. uh-oh! RDoc had a problem: cannot load such file -- psych run with --debug for full backtrace *** Error code 1 Stop. make: stopped in /usr/home/_73/ruby-3.2.0 Here are the steps to reproduce the bug: $ wget https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.0.tar.gz $ tar -xf ruby-3.2.0.tar.gz $ cd ruby-3.2.0 $ ./configure $ make I attached a tarball that contains the full output I get from running "./configure" and "make". The same issue, but on MacOS, was reported on the `ruby-build` bugtracker. https://github.com/rbenv/ruby-build/discussions/2118 If you read this issue thread, you will see that the problem was due to "libyaml" not having=20 been installed. On my FreeBSD system though, I am sure that I installed "libyaml". The following output shows that "libyaml" is installed: $ pkg info libyaml libyaml-0.2.5 Name : libyaml Version : 0.2.5 Installed on : Thu Feb 23 17:02:37 2023 EST Origin : textproc/libyaml Architecture : FreeBSD:13:amd64 Prefix : /usr/local Categories : textproc Licenses : MIT Maintainer : adamw@FreeBSD.org WWW : https://pyyaml.org/wiki/LibYAML Comment : YAML 1.1 parser and emitter written in C Shared Libs provided: libyaml-0.so.2 Annotations : FreeBSD_version: 1301000 cpe : cpe:2.3:a:pyyaml:libyaml:0.2.5:::::freebsd13:x64 repo_type : binary repository : FreeBSD Flat size : 371KiB Description : LibYAML is a YAML 1.1 parser and emitter written in C. LibYAML covers presenting and parsing processes. Thus LibYAML defines the following two processors: * Parser, which takes an input stream of bytes and produces a sequence of parsing events. * Emitter, which takes a sequence of events and produces a stream of bytes. The processes of parsing and presenting are inverse to each other. Any sequence of events produced by parsing a well-formed YAML document should be acceptable by the Emitter, which should produce an equivalent document. Similarly, any document produced by emitting a sequence of events should be acceptable for the Parser, which should produce an equivalent sequence of events. The job of resolving implicit tags, composing and serializing representation trees, as well as constructing and representing native objects is left to applications and bindings. Although some of these processes may be covered in the latter releases, they are not in the scope of the initial release of LibYAML. WWW: https://pyyaml.org/wiki/LibYAML --=20 You are receiving this mail because: You are the assignee for the bug.=