Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602092 - app-arch/dpkg-1.17.26 on armv7a-hardfp-musl-vanilla - checking dpkg architecture name... configure: error: cannot determine host dpkg architecture
Summary: app-arch/dpkg-1.17.26 on armv7a-hardfp-musl-vanilla - checking dpkg architect...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on: 602440
Blocks: musl-porting 606980
  Show dependency tree
 
Reported: 2016-12-09 08:36 UTC by Michael Jones
Modified: 2021-06-09 06:16 UTC (History)
1 user (show)

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


Attachments
build.log.gz (build.log.gz,8.69 KB, application/gzip)
2016-12-09 08:36 UTC, Michael Jones
Details
config.log (config.log,193.07 KB, text/plain)
2016-12-09 08:37 UTC, Michael Jones
Details
environment (environment,101.11 KB, text/plain)
2016-12-09 08:38 UTC, Michael Jones
Details
dpkg-1.18.23.ebuild-602092.patch (dpkg-1.18.23.ebuild-602092.patch,679 bytes, patch)
2017-04-27 14:24 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Jones 2016-12-09 08:36:12 UTC
Created attachment 455560 [details]
build.log.gz

armv7a-hardfp-musl-vanilla portage # emerge --info dpkg
Portage 2.3.1 (python 2.7.12-final-0, hardened/linux/musl/arm/armv7a, gcc-4.9.4, musl-1.1.15-r2, 4.7.10-hardened armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.7.10-hardened-armv7l-with-gentoo-2.3
KiB Mem:    65970600 total,  23359044 free
KiB Swap:   10485756 total,  10471000 free
Timestamp of repository gentoo: Fri, 09 Dec 2016 08:22:13 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::musl
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.4-r99::musl
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::musl (virtual/os-headers)
sys-libs/musl:            1.1.15-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

musl
    location: /usr/portage-overlays/musl
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/musl.git
    masters: gentoo

Installed sets: @archive, @arm-base-system, @portage, @vcs
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-musleabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-musleabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage-distfiles"
EMERGE_DEFAULT_OPTS=" --jobs --keep-going --newuse --deep --backtrack=3000 --complete-graph --with-bdeps=y"
FCFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j30"
PKGDIR="/usr/portage-packages"
PORTAGE_COMPRESS="xz"
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="a52 aac acpi alsa apng arm avahi bindist branding cairo cdda cdr cli cracklib crypt cxx d-pau dbus dconf dri dts dvd dvdr egl emboss encode exif fam ffmpeg flac fortran gcj gd gif gnome-keyring gpm gstreamer gtk gudev iconv icu ipv6 jpeg lcms libnotify libsecret lm_sensors mad minizip mng modules mp3 mp4 mpeg ncurses networkmanager nls nptl ogg opengl openmp pam pango pax_kernel pcre pdf pic png policykit ppds pulseaudio python qt5 readline samba sdl seccomp session sound spell sqlite ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis wayland widevine wifi xattr xcb xinerama xml xv xvid zeroconf zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="coreboot efi-64 emu qemu pc" INPUT_DEVICES="evdev mouse keyboard libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm aarch64 x86_64" QEMU_USER_TARGETS="arm aarch64 x86_64" RUBY_TARGETS="ruby21 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa modesetting fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Michael Jones 2016-12-09 08:37:14 UTC
Created attachment 455562 [details]
config.log

checking for fallocate... yes
checking for posix_fallocate... yes
checking for posix_fadvise... yes
checking dpkg cpu type... armv7a
configure: WARNING: armv7a not found in cputable
checking dpkg operating system type... linux-musleabi
configure: WARNING: linux-musleabi not found in ostable
checking dpkg architecture name... configure: error: cannot determine host dpkg architecture

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-arch/dpkg-1.17.26/work/dpkg-1.17.26/config.log
 * ERROR: app-arch/dpkg-1.17.26::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  115:  Called src_configure
 *             environment, line 2695:  Called econf '--enable-nls' '--enable-unicode' '--enable-update-alternatives' '--with-bz2' '--with-liblzma' '--without-selinux' '--with-zlib' '--disable-compiler-warnings' '--disable-dselect' '--disable-silent-rules' '--disable-start-stop-daemon' '--localstatedir=/var'
 *        phase-helpers.sh, line  662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *   		die "$@"
 *
 * If you need support, post the output of `emerge --info '=app-arch/dpkg-1.17.26::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-arch/dpkg-1.17.26::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-arch/dpkg-1.17.26/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/app-arch/dpkg-1.17.26/temp/environment'.
 * Working directory: '/var/tmp/portage/app-arch/dpkg-1.17.26/work/dpkg-1.17.26'
 * S: '/var/tmp/portage/app-arch/dpkg-1.17.26/work/dpkg-1.17.26'
Comment 2 Michael Jones 2016-12-09 08:38:09 UTC
Created attachment 455564 [details]
environment
Comment 3 Michael Jones 2016-12-09 08:39:22 UTC
Also fails on armv7a-hardfp-musl-hardened.

Both environments running inside qemu-arm.

# /usr/bin/qemu-arm --version
qemu-arm version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers
server-blade-one @arm-builds #
Comment 4 Felix Janda 2016-12-09 11:47:26 UTC
Current git works fine. Please try whether the 1.18.* versions work.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2016-12-15 11:10:57 UTC
Try 1.18.15 please.
Comment 6 Felix Janda 2016-12-17 18:48:22 UTC
Still does not work with app-arch/dpkg-1.18.15. It is also not fixed in
git. It had worked for me before because I tested without passing
--host to configure.

This bug would not occur if bug 602440 was fixed and the arch tuple was

armv7a-*-linux-musleabihf

It would also be possible to add a eabi-musl-linux-arm tuple to
data/tupletable and data/ostable but then our tuples would wrongly be
detected as being softfloat.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2016-12-29 10:43:26 UTC
(In reply to Felix Janda from comment #6)
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2017-04-27 14:24:50 UTC
Created attachment 471008 [details, diff]
dpkg-1.18.23.ebuild-602092.patch

Could you test this here patch. It might hack in the stuff and things that DPKG_ARCHITECTURE expects.
Comment 9 Larry the Git Cow gentoo-dev 2021-06-09 06:16:35 UTC
The bug has been closed via the following commit(s):

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

commit ef0b167db71fe54ade82427b9fc29b24f326bc49
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-06-09 06:09:38 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-06-09 06:16:18 +0000

    app-arch/dpkg: drop old
    
    Bug: https://bugs.gentoo.org/783918
    Closes: https://bugs.gentoo.org/602092
    Closes: https://bugs.gentoo.org/732788
    Package-Manager: Portage-3.0.19, Repoman-3.0.3
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 app-arch/dpkg/Manifest                             |  7 --
 app-arch/dpkg/dpkg-1.19.0.5.ebuild                 | 87 --------------------
 app-arch/dpkg/dpkg-1.19.6.ebuild                   | 91 --------------------
 app-arch/dpkg/dpkg-1.19.7.ebuild                   | 91 --------------------
 app-arch/dpkg/dpkg-1.20.0.ebuild                   | 90 --------------------
 app-arch/dpkg/dpkg-1.20.2.ebuild                   | 90 --------------------
 app-arch/dpkg/dpkg-1.20.3.ebuild                   | 90 --------------------
 app-arch/dpkg/dpkg-1.20.5.ebuild                   | 96 ----------------------
 .../dpkg-1.18.12-dpkg_buildpackage-test.patch      | 10 ---
 9 files changed, 652 deletions(-)