| View previous topic :: View next topic |
| Author |
Message |
mrs. wong n00b

Joined: 11 Jun 2008 Posts: 7
|
Posted: Wed Jun 11, 2008 3:07 pm Post subject: [SOLVED] emerge apr-util failed |
|
|
Hi there.
Ich just ran emerge --depclean and now I'm trying revdep-rebuild.
But dev/libs/apr-util won't emerge.
I have absolutley no idea how to fix the "configure: error: C compiler cannot create executables" error.
Can somebody help me fix this?
Thanks
| Code: | >>> Emerging (1 of 7) dev-libs/apr-util-1.2.12 to /
* apr-util-1.2.12.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* apr-1.2.12.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking apr-util-1.2.12.tar.gz ;-) ... [ ok ]
* checking apr-1.2.12.tar.gz ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking apr-util-1.2.12.tar.gz to /var/tmp/portage/dev-libs/apr-util-1.2.12/work
>>> Unpacking apr-1.2.12.tar.gz to /var/tmp/portage/dev-libs/apr-util-1.2.12/work
Looking for apr source in /var/tmp/portage/dev-libs/apr-util-1.2.12/work/apr-1.2.12
Creating include/private/apu_config.h ...
Creating configure ...
Generating 'make' outputs ...
Invoking xml/expat/buildconf.sh ...
Copying libtool helper files ...
Incorporating /usr/share/aclocal/libtool.m4 into aclocal.m4 ...
Creating config.h.in ...
autoheader-2.62: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.62: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.62: WARNING: is deprecated and discouraged.
autoheader-2.62:
autoheader-2.62: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.62: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader-2.62: WARNING: `acconfig.h':
autoheader-2.62:
autoheader-2.62: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.62: [Define if a function `main' is needed.])
autoheader-2.62:
autoheader-2.62: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.62: WARNING: documentation.
configure.in:57: warning: LTOPTIONS_VERSION is m4_require'd but not m4_defun'd
aclocal.m4:69: LT_INIT is expanded from...
aclocal.m4:104: AC_PROG_LIBTOOL is expanded from...
configure.in:57: the top level
configure.in:57: warning: LTSUGAR_VERSION is m4_require'd but not m4_defun'd
configure.in:57: warning: LTVERSION_VERSION is m4_require'd but not m4_defun'd
configure.in:57: warning: LTOBSOLETE_VERSION is m4_require'd but not m4_defun'd
Creating configure ...
configure.in:57: warning: LTOPTIONS_VERSION is m4_require'd but not m4_defun'd
aclocal.m4:69: LT_INIT is expanded from...
aclocal.m4:104: AC_PROG_LIBTOOL is expanded from...
configure.in:57: the top level
configure.in:57: warning: LTSUGAR_VERSION is m4_require'd but not m4_defun'd
configure.in:57: warning: LTVERSION_VERSION is m4_require'd but not m4_defun'd
configure.in:57: warning: LTOBSOLETE_VERSION is m4_require'd but not m4_defun'd
configure.in:56: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:3173: error: possibly undefined macro: m4_ifval
configure:6326: error: possibly undefined macro: _LT_SET_OPTIONS
configure:6326: error: possibly undefined macro: LT_INIT
rebuilding rpm spec file
* Running elibtoolize in: apr-util-1.2.12/xml/expat/conftools
* Applying install-sh-1.5.patch ...
* Applying sed-1.5.6.patch ...
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-libs/apr-util-1.2.12/work/apr-util-1.2.12 ...
* Found db version 4.6
* Found db version 4.6
include version 4.6
* econf: updating apr-1.2.12/build/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating apr-1.2.12/build/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating apr-util-1.2.12/xml/expat/conftools/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating apr-util-1.2.12/xml/expat/conftools/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating apr-util-1.2.12/build/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating apr-util-1.2.12/build/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datadir=/usr/share/apr-util-1 --with-apr=/usr --with-expat=/usr --with-gdbm --without-mysql --without-pgsql --without-sqlite2 --without-sqlite3 --with-dbm=db46 --with-berkeley-db=/usr/include/db4.6:/usr/lib --build=i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
APR-util Version: 1.2.12
checking for chosen layout... apr-util
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name...
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/apr-util-1.2.12/work/apr-util-1.2.12/config.log
*
* ERROR: dev-libs/apr-util-1.2.12 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3171: Called econf '--datadir=/usr/share/apr-util-1' '--with-apr=/usr' '--with-expat=/usr' '--with-gdbm' '--without-mysql' '--without-pgsql' '--without-sqlite2' '--without-sqlite3' '--with-dbm=db46' '--with-berkeley-db=/usr/include/db4.6:/usr/lib'
* ebuild.sh, line 526: Called die
* The specific snippet of code:
* die "econf failed"
* The die message:
* econf failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-libs/apr-util-1.2.12/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/apr-util-1.2.12/temp/environment'.
*
|
| Code: |
cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo "
USE="xinerama nsplugin X opengl qt3 qt4 alsa cdr dvdr dvd kde sse sse2 mmx aac x264 xvid -gnome -gtk -ipv6 -arts"
ACCEPT_KEYWORDS="~x86"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nvidia"
source /usr/portage/local/layman/make.conf
#FEATURES="collision-protect"
|
Last edited by mrs. wong on Wed Jun 11, 2008 3:55 pm; edited 1 time in total |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 3928
|
Posted: Wed Jun 11, 2008 3:31 pm Post subject: |
|
|
OK, this won't be easy to fix.
It's a problem with libtool 2, or rather apr-util authors being to smart for their own good.
(this may sound like a know-it-all, but it's not the first time I see a failure due to too custom autogen script)
In libtool 2, some of the macros are not inside libtool.m4, while apr-util's xml/expat/buildconf.sh assumes all of them are,
so this will eventually have to be fixed upstream.
Also, it would be nice, if you posted the real error from config.log.
However, it seems that those errors should not matter, cause we're using system expat anyway. |
|
| Back to top |
|
 |
mrs. wong n00b

Joined: 11 Jun 2008 Posts: 7
|
Posted: Wed Jun 11, 2008 3:53 pm Post subject: |
|
|
There is my config.log
As it turns out I had some problem with my gcc profile. I fixed it and now it works.
Thanks for telling me to look into config.log VoidMage [/quote]
| Code: | cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.62. Invocation command line was
$ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datadir=/usr/share/apr-util-1 --with-apr=/usr --with-expat=/usr --with-gdbm --without-mysql --without-pgsql --without-sqlite2 --without-sqlite3 --with-dbm=db46 --with-berkeley-db=/usr/include/db4.6:/usr/lib --build=i686-pc-linux-gnu
## --------- ##
## Platform. ##
## --------- ##
hostname = tiffany
uname -m = i686
uname -r = 2.6.23-gentoo-r1
uname -s = Linux
uname -v = #4 SMP Sat Jan 12 21:53:59 CET 2008
/usr/bin/uname -p = Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/kde/3.5/sbin
PATH: /usr/kde/3.5/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/4.1.1
PATH: /usr/i686-pc-linux-gnu/gcc-bin/4.2.3
PATH: /opt/sun-jdk-1.4.2.15/bin
PATH: /opt/sun-jdk-1.4.2.15/jre/bin
PATH: /opt/sun-jdk-1.4.2.15/jre/javaws
PATH: /usr/qt/3/bin
PATH: /usr/games/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2184: checking build system type
configure:2202: result: i686-pc-linux-gnu
configure:2224: checking host system type
configure:2239: result: i686-pc-linux-gnu
configure:2261: checking target system type
configure:2276: result: i686-pc-linux-gnu
configure:2319: checking for a BSD-compatible install
configure:2387: result: /usr/bin/install -c
configure:2415: checking for working mkdir -p
configure:2431: result: yes
configure:2522: checking for chosen layout
configure:2524: result: apr-util
configure:2658: checking for i686-pc-linux-gnu-gcc
configure:2674: found /usr/bin/i686-pc-linux-gnu-gcc
configure:2685: result: i686-pc-linux-gnu-gcc
configure:2963: checking for C compiler version
configure:2971: i686-pc-linux-gnu-gcc --version >&5
* gcc-config: Active gcc profile is invalid!
gcc-config error: Could not run/locate "i686-pc-linux-gnu-gcc"
configure:2975: $? = 1
configure:2982: i686-pc-linux-gnu-gcc -v >&5
* gcc-config: Active gcc profile is invalid!
gcc-config error: Could not run/locate "i686-pc-linux-gnu-gcc"
configure:2986: $? = 1
configure:2993: i686-pc-linux-gnu-gcc -V >&5
* gcc-config: Active gcc profile is invalid!
gcc-config error: Could not run/locate "i686-pc-linux-gnu-gcc"
configure:2997: $? = 1
configure:3020: checking for C compiler default output file name
configure:3042: i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe conftest.c >&5
* gcc-config: Active gcc profile is invalid!
gcc-config error: Could not run/locate "i686-pc-linux-gnu-gcc"
configure:3046: $? = 1
configure:3084: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3091: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -march=i686 -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_mkdir_p=yes
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_CC=i686-pc-linux-gnu-gcc
ac_cv_target=i686-pc-linux-gnu
## ----------------- ##
## Output variables. ##
## ----------------- ##
APRUTIL_DOTTED_VERSION='1.2.12'
APRUTIL_EXPORT_LIBS=''
APRUTIL_INCLUDES=''
APRUTIL_LDFLAGS=''
APRUTIL_LIBNAME=''
APRUTIL_LIBS=''
APRUTIL_MAJOR_VERSION='1'
APRUTIL_PRIV_INCLUDES=''
APR_BUILD_DIR=''
APR_ICONV_DIR=''
APR_INCLUDES=''
APR_LIBS=''
APR_XML_DIR=''
APU_CONFIG_LOCATION='source'
CC='i686-pc-linux-gnu-gcc'
CFLAGS='-O2 -march=i686 -pipe'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INCLUDE_OUTPUTS=''
INCLUDE_RULES=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
LT_NO_INSTALL='-no-install'
MYSQL_CONFIG=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SHELL='/bin/sh'
abs_builddir='/var/tmp/portage/dev-libs/apr-util-1.2.12/work/apr-util-1.2.12'
abs_srcdir='/var/tmp/portage/dev-libs/apr-util-1.2.12/work/apr-util-1.2.12'
ac_ct_CC=''
apu_db_header=''
apu_db_version=''
apu_has_ldap=''
apu_has_ldap_microsoft=''
apu_has_ldap_mozilla=''
apu_has_ldap_netscape=''
apu_has_ldap_novell=''
apu_has_ldap_openldap=''
apu_has_ldap_other=''
apu_has_ldap_solaris=''
apu_has_ldap_sslinit=''
apu_has_ldap_start_tls_s=''
apu_has_ldap_zos=''
apu_has_ldapssl_add_trusted_cert=''
apu_has_ldapssl_client_deinit=''
apu_has_ldapssl_client_init=''
apu_has_ldapssl_init=''
apu_has_ldapssl_install_routines=''
apu_have_db=''
apu_have_gdbm=''
apu_have_mysql=''
apu_have_ndbm=''
apu_have_pgsql=''
apu_have_sdbm=''
apu_have_sqlite2=''
apu_have_sqlite3=''
apu_use_db=''
apu_use_gdbm=''
apu_use_ndbm=''
apu_use_sdbm=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share/apr-util-1'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
have_apr_iconv=''
have_iconv=''
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include/apr-${APRUTIL_MAJOR_VERSION}'
infodir='/usr/share/info'
lber_h=''
ldap_h=''
ldap_ssl_h=''
lib_target=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/modules'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/bin'
sharedstatedir='${prefix}/com'
so_ext=''
sysconfdir='/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
top_builddir='/var/tmp/portage/dev-libs/apr-util-1.2.12/work/apr-util-1.2.12'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
configure: exit 77 |
|
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 3928
|
Posted: Wed Jun 11, 2008 6:33 pm Post subject: |
|
|
Did you try to read what you posted, cause this part:
| Code: |
* gcc-config: Active gcc profile is invalid!
|
is rather easy to notice.
And I wasn't asking for the whole log, just the relevant error. |
|
| Back to top |
|
 |
mrs. wong n00b

Joined: 11 Jun 2008 Posts: 7
|
Posted: Thu Jun 12, 2008 5:57 pm Post subject: |
|
|
As I said I didn't look into config.log before you mentioned it. And the gcc-config error message didn't appear in the portage output. When I looked into the config.log I saw it and fixed it.
Thanks anyway. |
|
| Back to top |
|
 |
|
|
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
|
|