fatal error: 'ffi.h' file not found #14

Closed
danielbayerlein opened this Issue Mar 30, 2013 · 2 comments

Projects

None yet

2 participants

  • Mac OS X 10.8.3
  • Xcode 4.6.1 (4H512)
    • Command Line Tools installed
    • iOS 6 Simulator installed
$ rake
In file included from /Users/Daniel/Projekte/mobiruby-ios/mobiruby-ios/main.m:20:
In file included from /Users/Daniel/Projekte/mobiruby-ios/submodules/mruby-cfunc/include/cfunc_pointer.h:11:
/Users/Daniel/Projekte/mobiruby-ios/submodules/mruby-cfunc/include/cfunc_type.h:12:10: fatal error: 'ffi.h' file not found
#include "ffi.h"
         ^
1 error generated.

CompileC build/mobiruby-ios.build/Debug-iphonesimulator/mobiruby-ios.build/Objects-normal/i386/AFHTTPClient.o vendors/AFNetworking/AFHTTPClient.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/Daniel/Projekte/mobiruby-ios
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/Daniel/.rbenv/versions/2.0.0-p0/bin:/usr/local/Cellar/rbenv/0.4.0/libexec:/Users/Daniel/.rbenv/shims:/Users/Daniel/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/npm/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.0 -iquote /Users/Daniel/Projekte/mobiruby-ios/build/mobiruby-ios.build/Debug-iphonesimulator/mobiruby-ios.build/mobiruby-ios-generated-files.hmap -I/Users/Daniel/Projekte/mobiruby-ios/build/mobiruby-ios.build/Debug-iphonesimulator/mobiruby-ios.build/mobiruby-ios-own-target-headers.hmap -I/Users/Daniel/Projekte/mobiruby-ios/build/mobiruby-ios.build/Debug-iphonesimulator/mobiruby-ios.build/mobiruby-ios-all-target-headers.hmap -iquote /Users/Daniel/Projekte/mobiruby-ios/build/mobiruby-ios.build/Debug-iphonesimulator/mobiruby-ios.build/mobiruby-ios-project-headers.hmap -I/Users/Daniel/Projekte/mobiruby-ios/build/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/Daniel/Projekte/mobiruby-ios/build/mobiruby-ios.build/Debug-iphonesimulator/mobiruby-ios.build/DerivedSources/i386 -I/Users/Daniel/Projekte/mobiruby-ios/build/mobiruby-ios.build/Debug-iphonesimulator/mobiruby-ios.build/DerivedSources -F/Users/Daniel/Projekte/mobiruby-ios/build/Debug-iphonesimulator -I/Users/Daniel/Projekte/mobiruby-ios/submodules/mruby/include -I/Users/Daniel/Projekte/mobiruby-ios/submodules/libffi/build/include -I/Users/Daniel/Projekte/mobiruby-ios/submodules/mobiruby-common/include -I/Users/Daniel/Projekte/mobiruby-ios/submodules/mruby-cocoa/include -I/Users/Daniel/Projekte/mobiruby-ios/submodules/mruby-cfunc/include -DALLOC_PADDING=8 -DUSE_MRBC_DATA -fobjc-arc -include /var/folders/nk/3n70lspj49506yk9jgnylfx00000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/mobiruby-ios-Prefix-ayfartbqydrngecnlnzvzohkzeek/mobiruby-ios-Prefix.pch -MMD -MT dependencies -MF /Users/Daniel/Projekte/mobiruby-ios/build/mobiruby-ios.build/Debug-iphonesimulator/mobiruby-ios.build/Objects-normal/i386/AFHTTPClient.d --serialize-diagnostics /Users/Daniel/Projekte/mobiruby-ios/build/mobiruby-ios.build/Debug-iphonesimulator/mobiruby-ios.build/Objects-normal/i386/AFHTTPClient.dia -c /Users/Daniel/Projekte/mobiruby-ios/vendors/AFNetworking/AFHTTPClient.m -o /Users/Daniel/Projekte/mobiruby-ios/build/mobiruby-ios.build/Debug-iphonesimulator/mobiruby-ios.build/Objects-normal/i386/AFHTTPClient.o
In file included from /Users/Daniel/Projekte/mobiruby-ios/vendors/AFNetworking/AFHTTPClient.m:25:
/Users/Daniel/Projekte/mobiruby-ios/vendors/AFNetworking/AFHTTPClient.h:83:6: warning: SystemConfiguration framework not found in project, or not included in precompiled header. Network reachability functionality will not be available. [-W#warnings]
    #warning SystemConfiguration framework not found in project, or not included in precompiled header. Network reachability functionality will not be available.
     ^
/Users/Daniel/Projekte/mobiruby-ios/vendors/AFNetworking/AFHTTPClient.h:88:10: warning: MobileCoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available. [-W#warnings]
        #warning MobileCoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available.
         ^
/Users/Daniel/Projekte/mobiruby-ios/vendors/AFNetworking/AFHTTPClient.m:570:38: warning: capturing 'operation' strongly in this block is likely to lead to a retain cycle [-Warc-retain-cycles]
            dispatch_queue_t queue = operation.successCallbackQueue ?: dispatch_get_main_queue();
                                     ^~~~~~~~~
/Users/Daniel/Projekte/mobiruby-ios/vendors/AFNetworking/AFHTTPClient.m:569:9: note: block will be retained by the captured object
        operation.completionBlock = ^{
        ^~~~~~~~~
3 warnings generated.


** BUILD FAILED **


The following build commands failed:
    CompileC build/mobiruby-ios.build/Debug-iphonesimulator/mobiruby-ios.build/Objects-normal/i386/main.o mobiruby-ios/main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
rake aborted!
Command failed with status (65): [xcodebuild -configuration Debug -target mo...]
tasks/build.rake:22:in `block in <top (required)>'
Tasks: TOP => default => run => build/Debug-iphonesimulator/mobiruby-ios.app
(See full trace by running task with --trace)
Owner

Thank you for reporting.

It's mobiruby-ios configuration mistake.
I fixed on latest mobirubu-ios.
Could you pull mobiruby-ios and rake again?

Now it works! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment