From nobody Wed Dec 29 10:35:32 2021 X-Original-To: ruby@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 D76211927146 for ; Wed, 29 Dec 2021 10:35:33 +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 4JP78j4vqbz4pHT for ; Wed, 29 Dec 2021 10:35:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 893F323578 for ; Wed, 29 Dec 2021 10:35:33 +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 1BTAZXiK005009 for ; Wed, 29 Dec 2021 10:35:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BTAZXs7005008 for ruby@FreeBSD.org; Wed, 29 Dec 2021 10:35:33 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: ruby@FreeBSD.org Subject: [Bug 260791] lang/ruby30 (2021Q4) does not compile on Haswell Date: Wed, 29 Dec 2021 10:35:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pmc@citylink.dinoex.sub.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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: FreeBSD-specific Ruby discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ruby List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ruby@freebsd.org X-BeenThere: freebsd-ruby@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640774133; 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=4MD4OLNP2cBTHQpw5s8mY3U6Ll1TNIZIJQMOHb4ToE0=; b=r+t2lY8xFrQOmtIR0br261Cw7MznQedGtOtsW8+MMgId3lvlGfpej5uC5IBedGEUyQB++E CwHstLrqQbWH9jUf+iXbKhftNCJyXiX9yGKhWR69hyN02ZlQtUD7ytiTBZ7t9zt/zRctjm 1Czl66d6/P+lC1oNxzI1jlEyJwu6lEXOwiWnoEcfcwbj+CLQxssuLih98A/GDI+/9eFias rc8I4fqx5QXpEwnv7I5FE4xzxYC45IckYIRpytVGtGXjCZOrxzsW0nUD0HPgRMNrjLIxSs hfM5n4U8KSCLcYOQtGOxjkQvcorWWPkiCBmE/HW45v8PY65K/Wc1iL0hhfAg8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640774133; a=rsa-sha256; cv=none; b=M9bLrahOmYHNpSJWElCrAyaEwgeVHe+rrbOhCzSYJgp75PLC2kXvrBnqW6kMzGndwuDY0t RrC4JedvzsK9N6ZuoXdoRjS5k8DdTnizcAmO6eLWh6K1IHvmUQbFphRWLJuKMLOOvPNBQj yTC7ES3/1ClUJvM7Ese7aciwhp/959mrxMs0TgO24HrGkUW0o8JtLoIGqpYsDzljic1wf2 kzRx2zZOc8751FIsis0e50ugOK7mYlJr6OrN6iJ8BSgxKI57YSaYEmOYB7joYqSAeTdG4N qFpUZTOr5zkpyvTGu1G7MnCx2XanjExALSwTjk12XdhRFYkCIDRzEc2yNdUV7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260791 Bug ID: 260791 Summary: lang/ruby30 (2021Q4) does not compile on Haswell Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ruby@FreeBSD.org Reporter: pmc@citylink.dinoex.sub.org Flags: maintainer-feedback?(ruby@FreeBSD.org) Assignee: ruby@FreeBSD.org To reproduce: ------------- set /etc/make.conf: CPUTYPE?=3Dhaswell Error: ------ --- numeric.o --- compiling numeric.c In file included from numeric.c:35: In file included from ./internal/numeric.h:13: ./internal/bits.h:240:26: warning: implicit declaration of function '_lzcnt_u32' is invalid in C99 [-Wimplicit-function-declaration] return (unsigned int)_lzcnt_u32(x); ^ ./internal/bits.h:269:26: warning: implicit declaration of function '_lzcnt_u64' is invalid in C99 [-Wimplicit-function-declaration] return (unsigned int)_lzcnt_u64(x); ^ ./internal/bits.h:455:22: warning: implicit declaration of function '_tzcnt_u32' is invalid in C99 [-Wimplicit-function-declaration] return (unsigned)_tzcnt_u32(x); ^ ./internal/bits.h:477:22: warning: implicit declaration of function '_tzcnt_u64' is invalid in C99 [-Wimplicit-function-declaration] return (unsigned)_tzcnt_u64(x); ^ [...] ld: error: undefined symbol: _lzcnt_u32 >>> referenced by bignum.c >>> bignum.o:(bary_divmod_normal) >>> referenced by bignum.c >>> bignum.o:(rb_absint_size) >>> referenced by bignum.c >>> bignum.o:(rb_absint_numwords) >>> referenced by bignum.c >>> bignum.o:(rb_absint_numwords) >>> referenced by bignum.c >>> bignum.o:(rb_int_parse_cstr) >>> referenced by bignum.c >>> bignum.o:(rb_str2big_poweroftwo) >>> referenced by bignum.c >>> bignum.o:(big2ulong) >>> referenced by bignum.c >>> bignum.o:(big2ulong) >>> referenced by bignum.c >>> bignum.o:(big2ull) >>> referenced by bignum.c >>> bignum.o:(big2ull) >>> referenced 18 more times ld: error: undefined symbol: _tzcnt_u32 >>> referenced by compile.c >>> compile.o:(ibf_load_iseq_each) >>> referenced by compile.c >>> compile.o:(ibf_load_iseq_each) >>> referenced by compile.c >>> compile.o:(ibf_load_iseq_each) >>> referenced by compile.c >>> compile.o:(ibf_load_iseq_each) >>> referenced by compile.c >>> compile.o:(ibf_load_iseq_each) >>> referenced by compile.c >>> compile.o:(ibf_load_iseq_each) >>> referenced by compile.c >>> compile.o:(ibf_load_iseq_each) >>> referenced by compile.c >>> compile.o:(ibf_load_iseq_each) >>> referenced by compile.c >>> compile.o:(ibf_load_iseq_each) >>> referenced by compile.c >>> compile.o:(ibf_load_iseq_each) >>> referenced 66 more times ld: error: undefined symbol: _lzcnt_u64 >>> referenced by numeric.c >>> numeric.o:(rb_int_bit_length) >>> referenced by numeric.c >>> numeric.o:(rb_ulong_isqrt) >>> referenced by numeric.c >>> numeric.o:(rb_int_s_isqrt) >>> referenced by numeric.c >>> numeric.o:(builtin_inline_class_75) >>> referenced by random.c >>> random.o:(random_ulong_limited) >>> referenced by st.c >>> st.o:(rb_st_init_table_with_size) ld: error: undefined symbol: _tzcnt_u64 >>> referenced by string.c >>> string.o:(rb_str_coderange_scan_restartable) >>> referenced by string.c >>> string.o:(rb_str_coderange_scan_restartable) >>> referenced by string.c >>> string.o:(rb_str_coderange_scan_restartable) >>> referenced by string.c >>> string.o:(rb_external_str_new_with_enc) >>> referenced by string.c >>> string.o:(rb_external_str_new_with_enc) >>> referenced by string.c >>> string.o:(enc_strlen) >>> referenced by string.c >>> string.o:(enc_strlen) >>> referenced by string.c >>> string.o:(rb_enc_strlen_cr) >>> referenced by string.c >>> string.o:(rb_enc_cr_str_copy_for_substr) >>> referenced by string.c >>> string.o:(str_nth_len) >>> referenced 5 more times cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [miniruby] Error code 1 Analysis: --------- internal/bits.h fails to include because configure does not f= ind it. Configure does not find it because it does search for it only on certain 'x86_64' etc. machine, but we are 'amd64' machine: configure.ac: AS_CASE("$target_cpu", [x64|x86_64|i[3-6]86*], [ AC_CHECK_HEADERS(x86intrin.h) ]) --- configure:3327: checking target system type configure:3340: result: amd64-portbld-freebsd12 I have no idea which party is wrong here, but adding 'amd64' into configure= .ac solves the matter. --=20 You are receiving this mail because: You are the assignee for the bug.=