Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rtouze opened this issue May 25, 2018 · 7 comments
Closed

Comments

@rtouze
Copy link

rtouze commented May 25, 2018

  • 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
@rtouze
Copy link
Author

rtouze commented May 25, 2018

Fix proposal:
configure.diff.gz

@richardlau
Copy link
Member

This is being addressed by #20394.

@Trott
Copy link
Member

Trott commented Nov 21, 2018

#20394 landed in June. Should this be closed? @richardlau

@richardlau
Copy link
Member

#20394 landed in June. Should this be closed? @richardlau

I assume so. Please reopen if this is still occurring.

@smallwolf1991
Copy link

smallwolf1991 commented Dec 30, 2018

Try upgrade binutils version >= 2.23, the detail see configure.py

    openssl110_asm_supported = \
      ('gas_version' in variables and float(variables['gas_version']) >= 2.23) or \
      ('xcode_version' in variables and float(variables['xcode_version']) >= 5.0) or \
      ('llvm_version' in variables and float(variables['llvm_version']) >= 3.3) or \
      ('nasm_version' in variables and float(variables['nasm_version']) >= 2.10)

@smallwolf1991
Copy link

Try upgrade binutils version >= 2.23, the detail see configure.py

    openssl110_asm_supported = \
      ('gas_version' in variables and float(variables['gas_version']) >= 2.23) or \
      ('xcode_version' in variables and float(variables['xcode_version']) >= 5.0) or \
      ('llvm_version' in variables and float(variables['llvm_version']) >= 3.3) or \
      ('nasm_version' in variables and float(variables['nasm_version']) >= 2.10)

My environment

  • Centos 6.9
  • GCC 4.4.9 upgrade to 6.4.0
  • Binutils 2.20.5 update to 2.25.1

@rtouze
Copy link
Author

rtouze commented Jan 2, 2019

It's OK now. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants