-
Notifications
You must be signed in to change notification settings - Fork 131
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
Mac OS X: -Werror=strict-prototypes causes compilation of dyncall_thunk* to fail #38
Comments
I thought I fixed that problem with 99f34ab - it seems gcc 4.2 doesn't think that Could you check if this helps:
|
I've just tried again, but now I'm getting a parrot 4.3.0 / 4.4.0 related error:
I'm guessing this is unrelated though, should I give it a shot from a slightly older revision of nqp? |
Yes, that should be unrelated. You can either downgrade your NQP to 5308279 or earlier or fix your parrot installation. |
Yep, that's fixed the problems. Thanks! |
@hds should be fixed in master now The patch I just pushed is slightly different from the one I posted here, so please holler if it doesn't work as advertised ;) |
Will do, thanks again. (-: |
Yes, this is now working fine for me from HEAD. |
The switch -Werror=strict-prototypes causes compilation of dyncall to fail. Here's the end of the compile log (a larger extract can be found at http://pastebin.com/NBnaQ24s):
In file included from dyncall_thunk.c:27:
dyncall_thunk.h:59: error: function declaration isn't a prototype
In file included from dyncall_thunk.h:64,
from dyncall_thunk.c:27:
dyncall_thunk_x64.h:32: error: function declaration isn't a prototype
In file included from dyncall_thunk.c:33:
dyncall_thunk_x64.c:28: error: function declaration isn't a prototype
make[2]: *** [dyncall_thunk.o] Error 1
make[1]: *** [dyncallback] Error 2
make: *** [3rdparty/dyncall/dyncall/libdyncall_s.a] Error 2
I'm compiling with the tools that come with Xcode 4.3.2 (4E2002):
i686-apple-darwin11-llvm-gcc-4.2
i686-apple-darwin11-llvm-g++-4.2
The flag itself is imported from parrot (or at least I could find it nowhere in the nqp source, but it does exist in the parrot source). To test I tried compiling the latest version of the dyncall library (0.7) on the same machine I I get the same behaviour. If I add the flag (which doesn't exist in their Makefile) then the compile fails with exactly the same error, otherwise it compiles with no problems.
The text was updated successfully, but these errors were encountered: