orthoxerox opened a new issue, #662:
URL: https://github.com/apache/datafusion-comet/issues/662
### Describe the bug
When I try building Comet, I get an error that `likely`/`unlikely` functions
have been configured out by the attributes. I've tried both Rust 1.79
(default), 1.76 (the oldest version DataFusion requires) and 1.81.0-nightly
(d9284afea 2024-07-14) the result is the same:
```
Compiling zstd v0.11.2+zstd.1.5.2
error[E0432]: unresolved imports `crate::likely`, `crate::unlikely`
--> core/src/common/bit.rs:24:5
|
24 | likely,
| ^^^^^^ no `likely` in the root
25 | parquet::{data_type::AsBytes, util::bit_packing::unpack32},
26 | unlikely,
| ^^^^^^^^ no `unlikely` in the root
|
note: found an item that was configured out
--> core/src/lib.rs:118:4
|
118 | fn likely(b: bool) -> bool {
| ^^^^^^
note: found an item that was configured out
--> core/src/lib.rs:126:4
|
126 | fn unlikely(b: bool) -> bool {
| ^^^^^^^^
error[E0432]: unresolved import `crate::unlikely`
--> core/src/execution/datafusion/expressions/sum_decimal.rs:32:5
|
32 | use crate::unlikely;
| ^^^^^^^^^^^^^^^ no `unlikely` in the root
|
note: found an item that was configured out
--> core/src/lib.rs:126:4
|
126 | fn unlikely(b: bool) -> bool {
| ^^^^^^^^
error[E0432]: unresolved import `crate::unlikely`
--> core/src/parquet/read/levels.rs:27:5
|
27 | unlikely,
| ^^^^^^^^ no `unlikely` in the root
|
note: found an item that was configured out
--> core/src/lib.rs:126:4
|
126 | fn unlikely(b: bool) -> bool {
| ^^^^^^^^
error[E0432]: unresolved import `crate::unlikely`
--> core/src/parquet/read/values.rs:29:5
|
29 | unlikely,
| ^^^^^^^^ no `unlikely` in the root
|
note: found an item that was configured out
--> core/src/lib.rs:126:4
|
126 | fn unlikely(b: bool) -> bool {
| ^^^^^^^^
For more information about this error, try `rustc --explain E0432`.
error: could not compile `datafusion-comet` (lib) due to 4 previous errors
make: *** [Makefile:81: release-nogit] Error 101
```
### Steps to reproduce
docker run -it ubuntu
apt update
apt upgrade -y
apt install -y openjdk-8-jdk-headless gcc curl git make
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
git clone https://github.com/apache/datafusion-comet.git
cd datafusion-comet
make release-nogit PROFILES="-Pspark-3.3 -Pscala-2.13"
### Expected behavior
_No response_
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]