Re: [gentoo-user] configure: error: C++ compiler cannot create executables

2009-04-08 Thread Justin
KH schrieb:
 Justin schrieb:
 KH schrieb:
   
 Justin schrieb:
 
 GIve us the 
 /var/tmp/portage/app-arch/lzma-utils-4.32.7/work/lzma-4.32.7/config.log, 
 then we will tell
 you more.

   
   
 Hi,
 thanks for your answer.
 kh

 
 YOu have a typo in CFLAGS:


 march==native

   
 shame on me
 Thanks for the fast help!
 
 kh
 
Thats a perfect example why in there is a message when an emerge dies.

It says:

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-arch/lzma-utils-4.32.7/work/lzma-4.32.7/config.log

So always do what it says and the help will be fast.

Cheers justin



signature.asc
Description: OpenPGP digital signature


[gentoo-user] configure: error: C++ compiler cannot create executables

2009-04-07 Thread KH
Hi,

I seem to have som problem here.

 Emerging (3 of 107) app-arch/lzma-utils-4.32.7
 * lzma-4.32.7.tar.gz RMD160 SHA1 SHA256 size ;-)
... 
  
[ ok ]
 * checking ebuild checksums ;-)
... 
   
[ ok ]
 * checking auxfile checksums ;-)
... 
  
[ ok ]
 * checking miscfile checksums ;-)
... 
 
[ ok ]
 Unpacking source...
 Unpacking lzma-4.32.7.tar.gz to
/var/tmp/portage/app-arch/lzma-utils-4.32.7/work
 Source unpacked in /var/tmp/portage/app-arch/lzma-utils-4.32.7/work
 Compiling source in
/var/tmp/portage/app-arch/lzma-utils-4.32.7/work/lzma-4.32.7 ...
 * econf: updating lzma-4.32.7/config.guess with
/usr/share/gnuconfig/config.guess
 * econf: updating lzma-4.32.7/config.sub with
/usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i486-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --build=i486-pc-linux-gnu
checking if debugging code should be compiled... no
checking for a BSD-compatible install... /usr/bin/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 for i486-pc-linux-gnu-g++... i486-pc-linux-gnu-g++
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/app-arch/lzma-utils-4.32.7/work/lzma-4.32.7/config.log
 *
 * ERROR: app-arch/lzma-utils-4.32.7 failed.
 * Call stack:
 *   ebuild.sh, line   49:  Called src_compile
 * environment, line 2100:  Called _eapi0_src_compile
 *   ebuild.sh, line  607:  Called econf
 *   ebuild.sh, line  543:  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/app-arch/lzma-utils-4.32.7/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/app-arch/lzma-utils-4.32.7/temp/environment'.
 *

 Failed to emerge app-arch/lzma-utils-4.32.7, Log file:

  '/var/tmp/portage/app-arch/lzma-utils-4.32.7/temp/build.log'


I am using the new gcc with CFLAGS=-O2 -march=native -mtune=native
-pipe. I am able to emerge -av1 glibc and binutils plus gcc itselve.I
cannot run the eav system because of the above error.
Any hint?



Re: [gentoo-user] configure: error: C++ compiler cannot create executables

2009-04-07 Thread Justin
KH schrieb:
 Hi,
 
 I seem to have som problem here.
 
 Emerging (3 of 107) app-arch/lzma-utils-4.32.7
  * lzma-4.32.7.tar.gz RMD160 SHA1 SHA256 size ;-)
 ...   
 
 [ ok ]
  * checking ebuild checksums ;-)
 ...   
  
 [ ok ]
  * checking auxfile checksums ;-)
 ...   
 
 [ ok ]
  * checking miscfile checksums ;-)
 ...   

 [ ok ]
 Unpacking source...
 Unpacking lzma-4.32.7.tar.gz to
 /var/tmp/portage/app-arch/lzma-utils-4.32.7/work
 Source unpacked in /var/tmp/portage/app-arch/lzma-utils-4.32.7/work
 Compiling source in
 /var/tmp/portage/app-arch/lzma-utils-4.32.7/work/lzma-4.32.7 ...
  * econf: updating lzma-4.32.7/config.guess with
 /usr/share/gnuconfig/config.guess
  * econf: updating lzma-4.32.7/config.sub with
 /usr/share/gnuconfig/config.sub
 ./configure --prefix=/usr --host=i486-pc-linux-gnu
 --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
 --sysconfdir=/etc --localstatedir=/var/lib --build=i486-pc-linux-gnu
 checking if debugging code should be compiled... no
 checking for a BSD-compatible install... /usr/bin/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 for i486-pc-linux-gnu-g++... i486-pc-linux-gnu-g++
 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/app-arch/lzma-utils-4.32.7/work/lzma-4.32.7/config.log
  *
  * ERROR: app-arch/lzma-utils-4.32.7 failed.
  * Call stack:
  *   ebuild.sh, line   49:  Called src_compile
  * environment, line 2100:  Called _eapi0_src_compile
  *   ebuild.sh, line  607:  Called econf
  *   ebuild.sh, line  543:  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/app-arch/lzma-utils-4.32.7/temp/build.log'.
  * The ebuild environment file is located at
 '/var/tmp/portage/app-arch/lzma-utils-4.32.7/temp/environment'.
  *
 
 Failed to emerge app-arch/lzma-utils-4.32.7, Log file:
 
  '/var/tmp/portage/app-arch/lzma-utils-4.32.7/temp/build.log'
 
 
 I am using the new gcc with CFLAGS=-O2 -march=native -mtune=native
 -pipe. I am able to emerge -av1 glibc and binutils plus gcc itselve.I
 cannot run the eav system because of the above error.
 Any hint?
 
GIve us the 
/var/tmp/portage/app-arch/lzma-utils-4.32.7/work/lzma-4.32.7/config.log, then 
we will tell
you more.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] configure: error: C++ compiler cannot create executables

2009-04-07 Thread Justin
KH schrieb:
 Justin schrieb:
 GIve us the 
 /var/tmp/portage/app-arch/lzma-utils-4.32.7/work/lzma-4.32.7/config.log, 
 then we will tell
 you more.

   
 Hi,
 thanks for your answer.
 kh
 
YOu have a typo in CFLAGS:


march==native



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] configure: error: C++ compiler cannot create executables

2009-04-07 Thread KH
Justin schrieb:
 GIve us the 
 /var/tmp/portage/app-arch/lzma-utils-4.32.7/work/lzma-4.32.7/config.log, then 
 we will tell
 you more.

   
Hi,
thanks for your answer.
kh
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by LZMA configure 4.32.7, which was
generated by GNU Autoconf 2.62.  Invocation command line was

  $ ./configure --prefix=/usr --host=i486-pc-linux-gnu --mandir=/usr/share/man 
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib --build=i486-pc-linux-gnu

## - ##
## Platform. ##
## - ##

hostname = claudius
uname -m = i686
uname -r = 2.6.27-gentoo-r8
uname -s = Linux
uname -v = #1 SMP Thu Jan 29 18:09:31 CET 2009

/usr/bin/uname -p = Pentium III (Coppermine)
/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: /opt/bin
PATH: /usr/i486-pc-linux-gnu/gcc-bin/4.3.2


## --- ##
## Core tests. ##
## --- ##

