Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

emerging libpcre failed at configure phase

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Scriptod
n00b
n00b
Posts: 26
Joined: Thu Sep 05, 2019 12:09 am

emerging libpcre failed at configure phase

  • Quote

Post by Scriptod » Fri Jul 23, 2021 1:31 pm

Hello,

So I was building the world by the handbook, and it seems like it couldn't emerge libpcre :

Code: Select all

>>>  '/var/tmp/portage/dev-libs/libpcre-8.44/temp/build.log'

 * Messages for package dev-libs/libpcre-8.44:

 * ERROR: dev-libs/libpcre-8.44::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  127:  Called src_configure
 *             environment, line 1652:  Called multilib-minimal_src_configure
 *             environment, line 1047:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 1300:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line  977:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line  975:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  367:  Called multilib-minimal_abi_src_configure
 *             environment, line 1041:  Called multilib_src_configure
 *             environment, line 1517:  Called econf '--with-match-limit-recursion=8192' '--enable-pcregrep-libbz2' '--enable-cpp' '--enable-jit' '--enable-pcregrep-jit' '--disable-pcre16' '--disable-pcre32' '--disable-pcretest-libedit' '--enable-pcretest-libreadline' '--disable-static' '--enable-utf' '--enable-unicode-properties' '--enable-pcregrep-libz' '--enable-pcre8' '--enable-shared'
 *        phase-helpers.sh, line  711:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/libpcre-8.44::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libpcre-8.44::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libpcre-8.44/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libpcre-8.44/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libpcre-8.44/work/pcre-8.44-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/libpcre-8.44/work/pcre-8.44'

Here's the output of emerge --info '=dev-libs/libpcre-8.44::gentoo' :

Code: Select all

Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1, gcc-10.3.0, glibc-2.33-r1, 4.19.0-17-amd64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.0-17-amd64-x86_64-Intel-R-_Pentium-R-_CPU_G630_@_2.70GHz-with-glibc2.33
KiB Mem:     3926792 total,    195644 free
KiB Swap:    4194300 total,   3361104 free
Timestamp of repository gentoo: Thu, 22 Jul 2021 17:30:01 +0000
Head commit of repository gentoo: 38e02eb3ac57e490bec4947d8a4b8ef2670f238d
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          3.9.5_p2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -02 -pipe"
CHOST="x86_64-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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -02 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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 amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

dev-libs/libpcre-8.44::gentoo was built with the following:
USE="bzip2 cxx jit readline recursion-limit (split-usr) static-libs (unicode) zlib -libedit -pcre16 -pcre32" ABI_X86="(64) -32 (-x32)"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"

And here's the build log:

Code: Select all

 * Package:    dev-libs/libpcre-8.44
 * Repository: gentoo
 * Maintainer: base-system@gentoo.org
 * Upstream:   https://bugs.exim.org/describecomponents.cgi?product=PCRE
 * USE:        abi_x86_64 amd64 bzip2 cxx elibc_glibc jit kernel_linux readline recursion-limit split-usr unicode userland_GNU zlib
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking pcre-8.44.tar.bz2 to /var/tmp/portage/dev-libs/libpcre-8.44/work
>>> Source unpacked in /var/tmp/portage/dev-libs/libpcre-8.44/work
>>> Preparing source in /var/tmp/portage/dev-libs/libpcre-8.44/work/pcre-8.44 ...
 * Applying libpcre-8.41-fix-stack-size-detection.patch ...                                                                          [ ok ]
 * Running elibtoolize in: pcre-8.44/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.3 patch ...
 *   Applying ppc64le/2.4.4 patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/libpcre-8.44/work/pcre-8.44 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
 * econf: updating pcre-8.44/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating pcre-8.44/config.guess with /usr/share/gnuconfig/config.guess
/var/tmp/portage/dev-libs/libpcre-8.44/work/pcre-8.44/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/libpcre-8.44 --htmldir=/usr/share/doc/libpcre-8.44/html --with-sysroot=/ --libdir=/usr/lib64 --with-match-limit-recursion=8192 --enable-pcregrep-libbz2 --enable-cpp --enable-jit --enable-pcregrep-jit --disable-pcre16 --disable-pcre32 --disable-pcretest-libedit --enable-pcretest-libreadline --disable-static --enable-utf --enable-unicode-properties --enable-pcregrep-libz --enable-pcre8 --enable-shared
checking for a BSD-compatible install... /usr/lib/portage/python3.9/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/dev-libs/libpcre-8.44/work/pcre-8.44-abi_x86_64.amd64':
configure: error: C compiler cannot create executables
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/libpcre-8.44/work/pcre-8.44-abi_x86_64.amd64/config.log
 * ERROR: dev-libs/libpcre-8.44::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  127:  Called src_configure
 *             environment, line 1652:  Called multilib-minimal_src_configure
 *             environment, line 1047:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 1300:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line  977:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line  975:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  367:  Called multilib-minimal_abi_src_configure
 *             environment, line 1041:  Called multilib_src_configure
 *             environment, line 1517:  Called econf '--with-match-limit-recursion=8192' '--enable-pcregrep-libbz2' '--enable-cpp' '--enable-jit' '--enable-pcregrep-jit' '--disable-pcre16' '--disable-pcre32' '--disable-pcretest-libedit' '--enable-pcretest-libreadline' '--disable-static' '--enable-utf' '--enable-unicode-properties' '--enable-pcregrep-libz' '--enable-pcre8' '--enable-shared'
 *        phase-helpers.sh, line  711:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/libpcre-8.44::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libpcre-8.44::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libpcre-8.44/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libpcre-8.44/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libpcre-8.44/work/pcre-8.44-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/libpcre-8.44/work/pcre-8.44'
What am I doing wrong?
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31984
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Fri Jul 23, 2021 1:44 pm

In your CFLAGS you have -02 (with zero) but must be -O2 ('o' character uppercase)
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Scriptod
n00b
n00b
Posts: 26
Joined: Thu Sep 05, 2019 12:09 am

  • Quote

Post by Scriptod » Mon Jul 26, 2021 8:28 am

fedeliallalinea wrote:In your CFLAGS you have -02 (with zero) but must be -O2 ('o' character uppercase)
Damn, I never thought I could miss that one.

Thank you very much! :wink:
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31984
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Mon Jul 26, 2021 9:21 am

Moved from Installing Gentoo to Portage & Programming.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy