While tracking down a bug in my software, I encountered a weird behavior, and was wondering if anyone would have some hindsight.
Here is the code (it compiles and does not have any runtime errors):
#define ERR_OK 0
#define ERR_NOT_OK -41
int some_class::some_function(uint32_t verbose){
int ret_value = ERR_OK;
if (some_condition) {
ret_value ERR_NOT_OK;
}
return ret_value;
}
Why does this line compile; it's missing an equal sign:
ret_value ERR_NOT_OK;
Xcodebuild log:
CompileC /Users/user_name/Library/Developer/Xcode/DerivedData/xxx-emkfpcfmbsgbyrammutcuwrgpqox/Build/Intermediates/project_name.build/Debug/project_nameAPI.build/Objects-normal/x86_64/some_class.o api/src/some_class.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/user_name/Documents/project_name/project_name_dev
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -fno-common -Werror -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wassign-enum -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -fasm-blocks -funroll-loops -fstrict-aliasing -Wno-deprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.10 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -iquote /Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Intermediates/project_name.build/Debug/project_nameAPI.build/project_nameAPI-generated-files.hmap -I/Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Intermediates/project_name.build/Debug/project_nameAPI.build/project_nameAPI-own-target-headers.hmap -I/Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Intermediates/project_name.build/Debug/project_nameAPI.build/project_nameAPI-all-target-headers.hmap -iquote /Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Intermediates/project_name.build/Debug/project_nameAPI.build/project_nameAPI-project-headers.hmap -I/Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Products/Debug/include -I/Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Intermediates/project_name.build/DerivedSources/include -I/Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Intermediates/project_name.build/Debug/project_nameAPI.build/DerivedSources/x86_64 -I/Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Intermediates/project_name.build/Debug/project_nameAPI.build/DerivedSources -Wno-address-of-packed-member -Wno-unknown-warning-option -F/Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Products/Debug -Wall -MMD -MT dependencies -MF /Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Intermediates/project_name.build/Debug/project_nameAPI.build/Objects-normal/x86_64/some_class.d --serialize-diagnostics /Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Intermediates/project_name.build/Debug/project_nameAPI.build/Objects-normal/x86_64/some_class.dia -c /Users/user_name/Documents/project_name/project_name_dev/api/src/some_class.cpp -o /Users/user_name/Library/Developer/Xcode/DerivedData/jal-emkfpcfmbsgbyrammutcuwrgpqox/Build/Intermediates/project_name.build/Debug/project_nameAPI.build/Objects-normal/x86_64/some_class.o
Edit: Removed semicolons and changed #define ERR_NOT_OK 1 to #define ERR_NOT_OK -41; added xcodebuild log.
If ERR_NOT_OK is defined as -41, then your
ret_value ERR_NOT_OK;
is substituted with
ret_value -41;
which is a valid expression statement, even though it is effectively a no-op. What was originally intended as unary - gets interpreted as binary - in this context.
This is why it is a good idea to define it as
#define ERR_NOT_OK (-41)
Related
I need to debug Postgres foreign data wrapper mysql_fdw.so. In Clion i try to attach postgres process.
Debugger attached to process 8818
In source code of fdw i try to set break points, but it says no executable code associated with this line.
How can i associate source code? Or can i debug this in another way?
compile commands:
gcc -g3 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -g -ggdb -O0 -fno-omit-frame-pointer -I/usr/local/mysql/include -g3 -D _MYSQL_LIBNAME=\"libmysqlclient.dylib\" -I. -I./ -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -c -o mysql_fdw.o mysql_fdw.c
gcc -g3 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -g -ggdb -O0 -fno-omit-frame-pointer -bundle -multiply_defined suppress -o mysql_fdw.so connection.o option.o deparse.o mysql_query.o mysql_fdw.o -L/usr/local/pgsql/lib -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -Wl,-dead_strip_dylibs -bundle_loader /usr/local/pgsql/bin/postgres
Sort of related to my other question here, since this is also about building llvm.
When trying to get around a build failure in llvm, I noticed the following:
Output in terminal when building a single object file through make:
rp% make asan_posix.o
cd /tmp/llvm20150917-93899-y384cu && /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make -f projects/compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.iossim.dir/build.make projects/compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.iossim.dir/asan_posix.cc.o
Building CXX object projects/compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.iossim.dir/asan_posix.cc.o
cd /tmp/llvm20150917-93899-y384cu/projects/compiler-rt/lib/asan && /usr/local/Library/ENV/4.3/clang++ -DASAN_DYNAMIC=1 -DASAN_HAS_EXCEPTIONS=1 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/llvm20150917-93899-y384cu/projects/compiler-rt/lib/asan -I/tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan -I/tmp/llvm20150917-93899-y384cu/include -I/tmp/llvm20150917-93899-1jg6jdx/include -I/tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan/.. -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -Wall -std=c++11 -arch i386 -arch x86_64 -UNDEBUG -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -Wall -std=c++11 -stdlib=libc++ -mios-simulator-version-min=7.0 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fvisibility=hidden -fno-function-sections -fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti -ftls-model=initial-exec -o CMakeFiles/RTAsan_dynamic.iossim.dir/asan_posix.cc.o -c /tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan/asan_posix.cc
cd /tmp/llvm20150917-93899-y384cu && /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make -f projects/compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.osx.dir/build.make projects/compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.osx.dir/asan_posix.cc.o
Building CXX object projects/compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.osx.dir/asan_posix.cc.o
cd /tmp/llvm20150917-93899-y384cu/projects/compiler-rt/lib/asan && /usr/local/Library/ENV/4.3/clang++ -DASAN_DYNAMIC=1 -DASAN_HAS_EXCEPTIONS=1 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/llvm20150917-93899-y384cu/projects/compiler-rt/lib/asan -I/tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan -I/tmp/llvm20150917-93899-y384cu/include -I/tmp/llvm20150917-93899-1jg6jdx/include -I/tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan/.. -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -Wall -std=c++11 -arch i386 -arch x86_64 -UNDEBUG -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -Wall -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.9 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fvisibility=hidden -fno-function-sections -fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti -ftls-model=initial-exec -o CMakeFiles/RTAsan_dynamic.osx.dir/asan_posix.cc.o -c /tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan/asan_posix.cc
rp% file CMakeFiles/RTAsan_dynamic.iossim.dir/asan_posix.cc.o
CMakeFiles/RTAsan_dynamic.iossim.dir/asan_posix.cc.o: Mach-O 64-bit object x86_64
rp% file CMakeFiles/RTAsan_dynamic.osx.dir/asan_posix.cc.o
CMakeFiles/RTAsan_dynamic.osx.dir/asan_posix.cc.o: Mach-O 64-bit object x86_64
Output when the same commands are entered manually:
rp% cd /tmp/llvm20150917-93899-y384cu/projects/compiler-rt/lib/asan && /usr/local/Library/ENV/4.3/clang++ -DASAN_DYNAMIC=1 -DASAN_HAS_EXCEPTIONS=1 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/llvm20150917-93899-y384cu/projects/compiler-rt/lib/asan -I/tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan -I/tmp/llvm20150917-93899-y384cu/include -I/tmp/llvm20150917-93899-1jg6jdx/include -I/tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan/.. -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -Wall -std=c++11 -arch i386 -arch x86_64 -UNDEBUG -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -Wall -std=c++11 -stdlib=libc++ -mios-simulator-version-min=7.0 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fvisibility=hidden -fno-function-sections -fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti -ftls-model=initial-exec -o CMakeFiles/RTAsan_dynamic.iossim.dir/asan_posix.cc.o -c /tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan/asan_posix.cc
rp% cd /tmp/llvm20150917-93899-y384cu/projects/compiler-rt/lib/asan && /usr/local/Library/ENV/4.3/clang++ -DASAN_DYNAMIC=1 -DASAN_HAS_EXCEPTIONS=1 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/llvm20150917-93899-y384cu/projects/compiler-rt/lib/asan -I/tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan -I/tmp/llvm20150917-93899-y384cu/include -I/tmp/llvm20150917-93899-1jg6jdx/include -I/tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan/.. -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -Wall -std=c++11 -arch i386 -arch x86_64 -UNDEBUG -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -Wall -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.9 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fvisibility=hidden -fno-function-sections -fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti -ftls-model=initial-exec -o CMakeFiles/RTAsan_dynamic.osx.dir/asan_posix.cc.o -c /tmp/llvm20150917-93899-1jg6jdx/projects/compiler-rt/lib/asan/asan_posix.cc
rp% file CMakeFiles/RTAsan_dynamic.iossim.dir/asan_posix.cc.o
CMakeFiles/RTAsan_dynamic.iossim.dir/asan_posix.cc.o: Mach-O universal binary with 2 architectures
CMakeFiles/RTAsan_dynamic.iossim.dir/asan_posix.cc.o (for architecture i386): Mach-O object i386
CMakeFiles/RTAsan_dynamic.iossim.dir/asan_posix.cc.o (for architecture x86_64): Mach-O 64-bit object x86_64
rp% file CMakeFiles/RTAsan_dynamic.osx.dir/asan_posix.cc.o
CMakeFiles/RTAsan_dynamic.osx.dir/asan_posix.cc.o: Mach-O universal binary with 2 architectures
CMakeFiles/RTAsan_dynamic.osx.dir/asan_posix.cc.o (for architecture i386): Mach-O object i386
CMakeFiles/RTAsan_dynamic.osx.dir/asan_posix.cc.o (for architecture x86_64): Mach-O 64-bit object x86_64
The searching I did didn't really help; I didn't write the makefile myself (cmake generated), and at least to my eyes there wasn't reason for make to print something that it wasn't executing.
Anyone have any idea what is going on?
Reproduction steps:
install homebrew if it isn't already installed
replace homebrew's llvm formula with the WIP one here
Run brew install llvm --with-clang --with-lldb --verbose --debug
wait for the build to fail and ask you what to do
Drop into a debug shell
cd to projects/compiler-rt/lib/asan
run make clean
run make asan_posix.o (or any of the other *.o files listed in make help
run file on the output file (in CMakeFiles/RTAsan_dynamic.(osx|iossim).dir/asan_posix.cc.o for me)
Repeat the above 3 steps, but copy-pasting the command instead of running make
Edit: Link to my environment in the shell and during the make process.
The solution to this question ended up being the same as the linked question. homebrew was changing compiler flags, so the commands that were printed weren't the ones being executed. The fix in the other question also happened to fix this.
I'm trying to compile a program I found on the web using Clang++. The Makefile generates this command:
clang++ -c -arch x86_64 -msse3 -std=c++11 -stdlib=libstdc++
-Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type
-Wno-non-virtual-dtor -Wno-exit-time-destructors -Wformat -Wmissing-braces
-Wparentheses -Wno-switch -Wunused-function -Wunused-label -Wno-unused-parameter
-Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wunknown-pragmas
-Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion
-Wint-conversion -Wno-shorten-64-to-32 -Wenum-conversion -Wno-newline-eof
-Wno-c++11-extensions -Wno-logical-op-parentheses -Wno-trigraphs
-Wno-invalid-offsetof -Wno-sign-conversion -Wdeprecated-declarations
-fmessage-length=0 -fno-exceptions -fstrict-aliasing -fvisibility=hidden
-fvisibility-inlines-hidden -funsafe-math-optimizations -ftrapping-math -fno-rtti
-fpascal-strings -fasm-blocks -O3 -Iinclude/ src/main.cpp
But I get
src/main.cpp:23:10: fatal error: 'unordered_map' file not found
#include <unordered_map>
^
1 error generated.
If I compile a simple program that includes <unordered_map> running clang++ test.cpp, it compiles fine.
I'm on
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix
I had the same issue when compiling glogg.
As the comments have pointed out. it was stdlib.
In the makefile after running qmake. Change this line from
CXXFLAGS = -g -Wextra -std=c++11 -DGLOGG_VERSION=\"`cat .tarball-version`\" -O2 -arch x86_64 -Wall -W $(DEFINES)
To this line below
CXXFLAGS = -g -Wextra -std=c++11 -stdlib=libc++ -DGLOGG_VERSION=\"`cat .tarball-version`\" -O2 -arch x86_64 -Wall -W $(DEFINES)
notice "-stdlib=libc++" was specified in the cxxflags. It's autospecified in the linker flags, I guess it also needs to be specified in for the C++ flags.
It says -Wno-c++11-extensions. What wrote that makefile?
I am using xcode 4.2.1, Apple LLVM compiler 3.0.
Project cleans successfully in xcode and builds successfully from the command line. The problem is the project fails to build in xcode. I feel like I am missing something in my xcode configuration. I have made no edits to the original source I pulled down.
From the log navigator:
CompileC /Developer/Code/blender-build/cmake/source/blender/blenkernel/Blender.build/Debug/bf_blenkernel.build/Objects-normal/x86_64/idcode.o source/blender/blenkernel/intern/idcode.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
cd /Developer/Code/blender-build/blender
setenv LANG en_US.US-ASCII
/Developer/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -O0 -Wno-return-type -Wparentheses -Wswitch -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-shorten-64-to-32 "-DCMAKE_INTDIR=\"Debug\"" -DHAVE_STDBOOL_H -D__SSE__ -D__MMX__ -D__SSE2__ -D__LITTLE_ENDIAN__ -DOPJ_STATIC -DGLEW_STATIC -DWITH_AUDASPACE -DWITH_BULLET -DWITH_OPENEXR -DWITH_TIFF -DWITH_OPENJPEG -DWITH_DDS -DWITH_CINEON -DWITH_FRAMESERVER -DWITH_HDR -DWITH_AVI -DWITH_QUICKTIME -DWITH_PYTHON -DWITH_PYTHON_SECURITY -DWITH_MOD_FLUID -DWITH_SMOKE -DWITH_LZO -DWITH_LZMA -DWITH_GAMEENGINE -DWITH_LIBMV -DFFTW3=1 -DWITH_INTERNATIONAL -DWITH_FREESTYLE -DDEBUG -D_DEBUG -isysroot /Developer/SDKs/MacOSX10.7.sdk -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -Wno-sign-conversion -I/Developer/Code/blender-build/cmake/lib/Debug/include -I/Developer/Code/blender-build/blender/source/blender/blenkernel -I/Developer/Code/blender-build/blender/source/blender/blenfont -I/Developer/Code/blender-build/blender/source/blender/blenlib -I/Developer/Code/blender-build/blender/source/blender/blenloader -I/Developer/Code/blender-build/blender/source/blender/gpu -I/Developer/Code/blender-build/blender/source/blender/ikplugin -I/Developer/Code/blender-build/blender/source/blender/imbuf -I/Developer/Code/blender-build/blender/source/blender/makesdna -I/Developer/Code/blender-build/blender/source/blender/makesrna -I/Developer/Code/blender-build/blender/source/blender/bmesh -I/Developer/Code/blender-build/blender/source/blender/modifiers -I/Developer/Code/blender-build/blender/source/blender/nodes -I/Developer/Code/blender-build/blender/source/blender/render/extern/include -I/Developer/Code/blender-build/blender/intern/guardedalloc -I/Developer/Code/blender-build/blender/intern/iksolver/extern -I/Developer/Code/blender-build/blender/intern/memutil -I/Developer/Code/blender-build/blender/intern/mikktspace -I/Developer/Code/blender-build/blender/intern/raskter -I/Developer/Code/blender-build/blender/intern/smoke/extern -I/Developer/Code/blender-build/blender/extern/libmv -I/Developer/Code/blender-build/blender/intern/atomic -I/Developer/Code/blender-build/blender/source/blender/windowmanager -I/Developer/Code/blender-build/blender/intern/audaspace/intern -I/Developer/Code/blender-build/blender/intern/rigidbody -I/Developer/Code/blender-build/blender/source/blender/avi -I/Developer/Code/blender-build/blender/source/blender/quicktime -I/Developer/Code/blender-build/blender/source/blender/python -I/Developer/Code/blender-build/blender/intern/elbeem/extern -I/Developer/Code/blender-build/blender/extern/glew/include -I/Developer/Code/blender-build/blender/extern/bullet2/src -I/Developer/Code/blender-build/blender/extern/lzo/minilzo -I/Developer/Code/blender-build/blender/extern/lzma -I/Developer/Code/blender-build/blender/extern/recastnavigation -I/Developer/Code/blender-build/lib/darwin-9.x.universal/fftw3/include -I/Developer/Code/blender-build/cmake/source/blender/blenkernel/Blender.build/Debug/bf_blenkernel.build/DerivedSources/x86_64 -I/Developer/Code/blender-build/cmake/source/blender/blenkernel/Blender.build/Debug/bf_blenkernel.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Developer/Code/blender-build/cmake/lib/Debug -F/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks -Wall -Wcast-align -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=return-type -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Winit-self -Wnonnull -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -msse2 -msse -pipe -funsigned-char -fno-strict-aliasing -MMD -MT dependencies -MF /Developer/Code/blender-build/cmake/source/blender/blenkernel/Blender.build/Debug/bf_blenkernel.build/Objects-normal/x86_64/idcode.d -c /Developer/Code/blender-build/blender/source/blender/blenkernel/intern/idcode.c -o /Developer/Code/blender-build/cmake/source/blender/blenkernel/Blender.build/Debug/bf_blenkernel.build/Objects-normal/x86_64/idcode.o
Error:
/Developer/Code/blender-build/blender/source/blender/blenkernel/intern/idcode.c:90:10:{90:10-90:29}: error: expression is not an integer constant expression [3]
int i = ARRAY_SIZE(idtypes);
^~~~~~~~~~~~~~~~~~~
/Developer/Code/blender-build/blender/source/blender/blenlib/BLI_utildefines.h:353:36: note: instantiated from:
((sizeof(struct {int isnt_array : ((void *)&(arr) == &(arr)[0]);}) * 0) + \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What can I do to get a clean build?
I upgraded xcode to version 4.6.3. The compiler updated to LLVM 4.2 and these problems were resolved. Otherwise I don't know why the previous version was failing.
I am currently trying to get a simple widget based "hello world" iOS application getting built with "Qt 5.2 for iOS". However, when using QtCreator to compile a freshly created test application with the iphonesimulator-clang kit it just says "there is nothing to be done for first", and no binary file is created. I have spent a few hours already to track this down, but can't figure out what I have configured wrong.
I am using a MacBook Air with OS X 10.8.5, Qt 5.2.0, QtCreator 3.0.0 and XCode 5.0.2 (in case this matters). There is also Qt 4.8.5 installed on this machine, this this version is what I used for production purposes.
Some more things to mention:
When running qmake from QtCreator it gives a warning "The version of XCode installed on this system is not recognized"
The iOS sample applications shipped with 5.2 do build and run correctly
When deleting the ".pro.user" file of such a shipped sample, which means that I need to reconfigure the project in QtCreator again afterwards (selecting the kit), the sample shows the same problems as my freshly created test app: qmake will warn about the XCode version and the make step will not do anything.
Any hints are more than welcome!
In case other people run into the same problem - I finally tracked it down:
Installing the latest XCode command line tools solved the problem.
When initially installing "Qt 5.2 for iOS" I also updated to the latest XCode version via the App Store. I guess that the XCode update did not update the command line tools (which I already had installed before), and for some reason Qt did then silently fail on this.
I'm using Qt 5.2 on my Macbook Pro to do the same as you try to do, a simple qt widget based "Hello World" for iOS and it just works fine.
Build for simulator and run in simulator works on my first try, no need for me to add any extra build step or anything, just using the project template for a widget based iOS application and adding a label.
I see some differences between our setups, but cannot say if any of them are the one causing problems for you:
I have OS X 10.9.1, Qt 5.2.0 for both iOS and Android.
The other versions are the same: QtCreator 3.0 and Xcode 5.0.2.
Hopefully this can be of some help.
See image of iOS simulator running Qt Hello World at http://i.imgur.com/HbB3tYG.png
Compiler output from a "build project" after a "clean project":
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.DebugSimulator
Build settings from command line:
SDKROOT = iphonesimulator7.0
=== BUILD AGGREGATE TARGET Qt Preprocess OF PROJECT testQtForiOS WITH CONFIGURATION Debug ===
Check dependencies
PhaseScriptExecution Qt\ Qmake testQtForiOS.build/Debug-iphonesimulator/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh
cd /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug
/bin/sh -c \"/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh\"
make[2]: `testQtForiOS.xcodeproj/project.pbxproj' is up to date.
PhaseScriptExecution Qt\ Preprocessors testQtForiOS.build/Debug-iphonesimulator/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh
cd /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug
/bin/sh -c \"/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh\"
make[2]: Nothing to be done for `preprocess'.
=== BUILD TARGET testQtForiOS OF PROJECT testQtForiOS WITH CONFIGURATION Debug ===
Check dependencies
Create product structure
/bin/mkdir -p /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator/testQtForiOS.app
ProcessInfoPlistFile Debug-iphonesimulator/testQtForiOS.app/Info.plist Info.plist
cd /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug
builtin-infoPlistUtility /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Info.plist -genpkginfo /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator/testQtForiOS.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator/testQtForiOS.app/Info.plist
CompileC testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/main.o /Users/johan/Documents/Tmp/QtForiOS/testQtForiOS/main.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -mios-simulator-version-min=5.0 -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/testQtForiOS.hmap -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator/include -I/Users/Shared/Qt/5.2.0/5.2.0/ios/mkspecs/macx-ios-clang/ios -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include/QtWidgets -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include/QtGui -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include/QtCore -I. -I. -I. -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/mkspecs/macx-ios-clang -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/DerivedSources/i386 -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/DerivedSources -F/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator -pipe -fvisibility=hidden -fpascal-strings -fmessage-length=0 -Wno-trigraphs -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -Wno-sign-conversion -fexceptions -fasm-blocks -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wno-unused-function -Wno-unused-label -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wpointer-sign -Wno-newline-eof -Wdeprecated-declarations -Winvalid-offsetof -Wno-conversion -fvisibility-inlines-hidden -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -g -gdwarf-2 -Wall -W -fPIE -DDARWIN_NO_CARBON -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -MMD -MT dependencies -MF /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/main.d --serialize-diagnostics /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/main.dia -c /Users/johan/Documents/Tmp/QtForiOS/testQtForiOS/main.cpp -o /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/main.o
CompileC testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/mainwindow.o /Users/johan/Documents/Tmp/QtForiOS/testQtForiOS/mainwindow.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -mios-simulator-version-min=5.0 -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/testQtForiOS.hmap -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator/include -I/Users/Shared/Qt/5.2.0/5.2.0/ios/mkspecs/macx-ios-clang/ios -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include/QtWidgets -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include/QtGui -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include/QtCore -I. -I. -I. -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/mkspecs/macx-ios-clang -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/DerivedSources/i386 -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/DerivedSources -F/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator -pipe -fvisibility=hidden -fpascal-strings -fmessage-length=0 -Wno-trigraphs -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -Wno-sign-conversion -fexceptions -fasm-blocks -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wno-unused-function -Wno-unused-label -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wpointer-sign -Wno-newline-eof -Wdeprecated-declarations -Winvalid-offsetof -Wno-conversion -fvisibility-inlines-hidden -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -g -gdwarf-2 -Wall -W -fPIE -DDARWIN_NO_CARBON -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -MMD -MT dependencies -MF /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/mainwindow.d --serialize-diagnostics /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/mainwindow.dia -c /Users/johan/Documents/Tmp/QtForiOS/testQtForiOS/mainwindow.cpp -o /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/mainwindow.o
CompileC testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/moc_mainwindow.o moc_mainwindow.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -mios-simulator-version-min=5.0 -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/testQtForiOS.hmap -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator/include -I/Users/Shared/Qt/5.2.0/5.2.0/ios/mkspecs/macx-ios-clang/ios -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include/QtWidgets -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include/QtGui -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/include/QtCore -I. -I. -I. -I../../../../../Shared/Qt/5.2.0/5.2.0/ios/mkspecs/macx-ios-clang -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/DerivedSources/i386 -I/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/DerivedSources -F/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator -pipe -fvisibility=hidden -fpascal-strings -fmessage-length=0 -Wno-trigraphs -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -Wno-sign-conversion -fexceptions -fasm-blocks -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wno-unused-function -Wno-unused-label -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wpointer-sign -Wno-newline-eof -Wdeprecated-declarations -Winvalid-offsetof -Wno-conversion -fvisibility-inlines-hidden -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -g -gdwarf-2 -Wall -W -fPIE -DDARWIN_NO_CARBON -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -MMD -MT dependencies -MF /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/moc_mainwindow.d --serialize-diagnostics /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/moc_mainwindow.dia -c /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/moc_mainwindow.cpp -o /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/moc_mainwindow.o
PhaseScriptExecution Qt\ Prelink testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Script-3DA90DAE39A0C9D07C6F6B0F.sh
cd /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug
/bin/sh -c /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Script-3DA90DAE39A0C9D07C6F6B0F.sh
Ld Debug-iphonesimulator/testQtForiOS.app/testQtForiOS normal i386
cd /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator -L/Users/Shared/Qt/5.2.0/5.2.0/ios/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks -L/Users/Shared/Qt/5.2.0/5.2.0/ios/lib -F/Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator -filelist /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/testQtForiOS.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -headerpad_max_install_names -u _qt_registerPlatformPlugin -L/Users/Shared/Qt/5.2.0/5.2.0/ios/plugins/platforms -framework UIKit -L/Users/Shared/Qt/5.2.0/5.2.0/ios/lib -framework OpenGLES -lz -lm -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.0 -lqios_iphonesimulator_debug -framework Foundation -framework QuartzCore -framework CoreFoundation -framework CoreText -framework CoreGraphics -lQt5PlatformSupport_iphonesimulator_debug -lQt5Widgets_iphonesimulator_debug -lQt5Gui_iphonesimulator_debug -lQt5Core_iphonesimulator_debug -Xlinker -dependency_info -Xlinker /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.build/Debug-iphonesimulator/testQtForiOS.build/Objects-normal/i386/testQtForiOS_dependency_info.dat -o /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator/testQtForiOS.app/testQtForiOS
CpResource testQtForiOS.xcodeproj/Default-568h#2x.png Debug-iphonesimulator/testQtForiOS.app/Default-568h#2x.png
cd /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/testQtForiOS.xcodeproj/Default-568h#2x.png /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator/testQtForiOS.app
Touch Debug-iphonesimulator/testQtForiOS.app
cd /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug
/usr/bin/touch -c /Users/johan/Documents/Tmp/QtForiOS/build-testQtForiOS-iphonesimulator_clang_Qt_5_2_0_for_iOS-Debug/Debug-iphonesimulator/testQtForiOS.app
** BUILD SUCCEEDED **