Skip to content

Configure fail to find assembler version when used with gcc and French locale #20957

@rtouze

Description

@rtouze
  • v10.2.1:
  • SMP Debian 4.15.11-1:
  • configure:

I tried to build v10.2.1 from sources on Debian:

Linux rtodevbox 4.15.0-2-amd64 #1 SMP Debian 4.15.11-1 (2018-03-20) x86_64 GNU/Linux

By default (without CC env var and any option), configure returns

ERROR: Did not find a new enough assembler, install one or build with
       --openssl-no-asm.
       Please refer to BUILDING.md

Found out that my locale is French and command used to get gas version returns:

gcc -Wa,-v -c -o /dev/null -x assembler /dev/null
# Version de l'assembleur GNU 2.30 (x86_64-linux-gnu) utilisant la version BFD (GNU Binutils for Debian) 2.30

Which won't match the regex GNU assembler version ([2-9]\.[0-9]+) to return gas version (line 291).

I'm not sure how you want to handle this, as it can occur with other locales as well.

Workarounds:

  • setting CC and CXX to clang ans clang++ (having llvm and clang installed)
  • Run configure with: LANG=en_EN.utf8 ./configure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions