View previous topic :: View next topic |
Author |
Message |
Dicey n00b
Joined: 07 Dec 2014 Posts: 13
|
Posted: Mon Dec 15, 2014 12:24 pm Post subject: emerge gentoo-sources |
|
|
At the beginning of http://www.gentoo.org/doc/ja/handbook/handbook-amd64.xml?part=1&chap=7
it is written that "emerge gentoo-sources". So I did it, but there are errors.
Code: | checking for gawk... gawk
checking wheter make sets $MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-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/sys-devel/bc-1.06.95/work/bc-1.06.95/config.log
* ERROR: sys-devel/bc-1.06.95::gentoo failed (compile phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 2195: Called econf '--with-readline' '--without-libedit'
* 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 '=sys-devel/bc-1.06.95::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-devel/bc-1.06.95::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-devel/bc-1.06.95/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/bc-1.06.95/temp/environment'.
* Working directory: '/var/tmp/portage/sys-devel/bc-1.06.95/work/bc-1.06.95'
* S: '/var/tmp/portage/sys-devel/bc-1.06.95/work/bc-1.06.95'
>>> Failed to emerge sys-devel/bc-1.06.95, Log file:
>>> '/var/tmp/portage/sys-devel/bc-1.06.95/temp/build.log'
* Messages for package sys-devel/bc-1.06.95:
* ERROR: sys-devel/bc-1.06.95::gentoo failed (compile phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 2195: Called econf '--with-readline' '--without-libedit'
* 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 '=sys-devel/bc-1.06.95::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-devel/bc-1.06.95::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-devel/bc-1.06.95/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/bc-1.06.95/temp/environment'.
* Working directory: '/var/tmp/portage/sys-devel/bc-1.06.95/work/bc-1.06.95'
* S: '/var/tmp/portage/sys-devel/bc-1.06.95/work/bc-1.06.95'
|
|
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Mon Dec 15, 2014 2:22 pm Post subject: |
|
|
What is the content of your above mentioned file /var/tmp/portage/sys-devel/bc-1.06.95/work/bc-1.06.95/config.log ? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Dec 15, 2014 2:43 pm Post subject: |
|
|
See GF20: C compiler cannot create executables. Note the very first cause. This is almost always a typo in the CFLAGS variable in /etc/portage/make.conf. Could you post that file, please?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
Dicey n00b
Joined: 07 Dec 2014 Posts: 13
|
Posted: Mon Dec 15, 2014 7:05 pm Post subject: |
|
|
I typed the result of "cat /etc/portage/make.conf".
Code: | livecd ~ # cat /etc/portage/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="-march=ivybridge -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# 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="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="bindist mmx sse sse2 gtk gnome dvd alsa cdr"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
GENTOO_MIRRORS="ftp://ftp.iij.ad.jp/pub/linux/gentoo/"
SYNC="rsync://rsync5.jp.gentoo.org/gentoo-portage"
|
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Dec 15, 2014 7:09 pm Post subject: |
|
|
Support for "-march=ivybridge" appears to have been added at or about gcc-4.9. Just use "-march=native" until you can upgrade your compiler.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
dataking Apprentice
Joined: 20 Apr 2005 Posts: 251
|
Posted: Tue Dec 16, 2014 6:21 pm Post subject: |
|
|
You may also want to check "gcc-config -l". Post the output here, if desired. Every time I've seen this error, it's because the gcc-profile is incorrect or invalid. _________________ -= the D@7@k|n& =- |
|
Back to top |
|
|
Dicey n00b
Joined: 07 Dec 2014 Posts: 13
|
Posted: Wed Dec 17, 2014 8:32 am Post subject: |
|
|
John R. Graham wrote: | Support for "-march=ivybridge" appears to have been added at or about gcc-4.9. Just use "-march=native" until you can upgrade your compiler. |
I changed "-march=ivybridge" to "-march=native". Then Installing is going well. Thank you very much! |
|
Back to top |
|
|
|