From nobody Fri Nov 25 16:16:02 2022 X-Original-To: freebsd-ports@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 4NJg324Bymz4j8wS for ; Fri, 25 Nov 2022 16:16:14 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NJg323g9tz47Sf for ; Fri, 25 Nov 2022 16:16:14 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669392974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=R7yxq/W+YBE/wDlFx+mkjZ+l0rHH5jiBhhfpS0mbvSg=; b=QPwTG/uOPBaM4Udp84ioJZcMfwhUMQiy44UbXpBTXB1e4CoWLOxiyRRVdNSrc1pZWol7gr 4hLMAM0cgscWBs1cjyABG+dCjnOEbMxWfJxYOgX4li0wMRxOvceyMOoqlhEXiVF+0timXj 8kb4EpBBdoNXUzRalqFImQuhEkYyqUDn36gZiSheEM5TZahBAuyF2ChQCG+sT5tW96tnH5 q6kKiAFvSXZOforka2i2GZBnAsHFU0PJMW4+Y9rAhrfVhU5tf5cGniBL9WDBEs3Hm0Dd7k 0+/57zt0FhNDTdIMsVrQE7mtowXC/fPygAmt2jy8/w09QxyVaKd4JlFNMT3i+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669392974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=R7yxq/W+YBE/wDlFx+mkjZ+l0rHH5jiBhhfpS0mbvSg=; b=BA2Hixz0rmutKQ33+yYl1UmJ9fkLLxytJBrkpZq6KYbP/w4s8RQ3ieVhsN2ifb3+A3dySQ 9PSjsGsX+tvsWkAPbqUsLHcQ3PzG0jDaV4Yk7PIcFylS8DPlz2xZN98JAQ8MvakvuMDWGC jLlZxhgokACLMkDWk1CruWmSoccVkAOoBfgd3DJTe0nQYqQmoBzBK1kzCLqoBNA3sTAmEg bCrraZ3LX8gQhzgjg139icraDZsHullS68ZG2MRrbPVI1yqD6DjNKBDhKWIBV0sQNv8rup X0rUDLuk6LIwp3jvTUN4lV4QgJ60Cr9/K2VFEkg0t5ye2+xZ8lPGQrDARh1E+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669392974; a=rsa-sha256; cv=none; b=NwB+ABYUHxdt749yJHiFGeTT69/LH9+hsDIBf+32o/ok4oKF/4uTBflAY8Qxi2enNjrG/N czF5gZONv44Q7zlGbtqlXKRWnjhHpoMEMTjznO2CADs2Jlj4thhmCpejcpO+qStRG+CQK1 IvS3wQFDffb/s/yGy3ElszLXn2lLKk0LIezd2lHPg/W5TiY1rNBtmhztviZAjKtp3RD4CF +rEWVbI3+8n9XMsm0tyi8axBf3aTSH/GyxCAzxoUvQGOV1OahXAIf0GKCa7WEbL8Zj9beC IJOvmR84z648OAJMZheEKjuGCtuSnrFcsXu2t90q/mvVsU7VRp5XQXTBHxj/zA== Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4NJg322Wwbzp19 for ; Fri, 25 Nov 2022 16:16:14 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f52.google.com with SMTP id i2so4624656vsc.1 for ; Fri, 25 Nov 2022 08:16:14 -0800 (PST) X-Gm-Message-State: ANoB5plKFG03DE7SI0ycOKsJUS8gvYK7jTROQSl+SSkVx9AM35W6VQ9T v7I8i18f0GEZZezF0OuBqtYWzklhhf6Z1hkg0yg= X-Google-Smtp-Source: AA0mqf7idHux+eaQXWqEEPJ0wCu8KACZNSriPUUUGCC4Xqv8dQhAcSkYJWogyiurW+8CcLiV0Yqrj6lzZuC1rwy3UW0= X-Received: by 2002:a67:e890:0:b0:3b0:4f2f:26b6 with SMTP id x16-20020a67e890000000b003b04f2f26b6mr11368966vsn.53.1669392973540; Fri, 25 Nov 2022 08:16:13 -0800 (PST) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: <96078C14-CBEB-4450-ACE1-EB0488DD1814.ref@yahoo.com> <96078C14-CBEB-4450-ACE1-EB0488DD1814@yahoo.com> <7AB31838-8D70-4D48-A1F8-2FE8C8E7AA0E@yahoo.com> In-Reply-To: From: Nuno Teixeira Date: Fri, 25 Nov 2022 16:16:02 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [zstd-sys 2.0.1+zstd.1.5.2] crate failing on arm64 To: Mark Millard Cc: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="0000000000002db3e005ee4dd757" X-ThisMailContainsUnwantedMimeParts: N --0000000000002db3e005ee4dd757 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok, I'm a little lost... What you think about a short error message to send to upstream: --- error[E0554]: `#![feature]` may not be used on the stable release channel --> :1:12 | 1 | #![feature(windows_by_handle)] | ^^^^^^^^^^^^^^^^^ error[E0635]: unknown feature `windows_by_handle` --> :1:12 | 1 | #![feature(windows_by_handle)] | ^^^^^^^^^^^^^^^^^ error: aborting due to 2 previous errors Some errors have detailed explanations: E0554, E0635. For more information about an error, try `rustc --explain E0554`. --- with link to full log. Thanks Mark Millard escreveu no dia quinta, 24/11/2022 =C3=A0(= s) 17:27: > On Nov 24, 2022, at 07:00, Mark Millard wrote: > > > On Nov 24, 2022, at 03:03, Nuno Teixeira wrote: > > > >> Hello Mark, > > Hello. > > >> I have compared some of errors/warnings with amd64 build logs and they > are present in there too. > > Interesting. > > >> I think I found a glitch at the end of arm64 log: > >> --- > >> [zstd-sys 2.0.1+zstd.1.5.2] running: "ar" "cq" "/wrkdirs/usr/ports... > >> (...) > >> "/wrkdirs/usr/ports/editors/lapce/ > >> > work/target/aarch64-unknown-freebsd/release/build/zstd-sys-97d70ebd740964= f8/out/zstd/lib/decompress/huf_decompress_amd64.o" > >> > > ^^^^^ > > Well, in my older context, > > # grep "^#" > /wrkdirs/usr/ports/editors/lapce/work/lapce-0.2.1/cargo-crates/zstd-sys-2= .0.1+zstd.1.5.2/zstd/lib/decompress/huf_decompress_amd64.S > | grep -v "#define " > #include "../common/portability_macros.h" > #if defined(__ELF__) && defined(__GNUC__) > #endif > #if ZSTD_ENABLE_ASM_X86_64_BMI2 > #undef GET_NEXT_DELT > #undef DECODE_FROM_DELT > #undef DECODE > #undef RELOAD_BITS > #undef DECODE > #undef RELOAD_BITS > #endif > > The #endif is the last line of the file and, ignoring > comments and blank lines for the most part, the rest > of the file before/at the #if ZSTD_ENABLE_ASM_X86_64_BMI2 > is just: > > #include "../common/portability_macros.h" > > /* Stack marking > * ref: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart > */ > #if defined(__ELF__) && defined(__GNUC__) > .section .note.GNU-stack,"",%progbits > #endif > > #if ZSTD_ENABLE_ASM_X86_64_BMI2 > > > Looks like the ZSTD_ENABLE_ASM_X86_64_BMI2 test would eliminate the > amd64 specifics in an aarch64 context, so they do not bother avoiding > the file. > > > >> --- > >> and zstd-sys-2.0.1+zstd.1.5.2/zstd/lib/common/xxhash.h: > >> # if (defined(__aarch64__) || defined(__arm64__) || defined(_M_ARM64) > || defined(_M_ARM64EC)) \ > >> > >> So I presume that this crate should be build on arm64/aarch64 but don'= t > understant why it calls: > >> "huf_decompress_amd64.o" > >> > >> Any clues? > > > > Not at this point. I've got the system rebuilding the > > port so I can set up to look again. > > > >> . . . > > FYI: the better string for searching got: > > # find -s /wrkdirs/usr/ports/editors/lapce/ -name stderr -exec grep -l > "aborting due to" {} \; | less > > /wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debu= g/build/cap-fs-ext-10fe2c1f66453130/stderr > > /wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debu= g/build/cap-primitives-ed08064314a4640b/stderr > > /wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debu= g/build/cap-std-5acaec63374cb836/stderr > > /wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debu= g/build/io-extras-e83e1591d250cc25/stderr > > /wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debu= g/build/io-lifetimes-62b7366622512d7e/stderr > > /wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debu= g/build/system-interface-56dbb6efd7f0321e/stderr > > The first line of the output is new compared to before: > > # more > /wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debu= g/build/cap-fs-ext-10fe2c1f66453130/stderr > error[E0554]: `#![feature]` may not be used on the stable release channel > --> :1:12 > | > 1 | #![feature(windows_by_handle)] > | ^^^^^^^^^^^^^^^^^ > > error[E0635]: unknown feature `windows_by_handle` > --> :1:12 > | > 1 | #![feature(windows_by_handle)] > | ^^^^^^^^^^^^^^^^^ > > error: aborting due to 2 previous errors > > Some errors have detailed explanations: E0554, E0635. > For more information about an error, try `rustc --explain E0554`. > > So, not a new type of error compared to the others. > > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > > --=20 Nuno Teixeira FreeBSD Committer (ports) --0000000000002db3e005ee4dd757 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ok, I'm a little lost...

What you think about a short error message to send to upstream:
= ---
error[E0554]: `#![feature]` may not = be used on the stable release channel
=C2=A0--> <anon>:1:12
=C2=A0 |
1 | #![feature(windows_by_handle)]
=C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^^^^^^^^^^^^^^^^^

error[E0635]: unknown feature `windows_by_handle`
=C2=A0--> <anon>:1:12
=C2=A0 |
1 | #![feature(windows_by_handle)]
=C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0554, E0635.
For more information about an error, try `rustc --explain E0554`.
---
with link to full= log.

Thanks

Mark Millard <marklmi@yahoo.com> escreveu no dia qui= nta, 24/11/2022 =C3=A0(s) 17:27:
On Nov 24, 2022, at 07:00, Mark Millard <marklmi@yahoo.com> wrote:
> On Nov 24, 2022, at 03:03, Nuno Teixeira <eduardo@freebsd.org> wrote:
>
>> Hello Mark,

Hello.

>> I have compared some of errors/warnings with amd64 build logs and = they are present in there too.

Interesting.

>> I think I found a glitch at the end of arm64 log:
>> ---
>> [zstd-sys 2.0.1+zstd.1.5.2] running: "ar" "cq"= "/wrkdirs/usr/ports...
>> (...)
>> "/wrkdirs/usr/ports/editors/lapce/
>> work/target/aarch64-unknown-freebsd/release/build/zstd-sys-97d70eb= d740964f8/out/zstd/lib/decompress/huf_decompress_amd64.o"
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^^^^^

