Bug 208891 - fatal error in clang compiling rocksdb
Summary: fatal error in clang compiling rocksdb
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-18 13:02 UTC by dfr
Modified: 2016-06-05 08:57 UTC (History)
2 users (show)

See Also:


Attachments
source and run script (490.83 KB, application/octet-stream)
2016-04-18 13:05 UTC, dfr
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dfr 2016-04-18 13:02:19 UTC
$ git clone https://github.com/facebook/rocksdb.git
$ cd rocksdb
$ CXX=c++ gmake
Makefile:101: Warning: Compiling in debug mode. Don't use the resulting binary in production
...
  CC       table/block_based_table_reader.o
Assertion failed: (E != nullptr && "Expected a valid initializer expression"), function getNewExprFromInitListOrExpr, file /usr/src/lib/clang/libclangsema/../../../contrib/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp, line 2446.
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.7.0 (tags/RELEASE_370/final 246257) 20150906
Target: x86_64-unknown-freebsd11.0
Thread model: posix
c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/block_based_table_reader-2e94b7.cpp
c++: note: diagnostic msg: /tmp/block_based_table_reader-2e94b7.sh

c++: note: diagnostic msg: 

********************
Makefile:1339: recipe for target 'table/block_based_table_reader.o' failed
gmake: *** [table/block_based_table_reader.o] Error 254
Comment 1 dfr 2016-04-18 13:05:07 UTC
Created attachment 169431 [details]
source and run script
Comment 2 dfr 2016-05-10 17:20:44 UTC
This builds with clang-3.7.1 from ports
Comment 3 dfr 2016-06-05 08:57:58 UTC
FreeBSD-current upgraded to clang-3.8 which builds rocksdb just fine