Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616704 - sci-libs/openlibm-0.5.4 fails to build - Makefile:20: x86/Make.files: No such file or directory
Summary: sci-libs/openlibm-0.5.4 fails to build - Makefile:20: x86/Make.files: No such...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2017-04-27 05:45 UTC by Michael Casey
Modified: 2020-10-27 23:23 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,5.49 KB, application/x-info)
2017-04-27 05:45 UTC, Michael Casey
Details
patch for openlibm-0.5.4.ebuild (openlibm-0.5.4-ebuild-x86-ARCH.patch,488 bytes, patch)
2019-02-27 17:39 UTC, Will Simoneau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Casey 2017-04-27 05:45:40 UTC
Created attachment 470992 [details]
emerge --info

Updating openlibm from 0.3 to 0.5.4 fails, apparently due to a missing Make file. It appears based on the Make.inc file that maybe x86 should be i387? Note julia-0.5 already installs fine. 

* Package:    sci-libs/openlibm-0.5.4
 * Repository: gentoo
 * Maintainer: sci@gentoo.org
 * USE:        abi_x86_32 elibc_glibc kernel_linux userland_GNU x86
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Using following Fortran compiler:
 *   F77: i686-pc-linux-gnu-gfortran
 *   FC:  i686-pc-linux-gnu-gfortran
Makefile:20: x86/Make.files: No such file or directory
make: *** No rule to make target 'x86/Make.files'.  Stop.
 * ERROR: sci-libs/openlibm-0.5.4::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/openlibm-0.5.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/openlibm-0.5.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/openlibm-0.5.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/openlibm-0.5.4/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/openlibm-0.5.4/work/openlibm-0.5.4'
 * S: '/var/tmp/portage/sci-libs/openlibm-0.5.4/work/openlibm-0.5.4'
-----------------
emerge -pqv '=sci-libs/openlibm-0.5.4::gentoo':

[ebuild  r  U ] sci-libs/openlibm-0.5.4 [0.3] USE="-static-libs" 
[ebuild  rR   ] dev-lang/julia-0.5.0-r3  USE="-emacs" 

The following packages are causing rebuilds:

  (sci-libs/openlibm-0.5.4:0/0.5.4.0::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (dev-lang/julia-0.5.0-r3:0/0::gentoo, ebuild scheduled for merge)

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
Comment 1 Michael Casey 2017-04-27 05:48:24 UTC
emerge --info

Portage 2.3.3 (python 2.7.12-final-0, default/linux/x86/13.0/desktop, gcc-5.4.0, glibc-2.23-r3, 4.9.16-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.16-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.3
KiB Mem:     2069192 total,    515452 free
KiB Swap:    3911792 total,   3911392 free
Timestamp of repository gentoo: Thu, 27 Apr 2017 03:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync24.us.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes

my_Local_Portage_Overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

Installed sets: @system
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* PUEL skype-eula dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/mnt/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distfiles.gentoo.org"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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="X a52 aac acpi alsa apm berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv ipv6 java jpeg lcms ldap lm_sensors mad midi mmx mng modules mp3 mp4 mpeg ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf pmu png ppds qt3support qt4 readline sdl seccomp session smp sndfile spell sse sse2 ssl ssse3 startup-notification svg tcpd tiff truetype udev unicode upower usb vorbis wxwidgets x264 x86 xattr xcb xml xv xvid xvmc zlib" ABI_X86="32" ALSA_CARDS="usb-audio" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 2 Will Simoneau 2019-02-27 17:39:28 UTC
Created attachment 566668 [details, diff]
patch for openlibm-0.5.4.ebuild

The problem is that openlibm's Makefile and Make.inc use $ARCH for their own purposes. This results in a namespace collision with the $ARCH used by portage and set in the ebuild environment.

On amd64 (the only other arch this is keyworded for), the build works by happy accident: ARCH=amd64 just happens to be a valid choice as far as openlibm is concerned.

It looks like a simple fix would be to pass an empty ARCH= to make, since Make.inc seems to have appropriate logic to deal with that scenario. With the attached patch applied, openlibm-0.5.4 builds OK for me on both x86 and amd64.
Comment 3 Larry the Git Cow gentoo-dev 2020-10-27 23:23:53 UTC
The bug has been closed via the following commit(s):

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

commit e87430c37972599888fed4a67fcad4a409225c64
Author:     Aisha Tammy <gentoo@aisha.cc>
AuthorDate: 2020-10-23 12:06:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-27 23:23:46 +0000

    sci-libs/openlibm: drop old version
    
    it fails to build
    
    Closes: https://bugs.gentoo.org/616704
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
    Closes: https://github.com/gentoo/gentoo/pull/18009
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/openlibm/Manifest              |  1 -
 sci-libs/openlibm/openlibm-0.5.4.ebuild | 23 -----------------------
 2 files changed, 24 deletions(-)