superenv
interfering with dependent header for libusb
#5898
Unanswered
phreed
asked this question in
Writing Formulae/Casks
Replies: 2 comments
-
I did the following to get past the issues: brew install --build-from-source ./rpiboot.rb --debug Which produced the following error message:
Then from the pkg-config --cflags --libs libusb-1.0 Which gives:
Then I run the following corrected compilation: gcc-14 -Wall -Wextra -g -o rpiboot main.c bootfiles.c decode_duid.c -isystem/home/linuxbrew/.linuxbrew/Cellar/libusb/1.0.27/include/libusb-1.0 -L/home/linuxbrew/.linuxbrew/Cellar/libusb/1.0.27/lib -lusb-1.0 -DGIT_VER="\"d4aa5041\"" -DPKG_VER="\"20240422~085300\"" -DINSTALL_PREFIX=\"/usr\" -L/home/linuxbrew/.linuxbrew/Cellar/libusb/1.0.27/lib -lusb-1.0 That builds. This gives me a valid |
Beta Was this translation helpful? Give feedback.
0 replies
-
Alternatively, if I modify the
My guess is that in this case |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
https://github.com/phreed/homebrew-custom/blob/main/Formula/rpiboot.rb
I am working on a formula for
rpiboot
.https://github.com/raspberrypi/usbboot?tab=readme-ov-file#macos
It mostly builds but it appears that
superenv
is stripping away the -I CFLAGS.There is a secondary issue related to gcc and -isystem vs. -I where
#include <libusb.h>
is not found with -I.But, that is another issue.
Contents of
/var/home/phreed/.cache/Homebrew/Logs/rpiboot/01.make.cc
Beta Was this translation helpful? Give feedback.
All reactions