Skip to content

Fails to build on Mac OS Catalina 10.15.3 #197

@kpewing

Description

@kpewing

hammer fails to build on Mac OS Catalina 10.15.3. It seems to be pointer incompatibilities created when managing vasprint() on BSD-like systems.

(master *) > scons -Q --debug=findlibs
clang -o build/opt/src/platform_bsdlike.os -c -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-attributes -Wno-unused-variable -O3 -fPIC -D_POSIX_C_SOURCE=200809L build/opt/src/platform_bsdlike.c
build/opt/src/platform_bsdlike.c:33:19: error: incompatible pointer types
      passing 'char **' to parameter of type 'char *'; dereference with *
      [-Werror,-Wincompatible-pointer-types]
  return vsprintf(strp, fmt, arg);
                  ^~~~
                  *
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:66:29: note:
      expanded from macro 'vsprintf'
  __builtin___vsprintf_chk (str, 0, __darwin_obsz(str), format, ap)
                            ^~~
1 error generated.
scons: *** [build/opt/src/platform_bsdlike.os] Error 1

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