Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-libs/elfutils-0.176-r1: C compiler cannot create ...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
thunderbird32
n00b
n00b


Joined: 25 Sep 2019
Posts: 3

PostPosted: Wed Sep 25, 2019 2:40 pm    Post subject: dev-libs/elfutils-0.176-r1: C compiler cannot create ... Reply with quote

[Moderator edit: Changed title to try to attract relevant answers. Original title was Unable to Emerge Gentoo-Sources, but the problem isn't about sys-kernel/gentoo-sources. Rather, the poster wanted sys-kernel/gentoo-sources and got a failure in a prerequisite package. -Hu]

Hello,

I'm attempting to install Gentoo on a Powermac G5, and am following the PPC64 handbook. I'm currently on the "Installing the sources" step on the Kernel page. When I attempt to run the command: "emerge --ask sys-kernel/gentoo-sources "
I get the error:
Code:

...
checking for powerpc64-unknown-linux-gnu-gcc... powerpc64-unknown-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/dev-libs/elfutils-0.176-r1/work/elfutils-0.176-.ppc64':
configure: error: C compiler cannot create executables
See `config.log' for more details
...

See here for complete results (http://dpaste.com/241H6QN)

Here is the build log: http://dpaste.com/2HPQM42
The output of the command "emerge --info '=dev-libs/elfutils-0.176-r1::gentoo'" http://dpaste.com/32F82G2
and the output of the command "emerge -pqv '=dev-libs/elfutils-0.176-r1::gentoo'" http://dpaste.com/2TT8987

Any help would be greatly appreciated. Thank you!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30888
Location: here

PostPosted: Wed Sep 25, 2019 3:06 pm    Post subject: Reply with quote

You are sure that -march=native works with ppc64? Try this configuration for G5
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
thunderbird32
n00b
n00b


Joined: 25 Sep 2019
Posts: 3

PostPosted: Wed Sep 25, 2019 3:32 pm    Post subject: Reply with quote

I'm not sure, no. This is the first time I've done a PPC64 install. I'll try your recommendation and get back to you. Thank you!
Back to top
View user's profile Send private message
thunderbird32
n00b
n00b


Joined: 25 Sep 2019
Posts: 3

PostPosted: Wed Sep 25, 2019 3:50 pm    Post subject: Reply with quote

fedeliallalinea wrote:
You are sure that -march=native works with ppc64? Try this configuration for G5


That seems to have worked! The only thing I didn't change was the CHOST variable. I left that set to PPC64. Regardless it seems to be working as expected currently.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30888
Location: here

PostPosted: Wed Sep 25, 2019 4:09 pm    Post subject: Reply with quote

thunderbird32 wrote:
That seems to have worked! The only thing I didn't change was the CHOST variable. I left that set to PPC64. Regardless it seems to be working as expected currently.

CHOST should never be changed
Code:
# 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.

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Wed Sep 25, 2019 6:06 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on PPC.

- 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
schwarzygesetzlos
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 185
Location: Funeralopolis

PostPosted: Fri Sep 27, 2019 3:06 pm    Post subject: Reply with quote

For ppc/ppc64 its -mcpu= instead of -march=.
See: https://gcc.gnu.org/onlinedocs/gcc-8.3.0/gcc/RS_002f6000-and-PowerPC-Options.html#RS_002f6000-and-PowerPC-Options
_________________
Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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