Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc update on install
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
something-something-horri
n00b
n00b


Joined: 23 Jun 2018
Posts: 28
Location: earth

PostPosted: Sat Jun 23, 2018 5:01 am    Post subject: gcc update on install Reply with quote

I want to update my gcc from 6.4.0-r1 to 7.3.0-r3 for the purpose of getting rid of the spectre bug and I'm still having the same problem with the compiling ebuild failing no matter how much I changed the cflags (spent the good half of my day).
I'm posting this on another machine so bare with me while I manually type out the url's.
build enviroment: https://paste.pound-python.org/show/lghgeTxENVb07JxWyDP1/
gcc-info: https://paste.pound-python.org/show/zqfnoDHsZDn6MzsoooW5/
gcc-pqv: https://paste.pound-python.org/show/Qu0nbtiJKP7fDtiJKP7fDtWdfntr/
I am also having another problem with sys-apps/policycoreutils compiling because of cflags that only works in the newer version of gcc.
https://paste.pound-python.org/show/7q5FCXKfTcUI9JGY69BR/
If you guys tell me how you went about debugging this it would be great.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1014

PostPosted: Sat Jun 23, 2018 9:06 am    Post subject: Reply with quote

Have you checked your use flags as well?? Also one of your files isn't properly linked the -pqv
Shouldn't there also be a build log somewhere that is missing from your post? Or does it not actually get to the compilation phase...what is the error message you're getting!?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jun 23, 2018 11:22 am    Post subject: Reply with quote

something-something-horri,

Welcome to Gentoo.

Please put the gcc build log onto a pastebin site. That will tell what failed and maybe why.
The message when the build fails tells where the log is.

As you say, -mindirect-branch=thunk and friends needs gcc-7.x

-- edit --

Code:
CFLAGS="-march=core2 -O2 -fforce-addr -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-all -fstack-check -ffunction-sections -fdata-sections -fno-plt -mindirect-branch=thunk -mfunction-return=thunk -fomit-frame-pointer -fgcse-sm -fmodulo-sched -fmodulo-sched-allow-regmoves -ftree-loop-distribution -fivopts -fopenmp"

You may not pass those -mindirect-branch=thunk -mfunction-return=thunk options to gcc until you have gcc-7 active.
_________________
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
something-something-horri
n00b
n00b


Joined: 23 Jun 2018
Posts: 28
Location: earth

PostPosted: Sat Jun 23, 2018 2:15 pm    Post subject: Reply with quote

NeddySeagoon wrote:
something-something-horri,

Welcome to Gentoo.

Please put the gcc build log onto a pastebin site. That will tell what failed and maybe why.
The message when the build fails tells where the log is.

As you say, -mindirect-branch=thunk and friends needs gcc-7.x

-- edit --

Code:
CFLAGS="-march=core2 -O2 -fforce-addr -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-all -fstack-check -ffunction-sections -fdata-sections -fno-plt -mindirect-branch=thunk -mfunction-return=thunk -fomit-frame-pointer -fgcse-sm -fmodulo-sched -fmodulo-sched-allow-regmoves -ftree-loop-distribution -fivopts -fopenmp"

You may not pass those -mindirect-branch=thunk -mfunction-return=thunk options to gcc until you have gcc-7 active.


I've tried that and it didn't work. The same thing.
Code:
Internal compiler error: in fail, at selftest.c:46
Not sure where that file is but it's just not compiling. here is another snip that may be of use here
Code:
/var/tmp/portage/sys-devel/gcc-7.3.0-r3/function-tests.c:357 verify_three_block_cfg: FAIL: ASSERT_EQ ((3), (((fun)->cfg->x_n_basic_blocks)))

I may have made a mistake copying over the wgetpate url so bare with me.
emerge info: https://paste.pound-python.org/show/emsch1jxAymj76bDCBNE/
emerge -pqv: https://paste.pound-python.org/show/gyAyI129WwglUD5F0Mhc/ (I don't know why this link doesn't work)
build log: https://paste.pound-python.org/show/V66tnBEVC9qT0Sd9oviA/
build eviroment: https://paste.pound-python.org/show/gH5BN4FAjn6IzASlYYJH/

Do you know where I could upload the build-logs.tar.bz?
Back to top
View user's profile Send private message
something-something-horri
n00b
n00b


Joined: 23 Jun 2018
Posts: 28
Location: earth

PostPosted: Sat Jun 23, 2018 8:59 pm    Post subject: Reply with quote

LIsLinuxIsSogood wrote:
Have you checked your use flags as well?? Also one of your files isn't properly linked the -pqv
Shouldn't there also be a build log somewhere that is missing from your post? Or does it not actually get to the compilation phase...what is the error message you're getting!?

The thing is compiling right now without the debug use flag. Is that important?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jun 23, 2018 9:08 pm    Post subject: Reply with quote

something-something-horri,

Only set USE=debug on a per package basis. It renders some packages useless.
_________________
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
something-something-horri
n00b
n00b


Joined: 23 Jun 2018
Posts: 28
Location: earth

PostPosted: Sat Jun 23, 2018 10:40 pm    Post subject: Reply with quote

NeddySeagoon wrote:
something-something-horri,

Only set USE=debug on a per package basis. It renders some packages useless.


Well, gcc is compiled but the c compiler failed to emerge libtools. I'm rebuilding gcc now that I'm on 7.3.0-r3. It's proably going to take a couple of tries and some tweaking c and use flags.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jun 23, 2018 11:24 pm    Post subject: Reply with quote

something-something-horri,

Pastebin the build log when something fails to build.
_________________
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