-
Notifications
You must be signed in to change notification settings - Fork 41
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
Wrapping my head around autoharp #56
Comments
Well, if the spec files are blank that's definitely a problem; you say c2ffi is "working as advertised" so I assume that means it generates reasonable results when you run it on the same I'm not sure where you're running this but (For more than testing, you should definitely not |
An easy thing to do is also just open the autowrap file and like |
Hi, this is what I get from
This is why I am saying that it seems to be working ok. You tell me. This is the suspicious macro expansion that I get. Please note that (1) I am not using slime and (2) I am not using SBCL. I expect tools that do not use deep and dark OS dependencies to work on every implementation.
The expansion looks very strange. Have you tested cl-autowrap on LW? Cheers |
I have not tested in LispWorks, but unless The macroexpansion is blank because the |
Note this also uses |
Ok. Something is amiss. Here is a transcript (with some functions TRACEd) of what happens in an empty directory. If you run it a second time,
The temp files that appear in the folder What gives? Cheers MA |
And here is some smoke:
The file Cheers MA |
OK, I get this message even on 3.7. I'll need to look into what the new target triple for OSX is. However, I don't think this is the issue; in your case Autowrap should generate a header file which includes both the original |
Ok. I understand why the This is what happens if I add a
However, if I run the plain
Which seems fine to me AFAIU. Cheers Marco |
"However, I do not see other c2ffi output." It seems important to find this, e.g. More likely it's not, for some reason (the newer uiop stuff?) ... this would explain the blank spec files. The temp gets created, nothing gets written, c2ffi runs on a blank file, you get blank specs. There is no error because everything was technically where it should be, though why nothing gets written is of course questionable. |
The files are there but they are empty. I get the I believe the problem is exactly that nothing gets written. Couldn't you just get rid of UIOP? You are only using it to generate the temp files, aren't you? MA |
"The files are there but they are empty." "I get the .h with the two #include" ...these are mutually exclusive? If you have a file with the two Try running the second $ /Users/marcoxa/Projects/Software/c2ffi/c2ffi/build/bin/c2ffi /var/folders/l4/b71hhwhj3f375fqgpw1r_f8c0000gp/T/tmp81CU61X.tmp -o cl-autowrap-test.i686-apple-darwin9.spec -A i686-apple-darwin9 |
Now I get an error.
|
Heh. Are you running this in the same directory as this file? Also, you may need to specify '.' as an include path. I thought that was a clang default though. |
Also if this happens during autowrap's run, your output should show any c2ffi error output... |
Ok. Looks like adding manually the Here is the transcript:
The resulting output file now contains the (expected?) Is there a way to tell |
Hi seems like you have to add Marco |
I have encoutered same problem, the output spec files only contains const. I'd like to share my experience here, in case someone need it. My SolutionAnd solve the problem by specifing absolute path to Replace WhyBy reading autowrap/c2ffi.lisp run-c2ffi
So if we use relative path for input header, what's in Suggestion
|
Hi
I know I am missing something...
So: I installed
c2ffi
and it appears to be working as advertised. Next I am trying to see howc-autowrap
works.Here is my
.h
file (straight from the README):Here is my CL file:
If I load this file, I obtain a bunch of
.spec
files, which contain only[ ]
. Nothing else appears to be generated. This is the transcript:I am obviously missing something, but what?
Help please
Thank you
Marco
The text was updated successfully, but these errors were encountered: