Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Doesn't build on FreeBSD i386 arch #984

Open
nunotexbsd opened this issue Jul 28, 2022 · 2 comments
Open

Doesn't build on FreeBSD i386 arch #984

nunotexbsd opened this issue Jul 28, 2022 · 2 comments

Comments

@nunotexbsd
Copy link

Hello,

What architectures do topgrade run?
It fails for i386 arch, full build log.

error: failed to run custom build command for `sys-info v0.9.1`

Caused by:
  process didn't exit successfully: `/wrkdirs/usr/ports/sysutils/topgrade/work/target/release/build/sys-info-e204ca6a1b00e755/build-script-build` (exit status: 1)
  --- stdout
  cargo:rustc-flags=-l pthread
  TARGET = Some("i686-unknown-freebsd")
  OPT_LEVEL = Some("3")
  HOST = Some("i686-unknown-freebsd")
  CC_i686-unknown-freebsd = None
  CC_i686_unknown_freebsd = None
  HOST_CC = None
  CC = Some("cc")
  CFLAGS_i686-unknown-freebsd = None
  CFLAGS_i686_unknown_freebsd = None
  HOST_CFLAGS = None
  CFLAGS = Some("-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing ")
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = None
  running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-O2" "-pipe" "-fstack-protector-strong" "-fno-strict-aliasing" "-o" "/wrkdirs/usr/ports/sysutils/topgrade/work/target/i686-unknown-freebsd/release/build/sys-info-b78c8b6dd05402d1/out/c/freebsd.o" "-c" "c/freebsd.c"
  cargo:warning=c/freebsd.c:31:10: error: conflicting types for 'get_cpu_speed'
  cargo:warning=uint64_t get_cpu_speed(void) {
  cargo:warning=         ^
  cargo:warning=c/info.h:31:15: note: previous declaration is here
  cargo:warning=unsigned long get_cpu_speed(void);
  cargo:warning=              ^
  cargo:warning=c/freebsd.c:47:10: error: conflicting types for 'get_proc_total'
  cargo:warning=uint64_t get_proc_total(void) {
  cargo:warning=         ^
  cargo:warning=c/info.h:34:15: note: previous declaration is here
  cargo:warning=unsigned long get_proc_total(void);
  cargo:warning=              ^
  cargo:warning=2 errors generated.
  exit status: 1

Thanks,

Nuno Teixeira

@MCOfficer
Copy link
Contributor

MCOfficer commented Jul 28, 2022

Upstream problem: FillZpp/sys-info-rs#80

I guess topgrade could switch to sysinfo or a different crate to fix this.

@nunotexbsd nunotexbsd changed the title Doesn't build on i386 arch Doesn't build on FreeBSD i386 arch Jul 28, 2022
@nunotexbsd
Copy link
Author

Nice. I will be waiting for dependency change so I can test it on FreeBSD port

Cheers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants