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

Unable to build a release with a perl compiled with clang #36

Closed
ioanrogers opened this issue Apr 20, 2016 · 1 comment
Closed

Unable to build a release with a perl compiled with clang #36

ioanrogers opened this issue Apr 20, 2016 · 1 comment

Comments

@ioanrogers
Copy link

ioanrogers commented Apr 20, 2016

If the perl used to run gen_zmq_constants.pl was build with clang then tcc will fail:

open("/usr/bin/../lib/clang/3.7.0/include/stdint.h", O_RDONLY) = 5
read(5, "/*===---- stdint.h - Standard he"..., 8192) = 8192
close(5)                                = 0
write(2, "In file included from <string>:2"..., 200In file included from <string>:2:
In file included from /home/green.sophos/ioanrogers/git/zeromq4-x/include/zmq.h:87:
/usr/bin/../lib/clang/3.7.0/include/stdint.h:31: error: function pointer expected
) = 200

As in #35, this is more of a TinyCC issue but it should probably at least be documented. Or perhaps have the build abort if it sees perl was built with clang.

Workaround: I'm using plenv so I build another perl with gcc and set it as the default perl for my zmq-ffi clone (plenv local 5.22.1-gcc)

I'm probably in a small niche by using a clang-built perl on Linux but, IIRC, clang is the default on MacOSX.

Taking this and #35 together, is it feasible/worthwhile to use something other than TinyCC?

@calid
Copy link
Member

calid commented Feb 28, 2019

The dependency on TinyCC has been removed which should hopefully resolve these issues

@calid calid closed this as completed Feb 28, 2019
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

2 participants