if libc::gmtime_r(&epoch, &mut result).is_null() {
-------------- ^^^^^^ expected i32, found i64
arguments to this function are incorrect
= note: expected raw pointer `*const i32`
found reference `&i64`
note: function defined here
--> /src/proxmox-backup/debian/cargo_home/registry/src/github.com-1285ae84e5963aae/libc-0.2.125/s
rc/unix/mod.rs:1207:12
|
1207 | pub fn gmtime_r(time_p: const time_t, result: mut tm) -> *mut tm;
| ^^^^^^^^
For more information about this error, try rustc --explain E0308.
error: could not compile proxmox-time due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
make[2]: [Makefile:172: .do-cargo-build] Error 101
make[2]: Leaving directory '/src/proxmox-backup'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" PROXY_USER=backup LIBDIR=/usr/l
ib/arm-linux-gnueabihf returned exit code 2
make[1]: [debian/rules:29: override_dh_auto_build] Error 25
make[1]: Leaving directory '/src/proxmox-backup'
make: [debian/rules:22: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
The command '/bin/sh -c . /root/.cargo/env && cd proxmox-backup/ && dpkg-buildpackage -us -uc -b' ret
urned a non-zero code: 2
Makefile:22: recipe for target 'arm32v7-docker-build' failed
make: [arm32v7-docker-build] Error 2
root@odroid:/home/tonypang/pbs/pve-backup-server-dockerfiles#
root@odroid:/home/tonypang/pbs/pve-backup-server-dockerfiles#
root@odroid:/home/tonypang/pbs/pve-backup-server-dockerfiles#
You have new mail in /var/mail/root
root@odroid:/home/tonypang/pbs/pve-backup-server-dockerfiles#
I am trying to build the armv7 PBS but failed. The whole output is too long and I am attaching it as a file.
pbs-armv7-compile.txt
root@odroid:/# root@odroid:/# cd /home/tonypang/pbs/pve-backup-server-dockerfiles/ root@odroid:/home/tonypang/pbs/pve-backup-server-dockerfiles# ls Dockerfile Dockerfile.client Makefile README.md RELEASE.md dev-scripts docker-compose.yml pbs runit scripts versions root@odroid:/home/tonypang/pbs/pve-backup-server-dockerfiles# vi Makefile root@odroid:/home/tonypang/pbs/pve-backup-server-dockerfiles# make arm32v7-docker-build docker build \ --tag ayufan/proxmox-backup-server:v2.1.5-arm32v7 \ --build-arg ARCH=arm32v7/ \ --build-arg TAG=v2.1.5 \ --build-arg VERSION=v2.1.5 \ -f Dockerfile \ . Sending build context to Docker daemon 650.8kB Step 1/42 : ARG ARCH= Step 2/42 : FROM ${ARCH}debian:bullseye AS builder ---> aaabdee60d04 Step 3/42 : RUN apt-get -y update && apt-get -y install build-essential git-core lintian pk g-config quilt patch cargo nodejs node-colors node-commander libudev-dev libapt-pkg-dev l ibacl1-dev libpam0g-dev libfuse3-dev libsystemd-dev uuid-dev libssl-dev libclang-dev libjson- perl libcurl4-openssl-dev dh-exec wget ---> Using cache ---> 6e2fc80e3279 Step 4/42 : RUN wget https://static.rust-lang.org/rustup/rustup-init.sh && chmod +x rustup-init.sh && ./rustup-init.sh -y --default-toolchain nightly ---> Using cache ---> 8623ad7d607f
...... too long, trucated.......
i64
, foundi32
help: you can convert an
i32
to ani64
| 18 | Ok(epoch.into()) | +++++++i64
, foundi32
help: you can convert an
i32
to ani64
| 32 | Ok(epoch.into()) | +++++++i32
, foundi64
note: function defined here --> /src/proxmox-backup/debian/cargo_home/registry/src/github.com-1285ae84e5963aae/libc-0.2.125/s rc/unix/mod.rs:1211:12 | 1211 | pub fn localtime_r(time_p: const time_t, result: mut tm) -> *mut tm; | ^^^^^^^^^^^
i32
, foundi64
note: function defined here --> /src/proxmox-backup/debian/cargo_home/registry/src/github.com-1285ae84e5963aae/libc-0.2.125/s rc/unix/mod.rs:1207:12 | 1207 | pub fn gmtime_r(time_p: const time_t, result: mut tm) -> *mut tm; | ^^^^^^^^
For more information about this error, try
rustc --explain E0308
. error: could not compileproxmox-time
due to 4 previous errors warning: build failed, waiting for other jobs to finish... make[2]: [Makefile:172: .do-cargo-build] Error 101 make[2]: Leaving directory '/src/proxmox-backup' dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" PROXY_USER=backup LIBDIR=/usr/l ib/arm-linux-gnueabihf returned exit code 2 make[1]: [debian/rules:29: override_dh_auto_build] Error 25 make[1]: Leaving directory '/src/proxmox-backup' make: [debian/rules:22: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 The command '/bin/sh -c . /root/.cargo/env && cd proxmox-backup/ && dpkg-buildpackage -us -uc -b' ret urned a non-zero code: 2 Makefile:22: recipe for target 'arm32v7-docker-build' failed make: [arm32v7-docker-build] Error 2 root@odroid:/home/tonypang/pbs/pve-backup-server-dockerfiles# root@odroid:/home/tonypang/pbs/pve-backup-server-dockerfiles# root@odroid:/home/tonypang/pbs/pve-backup-server-dockerfiles# You have new mail in /var/mail/root root@odroid:/home/tonypang/pbs/pve-backup-server-dockerfiles#