Quansight / pearu-sandbox

Pearu's sandbox
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

include/llvm/Object/SymbolicFile.h:48:31: error: expected ')' #8

Open pearu opened 5 years ago

pearu commented 5 years ago
In file included from /home/pearu/work/miniconda3/envs/omniscidb-cpu-dev/include/llvm/Object/ObjectFile.h:24:
/home/pearu/work/miniconda3/envs/omniscidb-cpu-dev/include/llvm/Object/SymbolicFile.h:48:31: error: expected ')'
  OS << "(" << format("0x%08" PRIxPTR, D.p) << " (" << format("0x%08x", D.d.a)
                              ^
<command line>:22:17: note: expanded from here
#define PRIxPTR p
                ^
/home/pearu/work/miniconda3/envs/omniscidb-cpu-dev/include/llvm/Object/SymbolicFile.h:48:22: note: to match this '('
  OS << "(" << format("0x%08" PRIxPTR, D.p) << " (" << format("0x%08x", D.d.a)

Appearances:

Solution:

export CXXFLAGS="$CXXFLAGS -D__STDC_FORMAT_MACROS"