Skip to content

macOS AGI build broken under XCode 14.1 #1240

@rosasco-wk

Description

@rosasco-wk

SUMMARY

Build breakage for deprecated function mktemp().

CONFIGURATION

M1 MBP running XCode 14.1 and macOS 12.6.1

REPRO STEPS

CC=clang-12 bazel build --subcommands --config fuchsia_x64 //gapii/fuchsia:gapii

ERROR

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
core/cc/dl_loader.cpp:52:7: error: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead. [-Werror,-Wdeprecated-declarations]
if (mktemp(tmp) != nullptr) {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/stdlib.h:210:1: note: 'mktemp' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.")

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