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

[Bug]: Compilation error on mac: xcode command line interface 15.3 #1648

Open
lperron opened this issue Apr 5, 2024 · 0 comments
Open

[Bug]: Compilation error on mac: xcode command line interface 15.3 #1648

lperron opened this issue Apr 5, 2024 · 0 comments

Comments

@lperron
Copy link

lperron commented Apr 5, 2024

Describe the issue

external/com_google_absl/absl/strings/internal/str_split_internal.h:286:25: error: initializing pointer member 'text_' with the stack address of parameter 'input_text' [-Werror,-Wdangling-field]
: text_(std::move(input_text)),
^~~~~~~~~~
external/com_google_absl/absl/strings/str_split.h:520:10: note: in instantiation of member function 'absl::lts_20240116::strings_internal::Splitter<absl::lts_20240116::ByChar, absl::lts_20240116::AllowEmpty, std::_1::basic_string_view>::Splitter' requested here
return strings_internal::Splitter<DelimiterType, AllowEmpty,
^
external/com_google_protobuf/src/google/protobuf/io/printer.cc:150:44: note: in instantiation of function template specialization 'absl::lts_20240116::StrSplit' requested here
for (absl::string_view line_text : absl::StrSplit(format_string, '\n')) {
^
external/com_google_absl/absl/strings/internal/str_split_internal.h:472:14: note: pointer member declared here
StringType text
;
^

Steps to reproduce the problem

checkout google/or-tools on the main branch
compile with bazel

What version of Abseil are you using?

20240116.1

What operating system and version are you using?

Darwin XXX 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:11:05 PDT 2024; root:xnu-10063.101.17~1/RELEASE_X86_64 x86_64

What compiler and version are you using?

Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: x86_64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

What build system are you using?

bazel 7.1.1

Additional context

No response

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

1 participant