configure:2053: checking if debugging code should be compiled
configure:2073: result: no
configure:2127: checking for a BSD-compatible install
configure:2195: result: /usr/bin/install -c
configure:2206: checking whether build environment is sane
configure:2249: result: yes
configure:2274: checking for a thread-safe mkdir -p
configure:2313: result: /bin/mkdir -p
configure:2326: checking for gawk
configure:2342: found /bin/gawk
configure:2353: result: gawk
configure:2364: checking whether make sets $(MAKE)
configure:2386: result: yes
configure:2590: checking for i486-pc-linux-gnu-g++
configure:2606: found /usr/bin/i486-pc-linux-gnu-g++
configure:2617: result: i486-pc-linux-gnu-g++
configure:2692: checking for C++ compiler version
configure:2700: i486-pc-linux-gnu-g++ --version 5
i486-pc-linux-gnu-g++ (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2704: $? = 0
configure:2711: i486-pc-linux-gnu-g++ -v 5
Using built-in specs.
Target: i486-pc-linux-gnu
Configured with: 
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/configure --prefix=/usr 
--bindir=/usr/i486-pc-linux-gnu/gcc-bin/4.3.2 
--includedir=/usr/lib/gcc/i486-pc-linux-gnu/4.3.2/include 
--datadir=/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2 
--mandir=/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2/man 
--infodir=/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2/info 
--with-gxx-include-dir=/usr/lib/gcc/i486-pc-linux-gnu/4.3.2/include/g++-v4 
--host=i486-pc-linux-gnu --build=i486-pc-linux-gnu --disable-altivec 
--disable-fixed-point --enable-nls --without-included-gettext 
--with-system-zlib --disable-checking --disable-werror --enable-secureplt 
--disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp 
--disable-libgcj --with-arch=i486 --enable-languages=c,c++,treelang,fortran 
--enable-shared --enable-threads=posix --enable-__cxa_atexit 
--enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ 
--with-pkgversion='Gentoo 4.3.2-r3 p1.6, pie-10.1.5'
Thread model: posix
gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) 
configure:2715: $? = 0
configure:2722: i486-pc-linux-gnu-g++ -V 5
i486-pc-linux-gnu-g++: '-V' option must have argument
configure:2726: $? = 1
configure:2749: checking for C++ compiler default output file name
configure:2771: i486-pc-linux-gnu-g++ -O2 -march==native -mtune=native -pipe  
-Wl,-O1 conftest.cpp  5
conftest.cpp:1: error: bad value (=native) for -march= switch
configure:2775: $? = 1
configure:2813: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME LZMA
| #define PACKAGE_TARNAME lzma
| #define PACKAGE_VERSION 4.32.7
| #define PACKAGE_STRING LZMA 4.32.7
| #define PACKAGE_BUGREPORT lasse.col...@tukaani.org
| #define NDEBUG 1
| #define PACKAGE lzma
| #define VERSION 4.32.7
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2820: error: C++ compiler cannot create executables
See `config.log' for more details.

##  ##
## Cache variables. ##
##  ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -march=native -mtune=native -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O2 -march==native -mtune=native -pipe'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=

Re: [gentoo-user] configure: error: C++ compiler cannot create executables

2009-04-07 Thread KH
Justin schrieb:
 KH schrieb:
   
 Justin schrieb:
 
 GIve us the 
 /var/tmp/portage/app-arch/lzma-utils-4.32.7/work/lzma-4.32.7/config.log, 
 then we will tell
 you more.

   
   
 Hi,
 thanks for your answer.
 kh

 
 YOu have a typo in CFLAGS:


 march==native

   
shame on me
Thanks for the fast help!

kh



[gentoo-user] configure: error: C compiler cannot create executables

2007-05-08 Thread Arnau Bria
Hi,

after a emerge -uD world, and depclean, my system asks for some
packages:
# cat /root/.revdep-rebuild.5_order
dev-libs/apr-util-0.9.12
dev-lang/perl-5.8.8-r2
net-www/apache-2.0.58-r2
mail-mta/postfix-2.3.6
net-libs/libetpan-0.49
dev-lang/php-5.2.1-r3
mail-client/claws-mail-2.9.1

but, when I try to emerge them, I get the error:

[...]
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 working mkdir -p... yes
APR-util Version: 0.9.12
checking for chosen layout... apr-util
Applying apr-util hints file rules for i686-pc-linux-gnu
checking for APR... yes
  setting CC to i386-pc-linux-gnu-gcc
  setting CPP to i386-pc-linux-gnu-gcc -E
  adding -pthread to CFLAGS
  setting CPPFLAGS to  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
checking for i686-pc-linux-gnu-gcc... i386-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 filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/dev-libs/apr-util-0.9.12/work/apr-util-0.9.12/config.log

I'm looking forums, google, etc... and I don't find a valid solution.
I'm not sure if it's a compiler problem or not, cause I've been able to
recompile some packages (binutils, i.e.)

config.log:

## --- ##
## Core tests. ##
## --- ##

configure:1581: checking build system type
configure:1599: result: i686-pc-linux-gnu
configure:1607: checking host system type
configure:1621: result: i686-pc-linux-gnu
configure:1629: checking target system type
configure:1643: result: i686-pc-linux-gnu
configure:1664: checking for working mkdir -p
configure:1680: result: yes
configure:1764: checking for chosen layout
configure:1766: result: apr-util
configure:1973: checking for APR
configure:2033: result: yes
configure:2119: checking for i686-pc-linux-gnu-gcc
configure:2145: result: i386-pc-linux-gnu-gcc
configure:2427: checking for C compiler version
configure:2430: i386-pc-linux-gnu-gcc --version /dev/null 5
gcc-config error: Could not run/locate i386-pc-linux-gnu-gcc
configure:2433: $? = 1
configure:2435: i386-pc-linux-gnu-gcc -v /dev/null 5
gcc-config error: Could not run/locate i386-pc-linux-gnu-gcc
configure:2438: $? = 1
configure:2440: i386-pc-linux-gnu-gcc -V /dev/null 5
gcc-config error: Could not run/locate i386-pc-linux-gnu-gcc
configure:2443: $? = 1
configure:2466: checking for C compiler default output file name
configure:2469: i386-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe 
-fomit-frame-pointer -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE  conftest.c 
 5
gcc-config error: Could not run/locate i386-pc-linux-gnu-gcc
configure:2472: $? = 1
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:2511: error: C compiler cannot create executables
See `config.log' for more details.
[...]


# gcc-config -l
 [1] i686-pc-linux-gnu-4.1.1 *

here's some extra info:
# emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r2, 
2.6.19-gentoo-r5 i686)
=
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 08 May 2007 06:50:01 +
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python: 2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS=x86
AUTOCLEAN=yes
CBUILD=i686-pc-linux-gnu
CFLAGS=-march=pentium4 -O2 -pipe -fomit-frame-pointer
CHOST=i686-pc-linux-gnu
CONFIG_PROTECT=/etc /usr/kde/3.5/env /usr/kde/3.5/share/config 
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config
CONFIG_PROTECT_MASK=/etc/env.d /etc/env.d/java/ /etc/gconf 
/etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ 
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ 
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
CXXFLAGS=-march=pentium4 -O2 -pipe -fomit-frame-pointer
DISTDIR=/usr/portage/distfiles
FEATURES=distlocks metadata-transfer sandbox sfperms strict
GENTOO_MIRRORS=http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/linux/distributions/gentoo;
LANG=es_ES.UTF-8
LC_ALL=es_ES.UTF-8
PKGDIR=/usr/portage/packages
PORTAGE_RSYNC_OPTS=--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --delete-after --stats --timeout=180 
--exclude=/distfiles --exclude=/local --exclude=/packages 
--filter=H_**/files/digest-*
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage

Re: [gentoo-user] configure: error: C compiler cannot create executables

2007-05-08 Thread Arnau Bria

I forgot to add that doing:
damac # cat i386-pc-linux-gnu-gcc
#!/bin/sh
/usr/bin/i686-pc-linux-gnu-gcc $@
damac # pwd
/usr/bin

that is explained in forums finished compiling part of package, but
ended in:

/usr/share/apr-0/build/libtool: line 5598: i386-pc-linux-gnu-ar: command not 
found
make[1]: *** [libaprutil-0.la] Error 127
make[1]: se sale del directorio 
`/var/tmp/portage/dev-libs/apr-util-0.9.12/work/apr-util-0.9.12'
make: *** [all-recursive] Error 1

So, I don't think following this way I can find a solution.

Cheers!
Arnau
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] configure: error: C compiler cannot create executables

2007-05-08 Thread Bo Ørsted Andresen
On Tuesday 08 May 2007 16:54:59 Arnau Bria wrote:
 I'm looking forums, google, etc... and I don't find a valid solution.
 I'm not sure if it's a compiler problem or not, cause I've been able to
 recompile some packages (binutils, i.e.)
[SNIP]
 configure:2119: checking for i686-pc-linux-gnu-gcc
 configure:2145: result: i386-pc-linux-gnu-gcc
 configure:2427: checking for C compiler version
 configure:2430: i386-pc-linux-gnu-gcc --version /dev/null 5
 gcc-config error: Could not run/locate i386-pc-linux-gnu-gcc

https://bugs.gentoo.org/show_bug.cgi?id=166670

-- 
Bo Andresen


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] configure: error: C compiler cannot create executables

2007-05-08 Thread Arnau Bria
On Tue, 8 May 2007 16:03:02 +0200
Bo Ørsted Andresen wrote:

 On Tuesday 08 May 2007 16:54:59 Arnau Bria wrote:
  I'm looking forums, google, etc... and I don't find a valid
  solution. I'm not sure if it's a compiler problem or not, cause
  I've been able to recompile some packages (binutils, i.e.)
 [SNIP]
  configure:2119: checking for i686-pc-linux-gnu-gcc
  configure:2145: result: i386-pc-linux-gnu-gcc
  configure:2427: checking for C compiler version
  configure:2430: i386-pc-linux-gnu-gcc --version /dev/null 5
  gcc-config error: Could not run/locate i386-pc-linux-gnu-gcc
 
 https://bugs.gentoo.org/show_bug.cgi?id=166670
 

I always forget to look for my errors in bugs... :-(
(this error is not a bug, but solution is in that link)

thank you very much. My revdep-rebuild is now compiling fine :-)

Cheers!
Arnau
--
[EMAIL PROTECTED] mailing list