Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 5.4 failed to emerge
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
RezVIKONG99
n00b
n00b


Joined: 25 Aug 2016
Posts: 2

PostPosted: Thu Aug 25, 2016 3:20 pm    Post subject: GCC 5.4 failed to emerge Reply with quote

Good morning,
im installing a fresh Gentoo and before download the Gentoo Sources 4.7.2 and configuring the Kernel, i want to update GCC from version 4.9.3 to version 5.4 but i got an emerge fail.
I dont know how to correctly post the error so i simply paste the final part of emerge...
thanks in advance

Code:

configure: error: in `/var/tmp/portage/sys-devel/gcc-5.4.0/work/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
 * ERROR: sys-devel/gcc-5.4.0::gentoo failed (configure phase):
 *   failed to run configure
 *
 * Call stack:
 *     ebuild.sh, line  133:  Called src_configure
 *   environment, line 3753:  Called toolchain_src_configure
 *   environment, line 4875:  Called die
 * The specific snippet of code:
 *       CONFIG_SHELL="/bin/bash" bash "${S}"/configure "${confgcc[@]}" || die "failed to run configure";
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-5.4.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-5.4.0::gentoo'`.
 *
 * Please include /var/tmp/portage/sys-devel/gcc-5.4.0/work/gcc-build-logs.tar.bz2 in your bug report.
 *
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-5.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-5.4.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-5.4.0/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-5.4.0/work/gcc-5.4.0'


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22011
Location: here

PostPosted: Thu Aug 25, 2016 3:33 pm    Post subject: Reply with quote

Can you post your make.conf, please?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
RezVIKONG99
n00b
n00b


Joined: 25 Aug 2016
Posts: 2

PostPosted: Sat Aug 27, 2016 9:20 am    Post subject: Reply with quote

fedeliallalinea wrote:
Can you post your make.conf, please?


Hi thanks for you question that serves me as an hint :)
All the problems was related to -march=skylake...
now i'm using -march=native and all work well now...
now i can keep going forward the installation ;)
Btw sorry if i missed to post a complete log but i'm new to linux in general and i'm using Gentoo as hobby/education purpose.
I like the Handbook cuz is very well explained in an easy way too (i'm a pc amateur so even if i don't work in this sector i'm understanding well the concepts)
Back to top
View user's profile Send private message
sabayonino
l33t
l33t


Joined: 03 Jan 2012
Posts: 706

PostPosted: Sat Aug 27, 2016 11:57 am    Post subject: Reply with quote

Hi

according to GCC 5.3 series and newer

for intel skylake there are some features

Quote:
Target Specific Changes
IA-32/x86-64

GCC now supports the Intel CPU named Skylake with AVX-512 extensions through -march=skylake-avx512. The switch enables the following ISA extensions: AVX-512F, AVX512VL, AVX-512CD, AVX-512BW, AVX-512DQ.



you can try "-march=skylake-avx512" :roll:

check all extensions running
native
Code:
gcc -march=native -E -v - </dev/null 2>&1 | grep cc1

_________________
BOINC ed il calcolo distribuito

My LiveRecoverySystem Repo
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13982

PostPosted: Sat Aug 27, 2016 5:14 pm    Post subject: Reply with quote

Beware that gcc does not sanity check your use of -march=specific-arch. You can ask it to build binaries that will not run on your system and it will obey you without any warning. The first sign of trouble will be when the built programs crash with an illegal instruction signal. If you are lucky, that will happen before you have built anything important with the unsupported -march value.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3691
Location: Hamburg

PostPosted: Sat Aug 27, 2016 6:58 pm    Post subject: Reply with quote

Code:
CFLAGS="-O2 -pipe -march=native"
is a good starting point IMO.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43385
Location: 56N 3W

PostPosted: Sat Aug 27, 2016 7:48 pm    Post subject: Reply with quote

sabayonino,

You have to be using gcc-5.3 first ...
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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