-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I am a GROMACS contributor and I am very curious about Lumol. I tried to compile it with Rust 1.75 and 1.76 nightly and I get the following error:
/home/vedran/workspace/lumol/target/debug/build/chemfiles-sys-7ef0e8e38b1e6bbe/out/build/chemfiles/external/xdrfile/src/xdrfile.c:2020:5: error: incompatible function pointer types initializing 'unsigned int (*)(XDR *)' (aka 'unsigned int (*)(struct XDR *)') with an expression of type 'int64_t (XDR *)' (aka 'long (struct XDR *)') [-Wincompatible-function-pointer-types]
xdrstdio_getpos, /* get offset in the stream */
^~~~~~~~~~~~~~~
/home/vedran/workspace/lumol/target/debug/build/chemfiles-sys-7ef0e8e38b1e6bbe/out/build/chemfiles/external/xdrfile/src/xdrfile.c:2021:5: error: incompatible function pointer types initializing 'int (*)(XDR *, unsigned int)' (aka 'int (*)(struct XDR *, unsigned int)') with an expression of type 'int(XDR *, int64_t, int)' (aka 'int (struct XDR *, long, int)') [-Wincompatible-function-pointer-types]
xdrstdio_setpos, /* set offset in the stream */
^~~~~~~~~~~~~~~
2 errors generated.
gmake[2]: *** [/home/vedran/workspace/lumol/target/debug/build/chemfiles-sys-7ef0e8e38b1e6bbe/out/build/chemfiles/external/xdrfile/CMakeFiles/xdrfile.dir/build.make:76: /home/vedran/workspace/lumol/target/debug/build/chemfiles-sys-7ef0e8e38b1e6bbe/out/build/chemfiles/external/xdrfile/CMakeFiles/xdrfile.dir/src/xdrfile.c.o] Greška 1
gmake[1]: *** [CMakeFiles/Makefile2:541: chemfiles/external/xdrfile/CMakeFiles/xdrfile.dir/all] Greška 2
gmake[1]: *** Čeka se na nedovršene poslove....
gmake: *** [Makefile:136: all] Greška 2
thread 'main' panicked at /home/vedran/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.50/src/lib.rs:1098:5:
command did not execute successfully, got: exit status: 2
build script failed, must exit now
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: cmake::fail
3: cmake::run
4: cmake::Config::build
5: build_script_build::build_chemfiles
6: build_script_build::main
7: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
This is on FreeBSD 14, but it doesn't seem like a FreeBSD-specific error. Any ideas why would chemfiles be incompatible with its own bundled xdrfile?
Metadata
Metadata
Assignees
Labels
No labels