Skip to content

Power9 build fails with system compiler and -mcpu=native (default) #9451

@Flamefire

Description

@Flamefire

I'm trying to build the Java-1.8 EC on Power9 and the configure process aborts. I tracked that to the following:

/usr/bin/gcc -mcpu=native /tmp/conftest.c
cc1: error: unrecognized argument in option '-mcpu=power9'
cc1: note: valid arguments to '-mcpu=' are: 401 403 405 405fp 440 440fp 464 464fp 476 476fp 505 601 602 603 603e 604 604e 620 630 740 7400 7450 750 801 821 823 8540 8548 860 970 G3 G4 G5 a2 cell e300c2 e300c3 e500mc e500mc64 e5500 e6500 ec603e native power3 power4 power5 power5+ power6 power6x power7 power8 powerpc powerpc64 powerpc64le rs64 titan

I have no idea, why "native" is mapped to a (non-existing) "power9", but it seems the system compiler cannot reliably be used.

This is the first package where I encountered this issue, no idea why others didn't fail before. E.g. AFAIK GCC itself is built with the system compiler first.

The version is

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions