-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libftdi: Incorrect pkg-config --cflags output #71623
Comments
probably the result of #70229 looks like there's been a regression in the C version of the library: pkg-config produces the same cflags for libftdi1 and libftdipp1:
that location has only c++ header:
in fact, the C header is stored in a different directory:
ad a result, projects using pkg-config to get libftdi compilation flags fail to build. |
#70229 isn't doing anything weird; it just enables a flag defined by the build system. It sounds like this isn't a Homebrew issue, and needs to be reported upstream instead. |
@carlocab possibly. but the homebrew change needs to be reverted first as it resulted in a regression to existing users. |
I tend to view reverting changes as a last resort. We should try to fix it first, and that probably entails an upstream report. In any case, reverting would require waiting for CI. Judging from the state of the job queue, that might take a few days. |
while i agree with you in principle, precisely because it cannot be fixed within homebrew and requires upstream interaction, in my opinion we should go to last known good state, which is before the change. then we can deal with the upstream issue. |
@xloem looks like enabling FTDI++ screws up cflags for libftdi1. if this can't be fixed quickly, please revert your change to unbreak the C library users. |
I submitted the breaking change thinking I was helping. I don't have homebrew set up right now, but I'm looking at the libftdi source. In their CMakeLists.txt and *.pc.in, the same variable I don't expect this library is used very much, because it duplicates functionality kernels usually already have, of accessing a serial device. I could be wrong. EDIT: I don't know how to integrate a patch into your build system on like a 1-hour time schedule, reverting could make sense if this is a serious thing. |
i applied a hack to get our project building again, so for us there is no immediate urgency. you could try fixing it by applying patch in homebrew first and then upstreaming it. use your judgement. |
This issue was fixed in cdb28383402d248dbc6062f4391b038375c52385 on Jul 17, 2020 in upstream git. |
The fix isn't in a release yet, here it is:
Do you guys need me to learn the packaging system better and submit another PR to add that patch? |
Working on it now. Don't worry about it. |
Opened #71631. As mentioned above, it may take a while to merge since the CI job queue is quite long at the moment. |
thanks for the quick response, gentlemen! |
my workaround for this bug was to reference |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
output$ brew config
HOMEBREW_VERSION: 3.0.1-122-gcdaf5cc
ORIGIN: https://github.com/Homebrew/brew
HEAD: cdaf5cc
Last commit: 4 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: d87ba9a
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: vim
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 12.0 build 1200
Git: 2.13.5 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15.7-x86_64
CLT: 12.0.32.28
Xcode: 11.2 => /Applications/Xcode_11.2.0_beta_2_fb.app/Contents/Developer
brew doctor
above contains no "Warning" lines.What were you trying to do (and why)?
use
pkg-config --cflags libftdi1
to get cflags for libftdiWhat happened (include all command output)?
cli/flash/cc3200/ftdi_libftdi1.go:26:10: fatal error: 'ftdi.h' file not found
#include <ftdi.h>
^~~~~~~~
1 error generated.
What did you expect to happen?
expected the project to compile like it used to
Step-by-step reproduction instructions (by running
brew
commands)$ pkg-config --cflags libftdi1
-I/usr/local/Cellar/libftdi/1.5_1/include/libftdipp1 -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0
The text was updated successfully, but these errors were encountered: