Skip to content
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

Build fails without DEBUG options #2

Open
jrisom opened this issue Mar 12, 2013 · 3 comments
Open

Build fails without DEBUG options #2

jrisom opened this issue Mar 12, 2013 · 3 comments

Comments

@jrisom
Copy link

jrisom commented Mar 12, 2013

Building on FreeBSD needs the debug options to be set, ATH_DEBUG, AH_DEBUG, ATH_DIAGAPI, and even with the options set in the kernel config it fails to build with clang, default under newer versions of FreeBSD. It still fails to build with -DWITHOUT_CLANG on FreeBSD head.

@erikarn
Copy link
Contributor

erikarn commented Mar 16, 2013

Hi,

I've fixed it to compile with clang.

Can you please post the build errors when you don't have AH_DEBUG set? I'd like to identify and fix those.

Thanks!

Adrian

@jrisom
Copy link
Author

jrisom commented Mar 16, 2013

On 3/15/2013 7:52 PM, Adrian Chadd wrote:

Hi,

I've fixed it to compile with clang.

Can you please post the build errors when you don't have AH_DEBUG set?
I'd like to identify and fix those.

Thanks!

Adrian

Three failures, each ichan not being used.

hal/ar9300/ar9300_eeprom.c:ar9300_eeprom_set_power_per_rate_table
hal/ar9300/ar9300_paprd.c:ar9300_populate_paprd_single_table
hal/ar9300/ar9300_radio.c:ar9300_set_channel

I imagine gcc would be the same for these. I don't know if there's a
trick to have a macro expand in order to use it, but the compiler
optimize it away, maybe if(0) or something trickier.

@erikarn
Copy link
Contributor

erikarn commented Mar 16, 2013

Hi,

This is fixed in the freebsd fork of this. Please update and test.

Next time, please file bug(s) against the fork first. :)

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

No branches or pull requests

2 participants