Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509400 - dev-libs/apr-1.5.1-r1: unrecognized command line option '-no-cpp-precomp'
Summary: dev-libs/apr-1.5.1-r1: unrecognized command line option '-no-cpp-precomp'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-02 15:36 UTC by Linlin Yan
Modified: 2020-12-14 20:43 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Linlin Yan 2014-05-02 15:36:14 UTC
When upgrading gentoo prefix system on MacOS (10.9.2), it failed at configure phase of =dev-libs/apr-1.5.1-r1, with the following messages:

>>> Emerging (1 of 2) dev-libs/apr-1.5.1-r1
 * apr-1.5.1.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking apr-1.5.1.tar.bz2 to /Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/work
>>> Source unpacked in /Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/work
>>> Preparing source in /Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/work/apr-1.5.1 ...
 * Applying apr-1.5.0-mint.patch ...                                                                                                                                          [ ok ]
 * Applying apr-1.5.0-libtool.patch ...                                                                                                                                       [ ok ]
 * Applying apr-1.5.0-cross-types.patch ...                                                                                                                                   [ ok ]
 * Applying apr-1.5.0-sysroot.patch ...                                                                                                                                       [ ok ]
 * Applying apr-1.5.1-parallel_make_install.patch ...                                                                                                                         [ ok ]
 * Running eautoreconf in '/Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/work/apr-1.5.1' ...
!!! Section 'gentoo' in repos.conf has name different from repository name 'gentoo_prefix' set inside repository
!!! Section 'gentoo' in repos.conf has name different from repository name 'gentoo_prefix' set inside repository
!!! Section 'gentoo' in repos.conf has name different from repository name 'gentoo_prefix' set inside repository
 * Running glibtoolize --install --copy --force ...                                                                                                                           [ ok ]
 * Running aclocal -I build ...                                                                                                                                               [ ok ]
 * Running autoconf -I build ...                                                                                                                                              [ ok ]
 * Running autoheader -I build ...                                                                                                                                            [ ok ]
 * Running elibtoolize in: apr-1.5.1/
 *   Applying target-nm/2.4.2 patch ...
 *   Applying darwin-conf/2.2.4 patch ...
 * Running elibtoolize in: apr-1.5.1/build/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.2 patch ...
 *   Darwin patch set 'darwin-conf' failed to apply!
 * Applying config.layout.patch ...                                                                                                                                           [ ok ]
>>> Source prepared.
>>> Configuring source in /Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/work/apr-1.5.1 ...
 * econf: updating apr-1.5.1/build/config.guess with /Users/yanll/Gentoo/usr/share/gnuconfig/config.guess
 * econf: updating apr-1.5.1/build/config.sub with /Users/yanll/Gentoo/usr/share/gnuconfig/config.sub
./configure --prefix=/Users/yanll/Gentoo/usr --build=x86_64-apple-darwin13 --host=x86_64-apple-darwin13 --mandir=/Users/yanll/Gentoo/usr/share/man --infodir=/Users/yanll/Gentoo/usr/share/info --datadir=/Users/yanll/Gentoo/usr/share --sysconfdir=/Users/yanll/Gentoo/etc --localstatedir=/Users/yanll/Gentoo/var/lib --enable-layout=gentoo --enable-nonportable-atomics --enable-posix-shm --enable-threads --disable-static --with-devrandom=/dev/urandom
checking build system type... x86_64-apple-darwin13
checking host system type... x86_64-apple-darwin13
checking target system type... x86_64-apple-darwin13
Configuring APR library
Platform: x86_64-apple-darwin13
checking for working mkdir -p... yes
APR Version: 1.5.1
checking for chosen layout... gentoo
checking for x86_64-apple-darwin13-gcc... x86_64-apple-darwin13-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-apple-darwin13-gcc accepts -g... yes
checking for x86_64-apple-darwin13-gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /Users/yanll/Gentoo/bin/sed
Applying APR hints file rules for x86_64-apple-darwin13
  setting CPPFLAGS to "-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
  setting apr_posixsem_is_global to "yes"
(Default will be unix)
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/work/apr-1.5.1':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/work/apr-1.5.1/config.log
 * ERROR: dev-libs/apr-1.5.1-r1::gentoo_prefix failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 2770:  Called econf '--enable-layout=gentoo' '--enable-nonportable-atomics' '--enable-posix-shm' '--enable-threads' '--disable-static' '--with-devrandom=/dev/urandom'
 *   phase-helpers.sh, line  584:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/apr-1.5.1-r1::gentoo_prefix'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/apr-1.5.1-r1::gentoo_prefix'`.
 * The complete build log is located at '/Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/temp/environment'.
 * Working directory: '/Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/work/apr-1.5.1'
 * S: '/Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/work/apr-1.5.1'

>>> Failed to emerge dev-libs/apr-1.5.1-r1, Log file:

>>>  '/Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/temp/build.log'

 * Messages for package dev-libs/apr-1.5.1-r1:

 *   Darwin patch set 'darwin-conf' failed to apply!
 * ERROR: dev-libs/apr-1.5.1-r1::gentoo_prefix failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 2770:  Called econf '--enable-layout=gentoo' '--enable-nonportable-atomics' '--enable-posix-shm' '--enable-threads' '--disable-static' '--with-devrandom=/dev/urandom'
 *   phase-helpers.sh, line  584:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/apr-1.5.1-r1::gentoo_prefix'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/apr-1.5.1-r1::gentoo_prefix'`.
 * The complete build log is located at '/Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/temp/environment'.
 * Working directory: '/Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/work/apr-1.5.1'
 * S: '/Users/yanll/Gentoo/var/tmp/portage/dev-libs/apr-1.5.1-r1/work/apr-1.5.1'


In its config.log:

configure:9313: checking how to run the C preprocessor
configure:9344: x86_64-apple-darwin13-gcc -E -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp conftest.c
x86_64-apple-darwin13-gcc: error: unrecognized command line option '-no-cpp-precomp'
configure:9344: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:9344: x86_64-apple-darwin13-gcc -E -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp conftest.c
x86_64-apple-darwin13-gcc: error: unrecognized command line option '-no-cpp-precomp'
configure:9344: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:9344: x86_64-apple-darwin13-gcc -E -traditional-cpp -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp conftest.c

Reproducible: Always




$ emerge --info
Portage 2.2.8-prefix (prefix/darwin/macos/10.9/x64, gcc-4.7.3, unavailable, 13.1.0 x86_64)
=================================================================
System uname: Darwin-13.1.0-x86_64-i386-64bit
Timestamp of tree: Fri, 02 May 2014 14:08:02 +0000
app-shells/bash:      4.2_p45-r1
dev-lang/python:      2.7.5-r4, 3.3.3
dev-util/pkgconfig:   0.28-r1
sys-devel/autoconf:   2.69
sys-devel/automake:   1.14
sys-devel/gcc:        4.7.3-r1
sys-devel/gcc-config: 1.8-r00.1
sys-devel/libtool:    2.4.2
sys-devel/make:       4.0-r1
Repositories: gentoo_prefix
ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin13"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-apple-darwin13"
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/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/Users/yanll/Gentoo/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-dead_strip_dylibs"
MAKEOPTS=""
PKGDIR="/Users/yanll/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/yanll/Gentoo/"
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"
PORTAGE_TMPDIR="/Users/yanll/Gentoo/var/tmp"
PORTDIR="/Users/yanll/Gentoo/usr/portage"
PORTDIR_OVERLAY=""
USE="aqua coreaudio cracklib cxx ipv6 mmx mmxext modules ncurses nls objc objc++ prefix readline sse sse2 ssl unicode x64-macos 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="Darwin" 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" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2014-05-02 23:14:42 UTC
What is the output of "type -a cpp" ?
Comment 2 Linlin Yan 2014-05-02 23:54:13 UTC
$ type -a cpp
cpp is /Users/yanll/Gentoo/usr/bin/cpp
cpp is /usr/bin/cpp
Comment 3 Fabian Groffen gentoo-dev 2014-06-12 20:23:59 UTC
We should just rip out -no-cpp-precomp from the flags configure insists on injecting, as that probably doesn't work with Clang or something.
Comment 4 Fabian Groffen gentoo-dev 2016-01-24 10:17:31 UTC
1.5.2 appears to have this fixed, but it has another problem:

.5.2/include/private  -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/apr_getpass.lo
libtool: Version mismatch error.  This is libtool 2.4.6, but the
libtool: definition of this LT_INIT comes from libtool 2.4.2.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6
libtool: and run autoconf again.
Makefile:134: recipe for target 'tools/gen_test_char.lo' failed
make[1]: *** [tools/gen_test_char.lo] Error 63
make[1]: *** Waiting for unfinished jobs....
libtool: Version mismatch error.  This is libtool 2.4.6, but the
libtool: definition of this LT_INIT comes from libtool 2.4.2.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6
libtool: and run autoconf again.
/Users/fabian/Gentoo-10.10/var/tmp/portage/dev-libs/apr-1.5.2/work/apr-1.5.2/build/apr_rules.mk:206: recipe for target 'passwd/apr_getpass.lo' failed
make[1]: *** [passwd/apr_getpass.lo] Error 63
Comment 5 Fabian Groffen gentoo-dev 2020-12-14 20:43:06 UTC
apr-1.7.0 compiles fine, at last ...