Opened 3 years ago

Last modified 2 years ago

#65061 assigned defect

gcc: --build=${build_arch}- leads to incorrect names in case of PPC

Reported by: barracuda156 Owned by: catap (Kirill A. Korinsky)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, leopard, snowleopard Cc: cooljeanius (Eric Gallager)
Port: gcc7, gcc10, gcc11, gcc12

Description

I believe this is wrong:

platform darwin {
    configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
}

On PowerPC this results in names of the form ppc-apple-darwin, while it should be powerpc-apple-darwin. (Now, compiler still works, so I do not know if it makes difference in practical terms.)

Change History (5)

comment:1 Changed 3 years ago by catap (Kirill A. Korinsky)

Well... all this ports aren't mine :)

comment:2 in reply to:  1 Changed 3 years ago by barracuda156

Replying to catap:

Well... all this ports aren't mine :)

Should I re-assign?

  1. S. What do you think on the matter in question, anyway?

comment:3 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:4 Changed 3 years ago by barracuda156

Iain recommends using correct target triple names: https://github.com/iains/darwin-toolchains-start-here/discussions/6#discussioncomment-2624261

looking at the output of a top-level configure:

target='powerpc-apple-darwin9'
target_alias=''
target_cpu='powerpc'
target_noncanonical='ppc-apple-darwin9'
target_os='darwin9'
target_subdir='ppc-apple-darwin9'
target_vendor='apple'
tooldir='${exec_prefix}/ppc-apple-darwin9'

So it looks like the canonical name will be correct (i.e. it translates ppc => powerpc) but there will be a mixture of ppc and powerpc used in the installation paths .. For my 0.02GBP .. I'd recommend just using the correct target triple and not look for troubles ;)

comment:5 Changed 2 years ago by barracuda156

Port: gcc12 added

The issue is also relevant to gcc12.

Note: See TracTickets for help on using tickets.