iPhone Platform: "error: stdarg.h: No such file or directory"
iPhone Platform: "error: stdarg.h: No such file or directory"
- Subject: iPhone Platform: "error: stdarg.h: No such file or directory"
- From: Andreas Grosam <email@hidden>
- Date: Wed, 28 Jan 2009 19:36:42 +0100
Hello,
I'm getting this error
"/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator2.2.1.sdk/usr/include/stdarg.h" error: stdarg.h: No
such file or directory
when compiling the following file with either GCC 4.2 or LLVM GCC 4.2:
>>>>>>>>>>>
// test.m
#include <errno.h>
#include <stdarg.h> // error: stdarg.h: no such file or directory
>>>>>>>>>>>
There is no error when using GCC 4.0 or when on the Mac OS X Platform.
The project is basically a Xcode template project. And yes, the file
stdarg.h exists, and the search paths are set. The language does not
matter, I used C, C++ and Objective-C, and Objective-C++. Actually, it
is the **preprocessor** that fails to locate the file.
The file errno.h is located within the same folder. As far as I can
see, there is nothing special with the file stdarg.h It seems the file
is banned from within the compiler.
There a few other files, that cannot be located for instance, float.h.
The details are below.
Regards
Andreas
Building target “Test” of project “Test” with configuration “Debug”
Checking Dependencies
CompileC build/Test.build/Debug-iphonesimulator/Test.build/Objects-
normal/i386/test.o /Users/agrosam/Develop/iPhoneOS/Test/test.m normal
i386 objective-c com.apple.compilers.gcc.4_2
cd /Users/agrosam/Develop/iPhoneOS/Test
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/
Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
gcc-4.2 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -
Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-
variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=20000 -isysroot /Developer/
Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator2.2.1.sdk -fvisibility=hidden -mmacosx-version-min=10.5
-gdwarf-2 -iquote /Users/agrosam/Develop/iPhoneOS/Test/build/
Test.build/Debug-iphonesimulator/Test.build/Test-generated-files.hmap -
I/Users/agrosam/Develop/iPhoneOS/Test/build/Test.build/Debug-
iphonesimulator/Test.build/Test-own-target-headers.hmap -I/Users/
agrosam/Develop/iPhoneOS/Test/build/Test.build/Debug-iphonesimulator/
Test.build/Test-all-target-headers.hmap -iquote /Users/agrosam/Develop/
iPhoneOS/Test/build/Test.build/Debug-iphonesimulator/Test.build/Test-
project-headers.hmap -F/Users/agrosam/Develop/iPhoneOS/Test/build/
Debug-iphonesimulator -I/Users/agrosam/Develop/iPhoneOS/Test/build/
Debug-iphonesimulator/include -I/Users/agrosam/Develop/iPhoneOS/Test/
build/Test.build/Debug-iphonesimulator/Test.build/DerivedSources -v -
include /var/folders/cY/cYhZ8jEOH5im12e2PIo3ZE+++TI/-Caches-/
com.apple.Xcode.501/SharedPrecompiledHeaders/Test_Prefix-
goljxmxlcnxzlcbnpbtyapskmwll/Test_Prefix.pch -c /Users/agrosam/Develop/
iPhoneOS/Test/test.m -o /Users/agrosam/Develop/iPhoneOS/Test/build/
Test.build/Debug-iphonesimulator/Test.build/Objects-normal/i386/test.o
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc_42/gcc_42-5566~1/src/configure --disable-
checking --enable-werror --prefix=/usr --mandir=/usr/share/man --
enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg]
[^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin9 --
with-gxx-include-dir=/usr/include/c++/4.0.0 --host=i686-apple-darwin9
--target=i686-apple-darwin9
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5566)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin9/4.2.1/cc1obj -
quiet -v -I/Users/agrosam/Develop/iPhoneOS/Test/build/Test.build/Debug-
iphonesimulator/Test.build/Test-own-target-headers.hmap -I/Users/
agrosam/Develop/iPhoneOS/Test/build/Test.build/Debug-iphonesimulator/
Test.build/Test-all-target-headers.hmap -F/Users/agrosam/Develop/
iPhoneOS/Test/build/Debug-iphonesimulator -I/Users/agrosam/Develop/
iPhoneOS/Test/build/Debug-iphonesimulator/include -I/Users/agrosam/
Develop/iPhoneOS/Test/build/Test.build/Debug-iphonesimulator/
Test.build/DerivedSources -iprefix /Developer/usr/bin/../lib/gcc/i686-
apple-darwin9/4.2.1/ -D__DYNAMIC__ -
D__IPHONE_OS_VERSION_MIN_REQUIRED=20000 -isysroot /Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk -
iquote /Users/agrosam/Develop/iPhoneOS/Test/build/Test.build/Debug-
iphonesimulator/Test.build/Test-generated-files.hmap -iquote /Users/
agrosam/Develop/iPhoneOS/Test/build/Test.build/Debug-iphonesimulator/
Test.build/Test-project-headers.hmap -include /var/folders/cY/
cYhZ8jEOH5im12e2PIo3ZE+++TI/-Caches-/com.apple.Xcode.501/
SharedPrecompiledHeaders/Test_Prefix-goljxmxlcnxzlcbnpbtyapskmwll/
Test_Prefix.pch /Users/agrosam/Develop/iPhoneOS/Test/test.m -fPIC -
quiet -dumpbase test.m -mpascal-strings -mmacosx-version-min=10.5 -
mtune=core2 -auxbase-strip /Users/agrosam/Develop/iPhoneOS/Test/build/
Test.build/Debug-iphonesimulator/Test.build/Objects-normal/i386/test.o
-gdwarf-2 -O0 -Wno-trigraphs -Wreturn-type -Wunused-variable -std=c99 -
version -fmessage-length=0 -fasm-blocks -fvisibility=hidden -o - |
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin9/4.2.1/as -arch
i386 -force_cpusubtype_ALL -o /Users/agrosam/Develop/iPhoneOS/Test/
build/Test.build/Debug-iphonesimulator/Test.build/Objects-normal/i386/
test.o
ignoring nonexistent directory "/Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/usr/
local/include"
ignoring nonexistent directory "/Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/usr/
lib/gcc/i686-apple-darwin9/4.2.1/include"
ignoring nonexistent directory "/Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/usr/
lib/gcc/i686-apple-darwin9/4.2.1/../../../../i686-apple-darwin9/include"
ignoring nonexistent directory "/Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/
Library/Frameworks"
ignoring nonexistent directory "/Users/agrosam/Develop/iPhoneOS/Test/
build/Debug-iphonesimulator/include"
ignoring nonexistent directory "/Users/agrosam/Develop/iPhoneOS/Test/
build/Test.build/Debug-iphonesimulator/Test.build/DerivedSources"
#include "..." search starts here:
/Users/agrosam/Develop/iPhoneOS/Test/build/Test.build/Debug-
iphonesimulator/Test.build/Test-generated-files.hmap (headermap)
/Users/agrosam/Develop/iPhoneOS/Test/build/Test.build/Debug-
iphonesimulator/Test.build/Test-project-headers.hmap (headermap)
#include <...> search starts here:
/Users/agrosam/Develop/iPhoneOS/Test/build/Test.build/Debug-
iphonesimulator/Test.build/Test-own-target-headers.hmap (headermap)
/Users/agrosam/Develop/iPhoneOS/Test/build/Test.build/Debug-
iphonesimulator/Test.build/Test-all-target-headers.hmap (headermap)
/Users/agrosam/Develop/iPhoneOS/Test/build/Debug-iphonesimulator
(framework directory)
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator2.2.1.sdk/usr/include
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator2.2.1.sdk/System/Library/Frameworks (framework directory)
End of search list.
GNU Objective-C version 4.2.1 (Apple Inc. build 5566) (i686-apple-
darwin9)
compiled by GNU C version 4.2.1 (Apple Inc. build 5566).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-
heapsize=131072
Compiler executable checksum: d118166d8a88844c6193f537dd18b2a9
In file included from /Users/agrosam/Develop/iPhoneOS/Test/test.m:2:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator2.2.1.sdk/usr/include/stdarg.h:4:25: error: stdarg.h:
No such file or directory
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden