We're updating the issue view to help you get more done. 

Cygwin Build w clang fails generating dependencies

Description

Cygwin building with Clang (the default for Cygwin when clang is available) is failing while generating dependencies.

The problem is the compiler is being run without the C++11 option that is present in the main build step. Which causes errors on Unicode u"string literals"

1 2 3 4 5 generating dependency information for rbbiscan.cpp rbbiscan.cpp:547:24: error: pasting formed 'u"chain"', an invalid preprocessing token if (opt == UNICODE_STRING("chain", 5)) { ^ ./unicode/unistr.h:117:79: note: expanded from macro 'UNICODE_STRING'

Note that the actual compile lines are correct (for files that didn't fail while generating dependencies).

1 clang++ -D_REENTRANT -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1 -DU_HAVE_STRTOD_L=1 -I. "-DDEFAULT_ICU_PLUGINS=\"/usr/local/lib/icu\" " -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION -O3 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -c -DPIC -o unifiedcache.o unifiedcache.cpp

I don't know how to fix this, or I would have just done so along with the other Cygwin fixes.

g++ on Cygwin does not have this problem.

Status

Assignee

Andy Heninger

Reporter

Andy Heninger

Labels

None

Reviewer

None

Time Needed

None

Start date

None

Components

Fix versions

Priority

medium