Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

streamripper 1.64.6 build failure with Lion/Xcode 4.3 #10623

Closed
jwhitley opened this issue Mar 1, 2012 · 2 comments
Closed

streamripper 1.64.6 build failure with Lion/Xcode 4.3 #10623

jwhitley opened this issue Mar 1, 2012 · 2 comments

Comments

@jwhitley
Copy link
Contributor

jwhitley commented Mar 1, 2012

Gist of build failure

The basic symptom appears to be that the streamripper build fails when it can't find mad.h, yet mad.h is clearly present in Homebrew's include directory. Digging in deeper, it looks like the -isystem /path/to/hb/include in CPPFLAGS in brew's environment is probably being ignored by clang. At least from clang's man page, the -isystem gcc-ism isn't documented. As such, this build failure appears to be a harbinger of a more widespread compatibility problem with the clang frontend.

FWIW, I tried forcing ENV.llvm in the formula, but essentially the same failures occured with llvm-gcc.

@jacknagel
Copy link
Contributor

FWIW, clang does have -isystem:

$ clang -isystem
clang: error: argument to '-isystem' is missing (expected 1 value)

The compiler itself doesn't look at CPPFLAGS, it's up to the build system to pass its contents to the compiler properly. It wouldn't surprise me if the streamripper build is ignoring or munging CPPFLAGS, though.

As a quick hack, you might try adding ENV.append_to_cflags ENV.cppflags to the top of def install.

@jwhitley
Copy link
Contributor Author

jwhitley commented Mar 2, 2012

@jacknagel Brilliant. ENV.append_to_cflags ENV.cppflags works great as a quick fix. I have an older test system lying around which I think should work to test whether this hackfix is also acceptable to pre-Xcode 4.3 build systems.

briansniffen pushed a commit to briansniffen/homebrew that referenced this issue Mar 10, 2012
Fixes Homebrew#10623.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
Fixes Homebrew#10623.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
Fixes Homebrew#10623.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
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