Comments (9)
@photis it's done by putting some raw html in your comment, something like:
<details><summary>text to show next to triangle</summary>
Whatever you want to show inside collapsed block
</details>
(the blank lines are needed to have the inner part rendered as markdown) e.g.:
text to show next to triangle
Whatever you want to show inside collapsed block
from croaring-rs.
An update to my own comment: after I removed the clang
package as shown below, and cargo build
again, I got no more build errors. Beats me what was going on (what is the "exp5" in the removal line???), but leaving this here as a suggestion for future problem owners.
$ sudo apt-get purge --auto-remove clang
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
clang*
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
After this operation, 22.5 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 245541 files and directories currently installed.)
Removing clang (1:6.0-41~exp5~ubuntu1) ...
Processing triggers for man-db (2.8.3-2) ...
$
from croaring-rs.
Hi @mcdallas,
Sorry for not getting back to you earlier. I just did a fresh install of Ubuntu 18.04 in a VM and was able to compile croaring-rs
by installing clang
(apt-get install clang
) and libclang
(apt-get install libclang1-6.0
). I see : <bindgen::ensure_libclang_is_loaded::LIBCLANG as core::ops::deref::Deref>::deref
in your stacktrace so perhaps you are missing libclang
?
from croaring-rs.
Thanks for replying. Unfortunately that's not it as I have the latest clang
and libclang1-6.0
installed.
from croaring-rs.
I can confirm that it works using a VM with Ubuntu18.04. The problem seems to be specific to WSL
from croaring-rs.
I'm running into the exact same error on my local hardware (Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz, 8 cores) with Ubuntu Linux 18.04.1 (Linux 4.15.0-33-generic on x86_64)
Rust version 1.28
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Log (now collapsed thanks to @Nemo157)
$ cargo build
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading libc v0.2.43
Downloading log v0.4.5
Downloading env_logger v0.5.13
Downloading cfg-if v0.1.5
Downloading regex v1.0.4
Downloading lazy_static v1.1.0
Downloading bitflags v1.0.4
Downloading termcolor v1.0.3
Downloading memchr v2.0.2
Downloading utf8-ranges v1.0.1
Downloading thread_local v0.3.6
Downloading aho-corasick v0.6.8
Downloading cc v1.0.23
Compiling version_check v0.1.4
Compiling libc v0.2.43
Compiling cc v1.0.23
Compiling ucd-util v0.1.1
Compiling regex v1.0.4
Compiling glob v0.2.11
Compiling quick-error v1.2.2
Compiling unicode-xid v0.1.0
Compiling unicode-width v0.1.5
Compiling cfg-if v0.1.5
Compiling utf8-ranges v1.0.1
Compiling bitflags v1.0.4
Compiling bindgen v0.37.4
Compiling strsim v0.7.0
Compiling ansi_term v0.11.0
Compiling vec_map v0.8.1
Compiling termcolor v1.0.3
Compiling peeking_take_while v0.1.2
Compiling gcc v0.3.54
Compiling humantime v1.1.1
Compiling proc-macro2 v0.3.5
Compiling log v0.4.5
Compiling textwrap v0.10.0
Compiling regex-syntax v0.6.2
Compiling lazy_static v1.1.0
Compiling clang-sys v0.23.0
Compiling memchr v2.0.2
Compiling memchr v1.0.2
Compiling atty v0.2.11
Compiling which v1.0.5
Compiling libloading v0.5.0
Compiling aho-corasick v0.6.8
Compiling nom v3.2.1
Compiling clap v2.32.0
Compiling quote v0.5.2
Compiling thread_local v0.3.6
Compiling cexpr v0.2.3
Compiling env_logger v0.5.13
Compiling croaring-sys v0.3.6 (file:///home/photis/Projects/croaring-rs/croaring-sys)
error: failed to run custom build command for `croaring-sys v0.3.6 (file:///home/photis/Projects/croaring-rs/croaring-sys)`
process didn't exit successfully: `/home/photis/Projects/croaring-rs/target/debug/build/croaring-sys-f36e0c4a7d2ab2f9/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-std=c11" "-march=native" "-O3" "-Wall" "-Wextra" "-o" "/home/photis/Projects/croaring-rs/target/debug/build/croaring-sys-a92da1a15ddb0f83/out/CRoaring/roaring.o" "-c" "CRoaring/roaring.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
AR_x86_64-unknown-linux-gnu = None
AR_x86_64_unknown_linux_gnu = None
HOST_AR = None
AR = None
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
running: "ar" "crs" "/home/photis/Projects/croaring-rs/target/debug/build/croaring-sys-a92da1a15ddb0f83/out/libroaring.a" "/home/photis/Projects/croaring-rs/target/debug/build/croaring-sys-a92da1a15ddb0f83/out/CRoaring/roaring.o"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
cargo:rustc-link-lib=static=roaring
cargo:rustc-link-search=native=/home/photis/Projects/croaring-rs/target/debug/build/croaring-sys-a92da1a15ddb0f83/out
--- stderr
/usr/include/clang/6.0.0/include/xmmintrin.h:2968:44: error: token is not a valid binary operator in a preprocessor subexpression
/usr/include/clang/6.0.0/include/emmintrin.h:1414:10: error: invalid conversion between vector type '__m128' (vector of 4 'float' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/emmintrin.h:2280:66: error: cannot convert between vector values of different size ('__v16hu' (vector of 16 'unsigned short' values) and 'int')
/usr/include/clang/6.0.0/include/emmintrin.h:2304:64: error: cannot convert between vector values of different size ('__v8su' (vector of 8 'unsigned int' values) and 'int')
/usr/include/clang/6.0.0/include/avx2intrin.h:151:66: error: cannot convert between vector values of different size ('__v32hu' (vector of 32 'unsigned short' values) and 'int')
/usr/include/clang/6.0.0/include/avx2intrin.h:161:66: error: cannot convert between vector values of different size ('__v16su' (vector of 16 'unsigned int' values) and 'int')
/usr/include/clang/6.0.0/include/fmaintrin.h:49:10: error: invalid conversion between vector type '__m128' (vector of 4 'float' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/fmaintrin.h:55:10: error: invalid conversion between vector type '__m128d' (vector of 2 'double' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/fmaintrin.h:73:10: error: invalid conversion between vector type '__m128' (vector of 4 'float' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/fmaintrin.h:79:10: error: invalid conversion between vector type '__m128d' (vector of 2 'double' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/fmaintrin.h:97:10: error: invalid conversion between vector type '__m128' (vector of 4 'float' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/fmaintrin.h:103:10: error: invalid conversion between vector type '__m128d' (vector of 2 'double' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/fmaintrin.h:121:10: error: invalid conversion between vector type '__m128' (vector of 4 'float' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/fmaintrin.h:127:10: error: invalid conversion between vector type '__m128d' (vector of 2 'double' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/avx512fintrin.h:223:10: error: invalid conversion between vector type '__m512i' (vector of 8 'long long' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/avx512fintrin.h:231:10: error: invalid conversion between vector type '__m512i' (vector of 8 'long long' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/avx512fintrin.h:247:10: error: invalid conversion between vector type '__m512i' (vector of 8 'long long' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/avx512fintrin.h:256:10: error: invalid conversion between vector type '__m512i' (vector of 8 'long long' values) and integer type 'int' of different size
/usr/include/clang/6.0.0/include/avx512fintrin.h:322:10: error: invalid conversion between vector type '__m512i' (vector of 8 'long long' values) and integer type 'int' of different size
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/usr/include/clang/6.0.0/include/xmmintrin.h:2968:44: error: token is not a valid binary operator in a preprocessor subexpression, err: true
/usr/include/clang/6.0.0/include/emmintrin.h:1414:10: error: invalid conversion between vector type '__m128' (vector of 4 'float' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/emmintrin.h:2280:66: error: cannot convert between vector values of different size ('__v16hu' (vector of 16 'unsigned short' values) and 'int'), err: true
/usr/include/clang/6.0.0/include/emmintrin.h:2304:64: error: cannot convert between vector values of different size ('__v8su' (vector of 8 'unsigned int' values) and 'int'), err: true
/usr/include/clang/6.0.0/include/avx2intrin.h:151:66: error: cannot convert between vector values of different size ('__v32hu' (vector of 32 'unsigned short' values) and 'int'), err: true
/usr/include/clang/6.0.0/include/avx2intrin.h:161:66: error: cannot convert between vector values of different size ('__v16su' (vector of 16 'unsigned int' values) and 'int'), err: true
/usr/include/clang/6.0.0/include/fmaintrin.h:49:10: error: invalid conversion between vector type '__m128' (vector of 4 'float' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/fmaintrin.h:55:10: error: invalid conversion between vector type '__m128d' (vector of 2 'double' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/fmaintrin.h:73:10: error: invalid conversion between vector type '__m128' (vector of 4 'float' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/fmaintrin.h:79:10: error: invalid conversion between vector type '__m128d' (vector of 2 'double' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/fmaintrin.h:97:10: error: invalid conversion between vector type '__m128' (vector of 4 'float' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/fmaintrin.h:103:10: error: invalid conversion between vector type '__m128d' (vector of 2 'double' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/fmaintrin.h:121:10: error: invalid conversion between vector type '__m128' (vector of 4 'float' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/fmaintrin.h:127:10: error: invalid conversion between vector type '__m128d' (vector of 2 'double' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/avx512fintrin.h:223:10: error: invalid conversion between vector type '__m512i' (vector of 8 'long long' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/avx512fintrin.h:231:10: error: invalid conversion between vector type '__m512i' (vector of 8 'long long' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/avx512fintrin.h:247:10: error: invalid conversion between vector type '__m512i' (vector of 8 'long long' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/avx512fintrin.h:256:10: error: invalid conversion between vector type '__m512i' (vector of 8 'long long' values) and integer type 'int' of different size, err: true
/usr/include/clang/6.0.0/include/avx512fintrin.h:322:10: error: invalid conversion between vector type '__m512i' (vector of 8 'long long' values) and integer type 'int' of different size, err: true
fatal error: too many errors emitted, stopping now [-ferror-limit=], err: true
thread 'main' panicked at 'Unable to generate bindings: ()', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Sorry for the long code block, couldn't figure out how @mcdallas did that neat trick with the collapsing triangle. Teach me, please.
from croaring-rs.
@Nemo157 Cool! Thank you! 🤗
from croaring-rs.
Can you guys try version 0.3.8 of croaring-rs
? As reported by Travis it should build under various clang/gcc flavours.
from croaring-rs.
Closing this, let me know if this still an issue.
from croaring-rs.
Related Issues (20)
- Does it support java Roaring64NavigableMap? HOT 3
- Support for native serialization format HOT 1
- Possible Breaking changes to make HOT 7
- croaring-rs in RoaringBitmap organisation HOT 2
- Build failed HOT 5
- macOS Sonoma builds fail HOT 2
- Unable to build on macOS HOT 1
- Treemap::andnot_inplace clears the treemap when comparing to empty treemap HOT 2
- Expose roaring_read_uint32_iterator safely HOT 2
- Serialization always starts with same bytes HOT 1
- Consider supporting a later version of the bindgen HOT 1
- Deserialize on invalid bytes produces invalid Bitmap HOT 1
- Make -march=native entirely optional to the build in croaring-sys HOT 1
- Iterating over all values in bitmap seems slow HOT 5
- failed to build on macOS 11.0.1 (Big Sur) HOT 2
- Failed to build on Apple Silicon HOT 1
- How to manually open AVX2 support in CRoaring? HOT 1
- build failing on musl libc HOT 1
- Bundle pre-bindgen'd bindings for -sys package HOT 2
- Support for frozen methods
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from croaring-rs.