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

Compilation error on ARM platform #36

Closed
nikall opened this issue Apr 17, 2014 · 3 comments
Closed

Compilation error on ARM platform #36

nikall opened this issue Apr 17, 2014 · 3 comments

Comments

@nikall
Copy link

nikall commented Apr 17, 2014

Got the following error while trying to compile on an ARM based platform (BCM2708, Raspberry Pi).

../mme/ARPCPrint.c:122:2: error: incompatible type for argument 3 of ‘vfprintf’
In file included from ../mme/ARPCPrint.c:68:0:
/usr/include/stdio.h:368:12: note: expected ‘__gnuc_va_list’ but argument is of type ‘void *’
I tried both gcc 4.6 and 4.7

I am not a programmer. Any help would be appreciated.

Thank you

@lategoodbye
Copy link
Contributor

Hi @nikall,

could you please try the following:

make EXTRA_CFLAGS="-D__UCLIBC__"

@nikall
Copy link
Author

nikall commented Apr 17, 2014

It worked. Thank you!

@ottuzzi
Copy link

ottuzzi commented May 1, 2014

Hi,

I was going to open almost the same issue for a compilation error on a Raspberry Pi: the proposed fix works here too.

Thanks
Bye
Piero

tpetazzoni added a commit to buildroot/buildroot that referenced this issue Apr 5, 2015
The open-plc-utils source code has a condition for uClibc toolchains
when calling vfprintf(). But the non-uClibc case simply doesn't
build. And the recommended solution at
qca/open-plc-utils#36 is to pass
-D__UCLIBC__ unconditionally.

Fixes:

  http://autobuild.buildroot.org/results/4fd/4fdc56f5dec6c8773086a4661eff1e4ce6ef660e/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
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

4 participants