Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
List-MoreUtils-XS emerge fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 353

PostPosted: Wed Dec 06, 2017 1:50 am    Post subject: List-MoreUtils-XS emerge fails Reply with quote

Trying to install gscan2pdf. It has a long list of dependencies. I got through about half or so.

Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-perl/List-MoreUtils-XS-0.426.0::gentoo  USE="{-test}" 0 KiB
[ebuild  N     ] dev-perl/PDF-API2-2.31.0::gentoo  USE="-examples" 0 KiB
[ebuild  N     ] dev-perl/List-MoreUtils-0.426.0::gentoo  USE="xs {-test}" 0 KiB
[ebuild  N     ] dev-perl/Module-Build-Tiny-0.39.0::gentoo  USE="{-test}" 0 KiB
[ebuild  N     ] dev-perl/Readonly-2.10.0::gentoo  USE="{-test}" 0 KiB
[ebuild  N     ] dev-perl/ExtUtils-PkgConfig-1.160.0::gentoo  0 KiB
[ebuild  N     ] dev-perl/glib-perl-1.326.0::gentoo  0 KiB
[ebuild  N     ] dev-perl/Cairo-1.106.0::gentoo  USE="{-test}" 0 KiB
[ebuild  N     ] dev-perl/Image-Sane-0.140.0::gentoo  USE="-examples {-test}" 0 KiB
[ebuild  N     ] dev-perl/Pango-1.227.0::gentoo  USE="-examples -minimal {-test}" 0 KiB
[ebuild   R    ] media-gfx/imagemagick-6.9.9.23:0/6.9.9.23::gentoo  USE="X bzip2 corefonts cxx jpeg lcms openmp pango perl* png svg tiff truetype xml zlib -djvu -fftw -fontconfig -fpx -graphviz -hdri -jbig -jpeg2k -lqr -lzma -opencl -openexr -postscript -q32 -q8 -raw -static-libs {-test} -webp -wmf" 0 KiB
[ebuild  N     ] dev-perl/Gtk2-1.249.920::gentoo  USE="{-test}" 0 KiB
[ebuild  N     ] media-gfx/gtkimageview-1.6.4::gentoo  USE="-examples -static-libs" 0 KiB
[ebuild  N     ] x11-libs/goocanvas-1.0.0::gentoo  USE="-examples" 0 KiB
[ebuild  N     ] dev-perl/Gtk2-Ex-Simple-List-0.500.0-r2::gentoo  USE="-examples {-test}" 0 KiB
[ebuild  N     ] dev-perl/Gtk2-ImageView-0.50.0-r2::gentoo  USE="-examples {-test}" 0 KiB
[ebuild  N     ] dev-perl/Goo-Canvas-0.60.0-r2::gentoo  USE="-examples" 0 KiB
[ebuild  N     ] dev-perl/Gtk2-Ex-PodViewer-0.180.0-r2::gentoo  0 KiB
[ebuild  N     ] media-gfx/gscan2pdf-1.8.10::gentoo  0 KiB


Then:

Code:

* Package:    dev-perl/List-MoreUtils-XS-0.426.0
 * Repository: gentoo
 * Maintainer: perl@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking List-MoreUtils-XS-0.426.tar.gz to /var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/work
>>> Source unpacked in /var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/work
>>> Preparing source in /var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/work/List-MoreUtils-XS-0.426 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/work/List-MoreUtils-XS-0.426 ...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/image/
Checking whether pureperl is required... no
Checking for cc... ld: -pipe: unknown option
ld: use the --help option for usage information

