Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Nov 2024 04:51:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 282663] lang/rust: building 1.82.0 on/for armv7 fails for multiple definitions and undefined field name
Message-ID:  <bug-282663-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282663

            Bug ID: 282663
           Summary: lang/rust: building 1.82.0 on/for armv7 fails for
                    multiple definitions and undefined field name
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust@FreeBSD.org
          Reporter: marklmi26-fbsd@yahoo.com
          Assignee: rust@FreeBSD.org
             Flags: maintainer-feedback?(rust@FreeBSD.org)

This was a poudriere-devel based build after updating my
/usr/ports/ via git. I did this because someone asked if
I would also get build errors. The context is aarch64 with
an armv7 poudriere jail on a Windows Dev Kit 2023. It
supports user armv7 code. FreeBSD is main [so: 15].

The build log file reports . . .

error[E0428]: the name `type_of_thread_id` is defined multiple times
    --> /rust/deps/nix-0.29.0/src/sys/signal.rs:1110:1
     |
1107 | pub type type_of_thread_id =3D libc::lwpid_t;
     | ------------------------------------------- previous definition of t=
he
type `type_of_thread_id` here
...
1110 | pub type type_of_thread_id =3D libc::pid_t;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `type_of_thread_id` redefi=
ned
here
     |
     =3D note: `type_of_thread_id` must be defined only once in the type
namespace of this module
. . .

error[E0609]: no field `sigev_notify_thread_id` on type
`signal::sigevent::ffi::sigevent`
    --> /rust/deps/nix-0.29.0/src/sys/signal.rs:1364:25
     |
1364 |                     sev.sigev_notify_thread_id =3D thread_id;
     |                         ^^^^^^^^^^^^^^^^^^^^^^ unknown field
     |
     =3D note: available fields are: `sigev_notify`, `sigev_signo`,
`sigev_value`, `_sigev_un`

Some errors have detailed explanations: E0428, E0609.
For more information about an error, try `rustc --explain E0428`.
. . .
-------------
warning: `nix` (lib) generated 9 warnings
error: could not compile `nix` (lib) due to 2 previous errors; 9 warnings
emitted

[I ignore later reporting that might be consequences of the above earlier
reports of errors.]


For reference:

# ~/fbsd-based-on-what-commit.sh -C /usr/ports/
716a5651faed (HEAD -> main, freebsd/main, freebsd/HEAD)
net-mgmt/rubygem-oxidized-web: Fix dependency on www/rubygem-haml
Author:     Einar Bjarni Halld=C3=B3rsson <einar@isnic.is>
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2024-11-09 20:49:29 +0000
branch: main
merge-base: 716a5651faedef308ee5c267c381d6dd4483d88c
merge-base: CommitDate: 2024-11-09 20:49:29 +0000
n685665 (--first-parent --count for merge-base)

# uname -apKU
FreeBSD aarch64-main-pbase 15.0-CURRENT FreeBSD 15.0-CURRENT
main-n273174-8b2e7da70855 GENERIC-NODEBUG arm64 aarch64 1500026 1500026

(That is an install of an official PkgBase kernel that was in use.)

--=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-282663-7788>