Skip to content

MSYS: unrecognized option '--hash-style=gnu' #83

@mahaase

Description

@mahaase

First things first: Thanks for the fix: BobBuildTool/bob#395 👍

now there is a problem with the basement: unrecognized option '--hash-style=gnu'

LDFLAGS: "-Wl,-O1 -Wl,--hash-style=gnu"

CMake Error at C:/msys64/home/mhaase/ws/fdt.bobrecipes/dev/dist/devel/win/cmake/1/workspace/usr/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "C:/msys64/usr/bin/gcc.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/msys64/home/mhaase/ws/fdt.bobrecipes/dev/build/devel/parasoft-cpptest/x86_64-pc-msys/1/workspace/build/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/msys64/home/mhaase/ws/fdt.bobrecipes/dev/dist/devel/win/ninja/1/workspace/ninja.exe cmTC_a1873 && [1/2] Building C object CMakeFiles/cmTC_a1873.dir/testCCompiler.c.obj
    [2/2] Linking C executable cmTC_a1873.exe
    FAILED: cmTC_a1873.exe
    cmd.exe /C "cd . && C:\msys64\usr\bin\gcc.exe -Os -pipe -fPIC -DCPPTEST_SHARED=0 -DCPPTEST_NO_THREADS -DCPPTEST_FILE_COMMUNICATION  -Wl,-O1 -Wl,--hash-style=gnu CMakeFiles/cmTC_a1873.dir/testCCompiler.c.obj  -o cmTC_a1873.exe -Wl,--out-implib,libcmTC_a1873.dll.a -Wl,--major-image-version,0,--minor-image-version,0   && cd ."
    /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: unrecognized option '--hash-style=gnu'
    /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: use the --help option for usage information
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions