Bug 258490 - ports-mgmt/pkg-devel 1.17.99.3 fails to build rust-1.54.0_2 during package phase
Summary: ports-mgmt/pkg-devel 1.17.99.3 fails to build rust-1.54.0_2 during package phase
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-14 02:01 UTC by Alastair Hogge
Modified: 2021-09-19 17:07 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alastair Hogge 2021-09-14 02:01:03 UTC
Hello,

A 14-CURRENT system
src @ https://cgit.freebsd.org/src/commit/?id=ae87a08c410d9e8a1a906dfd23a8cc732d1c5ff5
ports @ https://cgit.freebsd.org/ports/commit/?id=0cb9a1b3d77362294c61a9417b4d02713f11feab

I can build lang/rust prior to pkg-devel update to 1.17.99.3.
My attempt at a git bisect to find a related commit:

$ git bisect start
# bad: [715cdedcb3d627a162a37a34474ee3249b05e62e] sysutils/virtualmin: Update to version 6.17.
git bisect bad 715cdedcb3d627a162a37a34474ee3249b05e62e
# good: [e497a16a286972bfcab908209b11ee6a13d99dc9] ports-mgmt/pkg*: Release 1.17.0
git bisect good e497a16a286972bfcab908209b11ee6a13d99dc9
# good: [0504b95dbef47f4b0f9bb038e63c22fd2c5e9625] net/syncthing: Add CPE information
git bisect good 0504b95dbef47f4b0f9bb038e63c22fd2c5e9625
# bad: [942696f4db93c3aeb26d91abc8b5d31b8aa803ae] www/httrack: Add CPE information
git bisect bad 942696f4db93c3aeb26d91abc8b5d31b8aa803ae
# bad: [d908b08281baab671763b8fa1a0097ca1cf416b1] math/cbc: Build with Nauty, graph library
git bisect bad d908b08281baab671763b8fa1a0097ca1cf416b1
# good: [7c424175d9af73500cab1708993e763bd5e6b48e] sysutils/rubygem-puppetserver-ca: Update to 2.3.2
git bisect good 7c424175d9af73500cab1708993e763bd5e6b48e
# good: [1a1737d26807ee50c736230363a41a56da2ce586] sysutils/keyd: update to 1.1.1
git bisect good 1a1737d26807ee50c736230363a41a56da2ce586
# good: [416d7396c63aac5de4d895653276388fa986d4df] www/sogo: devel/sope: update to 5.2.0
git bisect good 416d7396c63aac5de4d895653276388fa986d4df
# good: [fa81b342437b50cbc34f9dfcb4df553a68384102] print/foomatic-db: Update to 20210822
git bisect good fa81b342437b50cbc34f9dfcb4df553a68384102
# good: [ee68b684176b7b19cb107ab10e68f32230c0d6eb] deskutils/solanum: drop unused substitution
git bisect good ee68b684176b7b19cb107ab10e68f32230c0d6eb
# bad: [615c521bb3a0eafdb69e45fc8ddb2ca7c8c286b3] biology/flash: Fast Length Adjustment of SHort reads
git bisect bad 615c521bb3a0eafdb69e45fc8ddb2ca7c8c286b3
# good: [6b9c8ced32cff2b51b93b49208f39f60dde72da4] Mk/bsd.port.mk: document PKG_COMPRESSION_FORMAT
git bisect good 6b9c8ced32cff2b51b93b49208f39f60dde72da4
# good: [ea36ef6f67f44bbdfe04643afe7dd3ac69d6c29e] Mk/bsd.port.mk: Add PKG_COMPRESSION_LEVEL user variable
git bisect good ea36ef6f67f44bbdfe04643afe7dd3ac69d6c29e
# bad: [b346f732e4a79b40ff5b491fa0b661dd5ed43f55] devel/capnproto: upgrade to 0.9.0
git bisect bad b346f732e4a79b40ff5b491fa0b661dd5ed43f55
# bad: [35c7ef4d57a17200c8e98681b1e3d5d0ec0b137d] ports-mgmt/pkg-devel: update to 1.17.99.3
git bisect bad 35c7ef4d57a17200c8e98681b1e3d5d0ec0b137d
# first bad commit: [35c7ef4d57a17200c8e98681b1e3d5d0ec0b137d] ports-mgmt/pkg-devel: update to 1.17.99.3

$ git bisect view
commit 35c7ef4d57a17200c8e98681b1e3d5d0ec0b137d
Author: Baptiste Daroussin <bapt@FreeBSD.org>
Date:   Mon Aug 23 16:42:45 2021 +0200

    ports-mgmt/pkg-devel: update to 1.17.99.3

    - make pkg/audit.h C++ friendly
    - fix build with libressl
    - Enable aarch64 support for linux
    - plenty of portability fixes for linux with musl libc
    - autoremove: respect -q
    - version: report an error if the provided INDEX file does not exist
    - periodic: allow users so provide an ignore list of jails
    - periodic: reduce audit script verbosity
    - arch: to not consider .h as potentially arch specific
    - query: allow -e to be used with other filter options
    - register: implement a -N to disable registration in the database
    - rework internal hash tables
    - plenty of memory leak fixed
    - fetch; do not count cached files as files to be fetched

