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

C99 Support: Adding -std=c99 to CFLAGS in applications break compile #27

Open
fhaverkamp opened this issue Jul 6, 2017 · 1 comment

Comments

@fhaverkamp
Copy link
Contributor

Hi,

/var/lib/jenkins/workspace/SNAP_Software/pslse/common/misc/cxl.h:150: error: declaration does not declare anything
snap.c: In function 'hw_wait_irq':
snap.c:311: error: 'struct cxl_event' has no member named 'irq'
snap.c:311: error: 'struct cxl_event' has no member named 'irq'
snap.c:314: error: 'struct cxl_event' has no member named 'irq'
snap.c:324: error: 'struct cxl_event' has no member named 'afu_error'
snap.c:324: error: 'struct cxl_event' has no member named 'afu_error'
make[1]: *** [snap.o] Error 1
make[1]: Leaving directory `/var/lib/jenkins/workspace/SNAP_Software/snap/software/lib'
make: *** [lib] Error 1

struct cxl_event {
struct cxl_event_header header;
union {
struct cxl_event_afu_interrupt irq;
struct cxl_event_data_storage fault;
struct cxl_event_afu_error afu_error;
struct cxl_event_afu_driver_reserved afu_driver_event;
};
};
 
line 150 is the end of the union which does not have a name. Please have a look what can be done.

Thanks

Frank

@fhaverkamp
Copy link
Contributor Author

Here is where I wanted to use that:
open-power/snap#364

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

1 participant