Handbook Talk:PPC64/Installation/Stage

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using ~~~~:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC)
: A reply [[User:Sally|Sally]] 04:28, 12 January 2025 (UTC)
:: Your reply ~~~~

no -march=native option for PPC

Talk status
This discussion needs help.
Tip: To get this fixed sooner, use {{Proposal}}.

The reference to -march (and presumably -mtune) in the CFLAGS and CXXFLAGS causes problems fow newbies. I added "-march=native" and ran into emerge build problems, first for the cpuid2cpuflags tool and then at the first step of kernel source download (elf utils). Build logs listed several issues and this option was among them so luckily I tried removing that from make.conf and then builds succeeded. --Exuberantmonkey (talk) 22:32, 9 May 2023 (UTC)

This is half resolved now but for a final fix, I suggest:
Find with T:51
{{#switch: {{Handbook Variable|architecture}} | alpha | amd64 | arm64 | arm | hppa |loong | | mips | riscv | x86 = A first setting is the <code>-march=</code> or <code>-mtune=</code> flag, which specifies the name of the target architecture. Possible options are described in the {{Path|make.conf.example}} file (as comments). A commonly used value is ''native'' as that tells the compiler to select the target architecture of the current system (the one users are installing Gentoo on). }} {{#switch: {{Handbook Variable|architecture}} | ppc | ppc64 = A first setting is the <code>-mpcu=</code> or <code>-mtune=</code> flag, which specifies the name of the target architecture. Possible options are described in the {{Path|make.conf.example}} file (as comments). A commonly used value is ''native'' as that tells the compiler to select the target architecture of the current system (the one users are installing Gentoo on). For suggestions on the correct <code>-mpcu=</code> to set then visit {{Link|Safe_CFLAGS#PowerPC_.2F_PowerPC_64}} }}
Sorry it's a mess but the switch template eats the proposal template.
Immolo (talk) 00:38, 12 November 2024 (UTC)