Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge gentoo-sources
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Dicey
n00b
n00b


Joined: 07 Dec 2014
Posts: 13

PostPosted: Mon Dec 15, 2014 12:24 pm    Post subject: emerge gentoo-sources Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Mon Dec 15, 2014 2:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Dec 15, 2014 2:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dicey
n00b
n00b


Joined: 07 Dec 2014
Posts: 13

PostPosted: Mon Dec 15, 2014 7:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Dec 15, 2014 7:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
dataking
Apprentice
Apprentice


Joined: 20 Apr 2005
Posts: 251

PostPosted: Tue Dec 16, 2014 6:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dicey
n00b
n00b


Joined: 07 Dec 2014
Posts: 13

PostPosted: Wed Dec 17, 2014 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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