Well, in my older context,

# grep "^#" /wrkdirs/usr/ports/editors/lapce/work/lapce-0.2.1/car= go-crates/zstd-sys-2.0.1+zstd.1.5.2/zstd/lib/decompress/huf_decompress_amd6= 4.S | grep -v "#define "
#include "../common/portability_macros.h"
#if defined(__ELF__) && defined(__GNUC__)
#endif
#if ZSTD_ENABLE_ASM_X86_64_BMI2
#undef GET_NEXT_DELT
#undef DECODE_FROM_DELT
#undef DECODE
#undef RELOAD_BITS
#undef DECODE
#undef RELOAD_BITS
#endif

The #endif is the last line of the file and, ignoring
comments and blank lines for the most part, the rest
of the file before/at the #if ZSTD_ENABLE_ASM_X86_64_BMI2
is just:

#include "../common/portability_macros.h"

/* Stack marking
=C2=A0* ref: https://wiki.gentoo.org/wiki/= Hardened/GNU_stack_quickstart
=C2=A0*/
#if defined(__ELF__) && defined(__GNUC__)
.section .note.GNU-stack,"",%progbits
#endif

#if ZSTD_ENABLE_ASM_X86_64_BMI2


Looks like the ZSTD_ENABLE_ASM_X86_64_BMI2 test would eliminate the
amd64 specifics in an aarch64 context, so they do not bother avoiding
the file.


>> ---
>> and zstd-sys-2.0.1+zstd.1.5.2/zstd/lib/common/xxhash.h:
>> #=C2=A0 if (defined(__aarch64__) || defined(__arm64__) || defined(= _M_ARM64) || defined(_M_ARM64EC)) \
>>
>> So I presume that this crate should be build on arm64/aarch64 but = don't understant why it calls:
>> "huf_decompress_amd64.o"
>>
>> Any clues?
>
> Not at this point. I've got the system rebuilding the
> port so I can set up to look again.
>
>> . . .

FYI: the better string for searching got:

# find -s /wrkdirs/usr/ports/editors/lapce/ -name stderr -exec grep -l &quo= t;aborting due to" {} \; | less
/wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debug/= build/cap-fs-ext-10fe2c1f66453130/stderr
/wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debug/= build/cap-primitives-ed08064314a4640b/stderr
/wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debug/= build/cap-std-5acaec63374cb836/stderr
/wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debug/= build/io-extras-e83e1591d250cc25/stderr
/wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debug/= build/io-lifetimes-62b7366622512d7e/stderr
/wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd/debug/= build/system-interface-56dbb6efd7f0321e/stderr

The first line of the output is new compared to before:

# more /wrkdirs/usr/ports/editors/lapce/work/target/aarch64-unknown-freebsd= /debug/build/cap-fs-ext-10fe2c1f66453130/stderr
error[E0554]: `#![feature]` may not be used on the stable release channel =C2=A0--> <anon>:1:12
=C2=A0 |
1 | #![feature(windows_by_handle)]
=C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^^^^^^^^^^^^^^^^^

error[E0635]: unknown feature `windows_by_handle`
=C2=A0--> <anon>:1:12
=C2=A0 |
1 | #![feature(windows_by_handle)]
=C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0554, E0635.
For more information about an error, try `rustc --explain E0554`.

So, not a new type of error compared to the others.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com



--
Nun= o Teixeira
FreeBSD Committer (ports)
--0000000000002db3e005ee4dd757--