Poudriere build log:
Install "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/COPYRIGHT" to "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd/image/share/doc/rust/COPYRIGHT"
Install "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/LICENSE-APACHE" to "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd/image/share/doc/rust/LICENSE-APACHE"
Install "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/LICENSE-MIT" to "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd/image/share/doc/rust/LICENSE-MIT"
Install "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/README.md" to "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd/image/share/doc/rust/README.md"
Install "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/COPYRIGHT" to "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd/overlay/COPYRIGHT"
Install "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/LICENSE-APACHE" to "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd/overlay/LICENSE-APACHE"
Install "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/LICENSE-MIT" to "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd/overlay/LICENSE-MIT"
Install "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/README.md" to "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd/overlay/README.md"
    c Assemble { target_compiler: Compiler { stage: 0, host: TargetSelection { triple: "x86_64-unknown-freebsd", file: None } } }
    c RustInstaller { compiler: Compiler { stage: 0, host: TargetSelection { triple: "x86_64-unknown-freebsd", file: None } }, target: TargetSelection { triple: "x86_64-unknown-freebsd", file: None } }
    c Assemble { target_compiler: Compiler { stage: 0, host: TargetSelection { triple: "x86_64-unknown-freebsd", file: None } } }
Dist rustc-1.54.0-x86_64-unknown-freebsd
running: "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/x86_64-unknown-freebsd/stage0-tools-bin/fabricate" "generate" "--image-dir" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd/image" "--component-name=rustc" "--rel-manifest-dir=rustlib" "--legacy-manifest-dirs=rustlib,cargo" "--product-name=Rust" "--success-message=rustc installed." "--package-name=rustc-1.54.0-x86_64-unknown-freebsd" "--non-installed-overlay" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd/overlay" "--output-dir" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/dist" "--work-dir" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd"
load: 3.03  cmd: tail 69068 [select] 1016.94r 0.05u 0.60s 0% 1884k
mi_switch+0xb5 sleepq_catch_signals+0x306 sleepq_wait_sig+0x9 _cv_wait_sig+0xe7 seltdwait+0x9c kern_select+0x97b sys_select+0x56 amd64_syscall+0x101 fast_syscall_common+0xf8
        finished in 35.268 seconds
  < Rustc { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-freebsd", file: None } } }
Install rustc stage2 (Some(TargetSelection { triple: "x86_64-unknown-freebsd", file: None }))
running: "sh" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.54.0-src/build/tmp/tarball/rustc/x86_64-unknown-freebsd/rustc-1.54.0-x86_64-unknown-freebsd/install.sh" "--prefix=/wrkdirs/usr/ports/lang/rust/work/stage/usr/local" "--sysconfdir=/wrkdirs/usr/ports/lang/rust/work/stage/usr/local/etc" "--datadir=/wrkdirs/usr/ports/lang/rust/work/stage/usr/local/share" "--docdir=/wrkdirs/usr/ports/lang/rust/work/stage/usr/local/share/doc/rust" "--bindir=/wrkdirs/usr/ports/lang/rust/work/stage/usr/local/bin" "--libdir=/wrkdirs/usr/ports/lang/rust/work/stage/usr/local/lib" "--mandir=/wrkdirs/usr/ports/lang/rust/work/stage/usr/local/share/man" "--disable-ldconfig"
install: creating uninstall script at /wrkdirs/usr/ports/lang/rust/work/stage/usr/local/lib/rustlib/uninstall.sh
install: installing component 'rustc'
install: backing up existing file at /wrkdirs/usr/ports/lang/rust/work/stage/usr/local/share/doc/rust/LICENSE-MIT
install: backing up existing file at /wrkdirs/usr/ports/lang/rust/work/stage/usr/local/share/doc/rust/LICENSE-APACHE
install: backing up existing file at /wrkdirs/usr/ports/lang/rust/work/stage/usr/local/share/doc/rust/README.md

    rustc installed.

< Rustc { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-freebsd", file: None } }, target: TargetSelection { triple: "x86_64-unknown-freebsd", file: None } }
Build completed successfully in 0:04:21
====> Compressing man pages (compress-man)
===========================================================================
=======================<phase: package        >============================
===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2021-09-14T01:26:03+0000' 'PKG_NOTE_ports_top_git_hash=0cb9a1b3d773' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=473a0e375ef3' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.3.99.20210907_1' NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building package for rust-1.54.0_2
Child process pid=1173 terminated abnormally: Segmentation fault
*** Error code 1

Stop.

syslog:
Sep 14 01:47:42 direwolf kernel: pid 1173 (pkg-static), jid 493, uid 0: exited on signal 11
Comment 1 Alastair Hogge 2021-09-15 01:43:32 UTC
Updating to pkg-1.17.99.4 (https://cgit.freebsd.org/ports/commit/?id=d7dd5ef7679043b6deef04d268cb162add20d2dd) does not rectify the issue.
Comment 2 Baptiste Daroussin freebsd_committer 2021-09-15 13:04:38 UTC
Thank you for reporting, we are trying to figure out the problem which only appears in poudriere
Comment 3 Alastair Hogge 2021-09-17 03:20:59 UTC
(In reply to Baptiste Daroussin from comment #2)

Thanks mate