-
Notifications
You must be signed in to change notification settings - Fork 329
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
unknown type name 'size_t' on macOS 10.13.3 #609
Comments
Have the same problem on Ubuntu Mate 17.10
|
@Iolaum Perhaps https://askubuntu.com/questions/265471/autoreconf-not-found-error-during-making-qemu-1-4-0/490839 helps in your case, as the cause seems to be a different one. |
Installing But |
@Iolaum please try
before gem install. |
@larskanis We need to fix this so that libffi on the system is not required, as it worked before. |
@Iolaum That issue should already be fixed in master but a new release isn't up yet. |
@larskanis You were right, installing 'libffi-dev` solved this issue and ffi 1.9.21 installed successfully. |
Please expedite this fix! Ruby on Rails on Mac is effectively dead until you do. |
OK, just pushed ffi-1.9.22, which should solve this issue. Could you please re-try? |
|
@swissspidy I the original issue fixed in ffi-1.9.22?
|
Hmm now I get a different error:
|
I'm using macOS 10.13.3 + XCode9.3 beta2 and solved the problem
diff --git a/ext/ffi_c/Thread.c b/ext/ffi_c/Thread.c
index 32ae05f..e85ea40 100644
--- a/ext/ffi_c/Thread.c
+++ b/ext/ffi_c/Thread.c
@@ -27,6 +27,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <stddef.h>
#ifndef _MSC_VER
#include <stdbool.h>
#else
Hope this helps. |
I can confirm that running |
I forced re-install |
I've read every issue here that seemed only slightly related, but to no avail.
I'm unable to install ffi as compilation fails every time. I'm using macOS 10.13.3 and the following ruby version:
Ruby has been installed via Homebrew and resides in
/usr/local/bin/ruby
.When I try to run
sudo gem install ffi -v '1.9.18'
or justsudo gem install ffi
, I get the following error:This happens with both built-in GCC 4.2 and 7.3 installed via Homebrew.
I know that this might be a setup issue more than a problem with the library, but any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: