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

clang does not like rust_box's flexible array #368

Closed
erickt opened this issue May 13, 2011 · 1 comment
Closed

clang does not like rust_box's flexible array #368

erickt opened this issue May 13, 2011 · 1 comment

Comments

@erickt
Copy link
Contributor

erickt commented May 13, 2011

Compiling rust_builtin.cpp errors out with this message:

compile: rt/rust_builtin.o
../rust/src/rt/rust_builtin.cpp:388:13: error: flexible array 'data' not allowed in otherwise empty struct
    uint8_t data[];
            ^
@erickt
Copy link
Contributor Author

erickt commented May 18, 2011

The problem stemmed from an issue with the build system. I need to configure with CFG_LLVM_CONFIG and CFG_CONFIG set, but when Makefile.in changes, it triggers a reconfigure, which blows away my configuration saved in config.mk. This causes make to fall back onto the clang 2.9svn, which results in the error above. I'll file a new bug to have reconfiguring preserve the CFG_* settings.

@erickt erickt closed this as completed May 18, 2011
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
Constant Items: fix grammar, ran -> run
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
calebzulawski added a commit to calebzulawski/rust that referenced this issue Nov 19, 2023
antoyo added a commit to antoyo/rust that referenced this issue Nov 19, 2023
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