Skip to content

BuildBreak: libtool on MacOS doesn't allow duplicated filenames #604

@nicolasnoble

Description

@nicolasnoble

When building the absl_strings static library, libtool emits a warning, which is in fact something that breaks later eventually: /Library/Developer/CommandLineTools/usr/bin/libtool: warning same member name (escaping.o) in output file used for input files

The gist is that you can't have two files in a MacOS static library with the same base filename, as one will override the other. Basically, Apple's libtool crops the directory name away, only to keep the base filename.

This breaks eventually deep into gRPC's build system, thanks to sanity checks provided by NodeJS' build system: grpc/grpc#21702

Suggest adding a suffix to this duplicated filename to make Apple's libtool happy:

"internal/escaping.cc"

Metadata

Metadata

Assignees

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