Menu

#70 Fix building with CLANG-9.0.0

Unstable_(example)
closed
None
5
2023-07-03
2019-09-25
No

Building with CLANG-9.0.0 fails with:

clang-9: error: unknown argument: '-maccumulate-outgoing-args'

In Make.defaults, with GCCVERSION := $(shell $(CC) -dumpversion | cut -f1 -d.), GCCVERSION becomes 9. GCCNEWENOUGH then gets set to 1 and -maccumulate-outgoing-args is added to CPPFLAGS. Evaluating the USING_CLANG condition at the beginning of the if-then-else statement fixes it.

1 Attachments

Discussion

  • Nigel Croxon

    Nigel Croxon - 2023-07-03
    • status: open --> closed
    • assigned_to: Nigel Croxon
     
  • Nigel Croxon

    Nigel Croxon - 2023-07-03

    commit 53b89f528ddf56dcf2ce58dff368ae4c960e4d40
    Author: Callum Farmer gmbr3@opensuse.org
    Date: Sat Jun 10 19:14:41 2023 +0100

    X86_64: fix clang
    
     

Log in to post a comment.