Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Polskie forum (Polish)
  • Search

configure: error: C++ compiler cannot create executables

Witajcie na polskim forum użytkowników Gentoo!
Opis instalacji i pracy z Gentoo. Pozostała dokumentacja Gentoo

Moderator: SlashBeast

Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
Author
Message
fanatico
n00b
n00b
Posts: 30
Joined: Sat Jul 30, 2011 5:08 pm

configure: error: C++ compiler cannot create executables

  • Quote

Post by fanatico » Tue Aug 09, 2011 12:35 pm

Witam,
mam pewien problem. Otoz przy
emerge ekg2
dostaje komunikat:
Gentoo ~ # emerge ekg2

* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 3) app-text/aspell-0.60.6-r2
* aspell-0.60.6.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* Package: app-text/aspell-0.60.6-r2
* Repository: gentoo
* Maintainer: app-dicts@gentoo.org
* USE: elibc_glibc kernel_linux nls userland_GNU x86
* FEATURES: sandbox
>>> Unpacking source...
>>> Unpacking aspell-0.60.6.tar.gz to /var/tmp/portage/app-text/aspell-0.60.6-r2/work
>>> Source unpacked in /var/tmp/portage/app-text/aspell-0.60.6-r2/work
>>> Preparing source in /var/tmp/portage/app-text/aspell-0.60.6-r2/work/aspell-0.60.6 ...
* Applying aspell-0.60.3-templateinstantiations.patch ... [ ok ]
* Applying aspell-0.60.5-nls.patch ... [ ok ]
* Applying aspell-0.60.5-solaris.patch ... [ ok ]
* Applying aspell-0.60.6-darwin-bundles.patch ... [ ok ]
* Applying aspell-0.60.6-replace-fix.patch ... [ ok ]
* Running eautoreconf in '/var/tmp/portage/app-text/aspell-0.60.6-r2/work/aspell-0.60.6' ...
* Running aclocal -I m4 ... [ ok ]
* Running libtoolize --copy --force --install --automake ... [ ok ]
* Running aclocal -I m4 ... [ ok ]
* Running autoconf ... [ ok ]
* Running autoheader ... [ ok ]
* Running automake --add-missing --copy --foreign ... [ ok ]
* Running elibtoolize in: aspell-0.60.6/
* Applying portage-2.2.patch ...
* Applying sed-1.5.6.patch ...
* Applying as-needed-2.2.6.patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-text/aspell-0.60.6-r2/work/aspell-0.60.6 ...
* econf: updating aspell-0.60.6/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating aspell-0.60.6/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-nls --disable-static --sysconfdir=/etc/aspell --enable-docdir=/usr/share/doc/aspell-0.60.6-r2
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 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 to enable maintainer-specific portions of Makefiles... no
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking whether the C++ compiler works... no
configure: error: in `/var/tmp/portage/app-text/aspell-0.60.6-r2/work/aspell-0.60.6':
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-text/aspell-0.60.6-r2/work/aspell-0.60.6/config.log
* ERROR: app-text/aspell-0.60.6-r2 failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 56: Called src_configure
* environment, line 3066: Called econf '--enable-nls' '--disable-static' '--sysconfdir=/etc/aspell' '--enable-docdir=/usr/share/doc/aspell-0.60.6-r2'
* ebuild.sh, line 557: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of 'emerge --info =app-text/aspell-0.60.6-r2',
* the complete build log and the output of 'emerge -pqv =app-text/aspell-0.60.6-r2'.
* The complete build log is located at '/var/tmp/portage/app-text/aspell-0.60.6-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-text/aspell-0.60.6-r2/temp/environment'.
* S: '/var/tmp/portage/app-text/aspell-0.60.6-r2/work/aspell-0.60.6'

>>> Failed to emerge app-text/aspell-0.60.6-r2, Log file:

>>> '/var/tmp/portage/app-text/aspell-0.60.6-r2/temp/build.log'

* Messages for package app-text/aspell-0.60.6-r2:

* ERROR: app-text/aspell-0.60.6-r2 failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 56: Called src_configure
* environment, line 3066: Called econf '--enable-nls' '--disable-static' '--sysconfdir=/etc/aspell' '--enable-docdir=/usr/share/doc/aspell-0.60.6-r2'
* ebuild.sh, line 557: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of 'emerge --info =app-text/aspell-0.60.6-r2',
* the complete build log and the output of 'emerge -pqv =app-text/aspell-0.60.6-r2'.
* The complete build log is located at '/var/tmp/portage/app-text/aspell-0.60.6-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-text/aspell-0.60.6-r2/temp/environment'.
* S: '/var/tmp/portage/app-text/aspell-0.60.6-r2/work/aspell-0.60.6'

* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Tak jest przy kazdej probie instalacji. Jestem strasznie przyzwyczajony do Debiana i troche nie moge sie przestawic :)
Bede wdzieczny za pomoc.
Top
Belliash
Advocate
Advocate
User avatar
Posts: 2503
Joined: Wed Nov 24, 2004 1:39 pm
Location: Wroclaw, Poland
Contact:
Contact Belliash
Website

  • Quote

Post by Belliash » Tue Aug 09, 2011 12:40 pm

cat /etc/make.conf
gcc -v
gcc-config -l
Asio Software Technologies
Belliash IT Weblog
Top
Jacekalex
Guru
Guru
User avatar
Posts: 554
Joined: Thu Sep 17, 2009 5:18 am

  • Quote

Post by Jacekalex » Tue Aug 09, 2011 12:44 pm

Podobny problem był już 2 razy.

U mnie pomoglo dodanie

Code: Select all

preserve-libs
w zmiennej FEATURES w make.conf

To by było na tyle
8)
Top
fanatico
n00b
n00b
Posts: 30
Joined: Sat Jul 30, 2011 5:08 pm

  • Quote

Post by fanatico » Tue Aug 09, 2011 1:42 pm

cat /etc/make.conf
Gentoo ~ # cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
# 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="i686-pc-linux-gnu"

GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/"

SYNC="rsync://rsync6.pl.gentoo.org/gentoo-portage"
FEATURES="preserve-libs userpriv usersandbox notitles noauto"


USE="a52 aac acpi alsa branding cairo cdr dbus dts dvd dvdr emboss encode exif
fam firefox flac gif gpm gtk hal jpeg lcms ldap libnotify mad mikmod mng mp3
mp4 mpeg ogg opengl pango pdf png ppds qt3support qt4 sdl spell
startup-notification svg tiff truetype vorbis unicode usb X xcb x264 xml
xulrunner xv xvid"

ACCEPT_LICENSE="PUEL"
VIDEO_CARDS="intel"
INPUT_DEVICES="keyboard mouse"
PORTDIR_OVERLAY="/usr/local/portage/"
LDFLAGS="-W1, -01"
ACCEPT_KEYWORDS="~x86"
gcc -v
Gentoo ~ # gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.4.5 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.5/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.4.5/python --enable-checking=release --disable-libgcj --with-arch=i686 --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.5 p1.3, pie-0.4.5'
Thread model: posix
gcc version 4.4.5 (Gentoo 4.4.5 p1.3, pie-0.4.5)
gcc-config -l
Gentoo ~ # gcc-config -l
[1] i686-pc-linux-gnu-4.4.5 *
Po dodaniu preserve-libs do /etc/make.conf dostaje komunikat:
FEATURES variable contains unknown value(s): preserve-libs
a dalej instalacja/kompilacja? przebiega jak przed dodaniem tego wpisu.
Pozdrawiam
Top
Belliash
Advocate
Advocate
User avatar
Posts: 2503
Joined: Wed Nov 24, 2004 1:39 pm
Location: Wroclaw, Poland
Contact:
Contact Belliash
Website

  • Quote

Post by Belliash » Tue Aug 09, 2011 2:36 pm

Sprobuj zamienic w CFLAGS -march=i686 na -march=pentiumpro
Powinno pomoc, jesli to jest to co mysle

Napisz jeszcze jaki masz procesor?
Asio Software Technologies
Belliash IT Weblog
Top
fanatico
n00b
n00b
Posts: 30
Joined: Sat Jul 30, 2011 5:08 pm

  • Quote

Post by fanatico » Tue Aug 09, 2011 3:13 pm

Gentoo ~ # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
stepping : 10
cpu MHz : 2000.000
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dts
bogomips : 3990.54
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
stepping : 10
cpu MHz : 2000.000
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dts
bogomips : 3989.79
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
Dodam jeszcze tylko, ze to sie stalo dzisiaj z rana po instalacji VirtualBox. Wczesniej nie mialem zadnego problemu z instalacja.
Pozdrawiam
Top
Belliash
Advocate
Advocate
User avatar
Posts: 2503
Joined: Wed Nov 24, 2004 1:39 pm
Location: Wroclaw, Poland
Contact:
Contact Belliash
Website

  • Quote

Post by Belliash » Tue Aug 09, 2011 3:23 pm

Belliash wrote:Sprobuj zamienic w CFLAGS -march=i686 na -march=pentiumpro
probowales?

Na pewno winny nie jest virtualbox
Asio Software Technologies
Belliash IT Weblog
Top
fanatico
n00b
n00b
Posts: 30
Joined: Sat Jul 30, 2011 5:08 pm

  • Quote

Post by fanatico » Tue Aug 09, 2011 4:39 pm

Gentoo ~ # cat /etc/make.conf | grep CFLAGS
CFLAGS="-O2 -march=pentiumpro -pipe"
CXXFLAGS="${CFLAGS}"
Wciaz jest to samo. Co do VB to tak tylko napisalem :) Nie jestem przyzwyczajony do korzystania z forum, ale zaczynam nabierac szacunku do tego systemu :) Uczy pokory. Bede wdzieczny za pomoc.
Pozdrawiam
Top
fanatico
n00b
n00b
Posts: 30
Joined: Sat Jul 30, 2011 5:08 pm

  • Quote

Post by fanatico » Tue Aug 09, 2011 7:34 pm

Dodam jeszcze tylko ze
time emerge sys-kernel/linux-headers
przeszlo bez problemu.
Top
Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Polskie forum (Polish)”

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

 

 

magic