Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930513 - sys-apps/busybox-1.36.1-r1: make[1]: *** [scripts/Makefile.host:104: scripts/basic/fixdep] Error 135
Summary: sys-apps/busybox-1.36.1-r1: make[1]: *** [scripts/Makefile.host:104: scripts/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lfs-tracker
  Show dependency tree
 
Reported: 2024-04-23 18:05 UTC by Ben Kohler
Modified: 2024-07-03 03:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,2.48 KB, text/plain)
2024-04-23 18:05 UTC, Ben Kohler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler gentoo-dev 2024-04-23 18:05:55 UTC
Created attachment 891571 [details]
build.log

On our x86 autobuilds of i486/installcd-stage1 and (i686/)hardened/admincd-stage1, we are seeing a busybox build failure.

The failure is not entirely predictable, some attempts succeed.

emerge --info busybox
Portage 3.0.61 (python 3.11.8-final-0, default/linux/x86/23.0/i486, gcc-13, glibc-2.38-r10, 6.6.13-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.13-gentoo-dist-x86_64-AMD_Ryzen_9_7950X3D_16-Core_Processor-with-glibc2.38
KiB Mem:   131093248 total,  40885516 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 23 Apr 2024 09:00:00 +0000
Head commit of repository gentoo: 9dc195783bada7a7209b9527ca87207d986ee43b
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.3::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.3.1_p20240209::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/x86/binpackages/23.0/i486

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="@FREE intel-ucode shmux ipw3945 ipw2100-fw ISSL no-source-code NOSA NVIDIA-r2 freedist NVIDIA-r1 Atmel MicroChip-SDCC LSI-tw_cli unRAR Broadcom AVASYS JSON ipw2200-fw linux-fw-redistributable torque-2.5 mpich2 mm CPL-0.5 matplotlib SMAIL LLGPL-2.1 perforce BSD-with-disclosure RSA AMPAS inner-net TeX Sendmail docbook openafs-krb5-a UCAR-Unidata ipadic BSD-with-attribution Khronos-CLHPP Princeton Sendmail-Open-Source xboing par Interbase-1.0 JDOM xtrs iASL URT otter Sympow-BSD NEWLIB Flashpix NCSA-HDF bufexplorer.vim Mini-XML Snd icu TeX-other-free gd the-Click-license PCRE tablelist VTK feh LambdaMOO MIT-with-advertising curl DES IDPL dom4j unicode XC scanlogd tcltk flexmock Info-ZIP PHP-2.02 Emacs RtMidi JOVE Allegro FVWM CDDL-1.1 LPPL-1.3 Toyoda xbatt BEER-WARE ElementTree psutils sash tm-align Ispell libpng pngnq Xdebug Openwall FLEX lsof BZIP2 gsm LIBGLOSS HTML-Tidy libtiff symlinks ZSH DUMB-0.9.3 Crypt-IDEA photopc pngcrush trio NPSL-0.95 File-MMagic Old-MIT ErlPL-1.1 libpng2 SSLeay BSD-1 boehm-gc coldspringharbor JasPer2.0 minpack alternate FLTK tcp_wrappers_license buddy repoze sdlsasteroids netcat Spencer-99 Time-modules w3m NCSA-AMD TextMate-bundle rwpng AIFFWriter.m wm2 ngrep CAOSL BSD-2-with-patent libmng FastCGI rc imagemagick Time-Format regexp-UofT LPPL-1.0 CDDL-Schily freetts rdisc AGPL-3 ZLIB GPL-1+ LGPL-2+ LGPL-3+ UoI-NCSA OFL-1.1 wxWinLL-3 PSF-2 OSL-2.1 EPL-1.0 GPL-2 MPL-1.0 MIT-0 MIT BSD ISC POSTGRESQL EUPL-1.1 Artistic GPL-2+ APL-1.0 GPL-3 nethack PHP-3 W3C HPND IBM EUPL-1.2 QPL-1.0 LPPL-1.3c LGPL-2 AFL-3.0 MPL-1.1 EPL-2.0 Apache-2.0 MirOS BSD-2 MPL-2.0 Ms-RL CPL-1.0 Apache-1.1 CDDL GPL-3+ Sleepycat Ms-PL IPAfont Boost-1.0 LGPL-3 ZPL GPL-1 LPL-1.02 LGPL-2.1+ 0BSD LGPL-2.1 CNRI CPAL-1.0 PHP-3.01 Unlicense Artistic-2 APSL-2 Unicode-DFS-2016 ECL-2.0 UPL-1.0 AGPL-3+ Zend-2.0 OSL-2.1 EPL-1.0 CeCILL-B MPL-1.0 BSD-4 EUPL-1.1 gnuplot IBM EUPL-1.2 QPL-1.0 AGPL-3 GPL-2-with-font-exception ZLIB GPL-1+ LGPL-2+ LGPL-2.1-with-linking-exception LGPL-3+ UoI-NCSA gcc-runtime-library-exception-3.1 GPL-2+-with-openssl-exception OPENLDAP Ruby-BSD Apache-2.0-with-LLVM-exceptions FTL PSF-2 GPL-2 MIT LGPL-2-with-linking-exception BSD CC0-1.0 ISC GPL-2-with-linking-exception libstdc++ GPL-3 GPL-2+ Ruby Nokia-Qt-LGPL-Exception-1.1 IJG W3C WTFPL-2 HPND PSF-2.4 libgcc GPL-3+-with-autoconf-exception CeCILL-2 Transmission-OpenSSL-exception LGPL-2 GPL-2+-with-Pyinstaller-Bootloader-exception Apache-2.0 BSD-2 UPX-exception vim GPL-2-with-exceptions MPL-2.0 qwt GPL-2-with-MySQL-FLOSS-exception GPL-3+ PYTHON Sleepycat wxWinLL-3.1 SGI-B-2.0 Boost-1.0 LGPL-3 ZPL FSFAP tanuki-community GPL-1 GPL-2-with-classpath-exception Clear-BSD GPL-3-with-font-exception LGPL-2.1+ LGPL-2.1 UPL-1.0 Unlicense Artistic-2 GPL-3+-with-font-exception GPL-3-with-openssl-exception GPL-2+-with-eCos-exception-2 Clarified-Artistic public-domain metapackage Unicode-DFS-2016 ECL-2.0 LGPL-3-with-linking-exception AGPL-3+ OSL-1.1 LPPL-1.3a AFL-3.0 MPL-1.1 EPL-2.0 Apache-1.0 Ms-RL CPL-1.0 Apache-1.1 CDDL FraunhoferFDK NPL-1.1 Ms-PL CeCILL-C LPL-1.02 AFL-2.1 CNRI CPAL-1.0 PHP-3.01 APSL-2 OSL-2.0 openssl LPPL-1.2 myspell-en_CA-KevinAtkinson quake1-textures MaxMind2 CC-SA-1.0 CC-PD Texinfo-manual UbuntuFontLicense-1.0 man-pages-posix-2013 LDP-1a vlgothic wxWinFDL-3 BAEKMUK CC-BY-1.0 mplus-fonts LDP-1 CC-BY-SA-1.0 BitstreamVera man-pages CC-BY-3.0 GPL-1+ OFL-1.1 GPL-2 FDL-1.3+ GPL-3 GPL-2+ FDL-1.2 CC-BY-2.5 CC-BY-SA-3.0 CC-BY-SA-2.5 OFL GPL-3+ CC-BY-SA-4.0 FDL-1.1+ FDL-1.3 IPAfont FDL-1.1 Free-Art-1.2 CC-BY-SA-2.0 GPL-1 Free-Art-1.3 FDL-1.2+ CC-BY-2.0 Arphic OPL CC-BY-4.0 qlogic-fibre-channel-firmware bonnie Mellanox-AS-IS bh-luxi"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -march=i486 -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -march=i486 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -march=i486 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i486 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl alsa bindist bzip2 compile-locales crypt fbcon gdbm iconv ipv6 libtirpc livecd lvm ncurses nls openmp pam pcre portaudio readline seccomp socks5 ssl test-rust unicode x86 xattr xml zlib" ABI_X86="32" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-23 18:10:38 UTC
I sent a patch to the busybox ML to fix the error handling so it actually shows a proper error for this.

TL;DR: the ebuild doesn't seem to respect HOSTCFLAGS and the ebuild needs to do `append-lfs-flags` for both regular CFLAGS and also HOSTCFLAGS.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-23 21:35:04 UTC
(In reply to Sam James from comment #1)
> I sent a patch to the busybox ML to fix the error handling so it actually
> shows a proper error for this.
> 

For that part: http://lists.busybox.net/pipermail/busybox/2024-April/090735.html
Comment 3 Larry the Git Cow gentoo-dev 2024-04-26 18:07:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25e0a98682b9ab600cb3a6ea3fc3834ce1cce8f6

commit 25e0a98682b9ab600cb3a6ea3fc3834ce1cce8f6
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-04-26 18:04:46 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-04-26 18:06:55 +0000

    sys-apps/busybox: rework toolchain handling
    
    Pass toolchain vars as arguments to make to avoid using sed on Makefile.
    
    Unsilence make so we can see what is actually being executed in
    src_configure.
    
    Append -D_FILE_OFFSET_BITS=64 to BUILD_CFLAGS and pass this as
    HOSTCFLAGS to resolve LFS issue on 32-bit archs.
    
    Closes: https://bugs.gentoo.org/930513
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/busybox/busybox-1.36.1-r1.ebuild | 45 +++++++++++++++++++------------
 sys-apps/busybox/busybox-1.36.1-r2.ebuild | 45 +++++++++++++++++++------------
 sys-apps/busybox/busybox-9999.ebuild      | 45 +++++++++++++++++++------------
 3 files changed, 84 insertions(+), 51 deletions(-)