Can't produce loadable XS module at inc/Config/AutoConf/LMU.pm line 73.
 * ERROR: dev-perl/List-MoreUtils-XS-0.426.0::gentoo failed (configure phase):
 *   Unable to build!
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called src_configure
 *   environment, line 964:  Called perl-module_src_configure
 *   environment, line 518:  Called die
 * The specific snippet of code:
 *               perl Makefile.PL "$@" <<< "${pm_echovar}" || die "Unable to build!";
 *
 * If you need support, post the output of `emerge --info '=dev-perl/List-MoreUtils-XS-0.426.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-perl/List-MoreUtils-XS-0.426.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/work/List-MoreUtils-XS-0.426'
 * S: '/var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/work/List-MoreUtils-XS-0.426'


Looks like a linker problem but a change to ld.bfd did not work either. Failed at about the same place but with different errors.

make.conf:

Code:

CFLAGS="-O2 -pipe -march=native"

GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"

CFLAGS="${CFLAGS} -flto=4 -fuse-linker-plugin -fomit-frame-pointer ${GRAPHITE} -ftree-vectorize"

CXXFLAGS="${CFLAGS}"

LDFLAGS="${LDFLAGS}  ${CFLAGS} -Wl,-flto"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"

# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.


#    bluray \


USE="X \
    fuse \
    gnome \
    gphoto2 \
    graphite lto \
    cleartype corefonts caps \
    ffmpeg \
    mtp \
    nfs \
    usb \
    hpcups \
    -qt3 -qt4 \
    -multilib"

AR="gcc-ar"
NM="gcc-nm"
RANLIB="gcc-ranlib"

CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

ACCEPT_KEYWORDS="~amd64"

PORTDIR="/usr/portage"

DISTDIR="${PORTDIR}/distfiles"

PKGDIR="${PORTDIR}/packages"

MAKEOPTS="-j3"

ALSA_CARDS="hda-intel"

GPSD_PROTOCOLS="garmin garmintxt gpsclock nmea sirf ublox ubx"

XTABLES_ADDONS=""

CALLIGRA_FEATURES=""

COLLECTD_PLUGINS=""

INPUT_DEVICES="libinput"

LCD_DEVICES=""

VIDEO_CARDS="intel i965 fbdev void"

ACCEPT_LICENSE="*"

SANE_BACKENDS="hp net"


emerge --info

Code:

Portage 2.3.16 (python 3.5.4-final-0, default/linux/amd64/13.0/no-multilib, gcc-7.2.0, glibc-2.26-r3, 4.14.0 x86_64)
=================================================================
System uname: Linux-4.14.0-x86_64-Intel-R-_Core-TM-_i7-6500U_CPU_@_2.50GHz-with-gentoo-2.4.1
KiB Mem:    16339088 total,    218124 free
KiB Swap:   14648316 total,  12388604 free
Head commit of repository gentoo: 878a91292bfd59f34f1e1b80350dc34aa61b5a24

sh bash 4.4_p12
ld GNU gold (Gentoo 2.29.1 p3 2.29.1) 1.14
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.10.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.4.0::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.9.0-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

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

local
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -flto=4 -fuse-linker-plugin -fomit-frame-pointer -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -flto=4 -fuse-linker-plugin -fomit-frame-pointer -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed  -O2 -pipe -march=native -flto=4 -fuse-linker-plugin -fomit-frame-pointer -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -Wl,-flto"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo caps cdda cdr cleartype cli colord corefonts cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran fuse gdbm gif glamor gnome gnome-keyring gnome-online-accounts gphoto2 gpm graphite gstreamer gtk hpcups iconv introspection ipv6 jpeg lcms ldap libnotify libsecret lto mad mng modules mp3 mp4 mpeg mtp nautilus ncurses nfs nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt5 readline sdl seccomp session spell ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt gpsclock nmea sirf ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="intel i965 fbdev void"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Thanks for help.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16928
Location: here

PostPosted: Wed Dec 06, 2017 7:13 am    Post subject: Reply with quote

Your problem is
Code:
LDFLAGS="-Wl,-O1 -Wl,--as-needed  -O2 -pipe -march=native -flto=4 -fuse-linker-plugin -fomit-frame-pointer -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -Wl,-flto"

You mixed ldflags and cflags, defaults ldflags are
Code:
LDFLAGS="-Wl,-O1 -Wl,--as-needed"

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 353

PostPosted: Thu Dec 07, 2017 5:31 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Your problem is
Code:
LDFLAGS="-Wl,-O1 -Wl,--as-needed  -O2 -pipe -march=native -flto=4 -fuse-linker-plugin -fomit-frame-pointer -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -Wl,-flto"

You mixed ldflags and cflags, defaults ldflags are
Code:
LDFLAGS="-Wl,-O1 -Wl,--as-needed"


Thanks for the reply. I have tried to make this so but I get the same error. Even though I have attempted to set LDFLAGS as you say.

Code:

gene@go:~# emerge --info
...
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
...


How or where else can -pipe be pulled in?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum