Post #1058822
2024-12-27 23:42 UTC
documenting for myself / the off chance it helps anyone:
after `port install libusb pkgconfig` I was getting `/Users/z/.usr/include/libusb-1.0/libusb.h:46:10: fatal error: 'sys/types.h' file not found` after a `make` to build `rpiboot` from https://github.com/raspberrypi/usbboot
which was fixed by manually setting CFLAGS= and an -isysroot to the macOS SDK within Xcode, e.g.
`CFLAGS="-isysroot /Applications/Xcode-16.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" make install`
Replies (1)
-
@zadr@mastodon.social 2026-07-19 23:13
in in `macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/rust-1.0.tcl` 581 + if {[option os.platform] eq "darwin" && [option os.major] >= 27} { 582 + rust::append_envs CARGO_PROFILE_DEV_STRIP=none 583 + rust::append_envs CARGO_PROFILE_RELEASE_STRIP=none 584 + } to get rust to build on macOS 27 on macports for now - otherwise rust is producing bad dylibs the OS won't load 🙃 https://trac.macports.org/ticket/74117 / https://github.com/rust-lang/rust/issues/157750