How to build MPICH with gfortran-10? - fortran

TL;DR
How to build MPICH with gfortran-10, gcc-10 and g++-10?
Background
I want to build MPICH with grortran-10 so as to be able to use up to date MPI bindings, but I haven't managed to do so. Trying to install MPICH via apt on Ubuntu always uses gfortran 7.5.0 (same version with gcc and g++), even if I have latest version of gfortran installed. Just for clarity, here is my current MPICH and gfortran configuration (installed via apt) :
pavel#pavel:~$ mpiexec --version
HYDRA build details:
Version: 3.3a2
Release Date: Sun Nov 13 09:12:11 MST 2016
CC: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro
CXX: g++ -Wl,-Bsymbolic-functions -Wl,-z,relro
F77: gfortran -Wl,-Bsymbolic-functions -Wl,-z,relro
F90: gfortran -Wl,-Bsymbolic-functions -Wl,-z,relro
Configure options: '--disable-option-checking' '--prefix=/usr' '--build=x86_64-linux-gnu' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-libfabric' '--enable-shared' '--enable-fortran=all' '--disable-rpath' '--disable-wrapper-rpath' '--sysconfdir=/etc/mpich' '--libdir=/usr/lib/x86_64-linux-gnu' '--includedir=/usr/include/mpich' '--docdir=/usr/share/doc/mpich' '--with-hwloc-prefix=system' '--enable-checkpointing' '--with-hydra-ckpointlib=blcr' 'CPPFLAGS= -Wdate-time -D_FORTIFY_SOURCE=2 -I/build/mpich-O9at2o/mpich-3.3~a2/src/mpl/include -I/build/mpich-O9at2o/mpich-3.3~a2/src/mpl/include -I/build/mpich-O9at2o/mpich-3.3~a2/src/openpa/src -I/build/mpich-O9at2o/mpich-3.3~a2/src/openpa/src -D_REENTRANT -I/build/mpich-O9at2o/mpich-3.3~a2/src/mpi/romio/include' 'CFLAGS= -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -Wformat -Werror=format-security -O2' 'CXXFLAGS= -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -Wformat -Werror=format-security -O2' 'FFLAGS= -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -O2' 'FCFLAGS= -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -O2' 'build_alias=x86_64-linux-gnu' 'MPICHLIB_CFLAGS=-g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -Wformat -Werror=format-security' 'MPICHLIB_CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'MPICHLIB_CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -Wformat -Werror=format-security' 'MPICHLIB_FFLAGS=-g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong' 'MPICHLIB_FCFLAGS=-g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'FC=gfortran' 'F77=gfortran' 'MPILIBNAME=mpich' '--cache-file=/dev/null' '--srcdir=.' 'CC=gcc' 'LIBS=' 'MPLLIBNAME=mpl'
Process Manager: pmi
Launchers available: ssh rsh fork slurm ll lsf sge manual persist
Topology libraries available: hwloc
Resource management kernels available: user slurm ll lsf sge pbs cobalt
Checkpointing libraries available: blcr
Demux engines available: poll select
pavel#pavel:~$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
With gcc and g++, it's the same as with gfortran in all relevant aspects.

I followed advice VladimirF gave me in the comments, and everthing worked out. This site provided all the necessary guidelines. Only a few minor problems had to be dealth with. Before I could create ./configure file, I was prompted to install some missing autotools, which was simply done using apt. Once ./configure file was ready, I passed in the mostly same configuration that apt originally installed MPICH with (see the long list original question), with 'FC = gfortran-10' 'CC = gcc-10' 'CXX = g++-10' replacing 'FC = gfortran' 'CC = gcc' 'CXX = g++'. Several more prompts had to be dealt with (mostly adding something to configuration or installing missing packages, easily done with Synaptic package manager). After doing all the steps, F08 bindings were succesfully built and work properly. Here is my current MPICH configuration :
pavel#pavel:$ mpiexec --version
HYDRA build details:
Version: 3.4b1
Release Date: unreleased development copy
CC: gcc-10 -Wdate-time -D_FORTIFY_SOURCE=2 -I/build/mpich-O9at2o/mpich-3.3~a2/src/mpl/include -I/build/mpich-O9at2o/mpich-3.3~a2/src/mpl/include -I/build/mpich-O9at2o/mpich-3.3~a2/src/openpa/src -I/build/mpich-O9at2o/mpich-3.3~a2/src/openpa/src -D_REENTRANT -I/build/mpich-O9at2o/mpich-3.3~a2/src/mpi/romio/include -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro
Configure options: '--disable-option-checking' '--prefix=/usr' '--build=x86_64-linux-gnu' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-libfabric' '--enable-shared' '--enable-fortran=all' '--disable-rpath' '--disable-wrapper-rpath' '--sysconfdir=/etc/mpich' '--libdir=/usr/lib/x86_64-linux-gnu' '--includedir=/usr/include/mpich' '--docdir=/usr/share/doc/mpich' '--with-hwloc-prefix=system' '--enable-checkpointing' '--with-hydra-ckpointlib=blcr' 'CPPFLAGS= -Wdate-time -D_FORTIFY_SOURCE=2 -I/build/mpich-O9at2o/mpich-3.3~a2/src/mpl/include -I/build/mpich-O9at2o/mpich-3.3~a2/src/mpl/include -I/build/mpich-O9at2o/mpich-3.3~a2/src/openpa/src -I/build/mpich-O9at2o/mpich-3.3~a2/src/openpa/src -D_REENTRANT -I/build/mpich-O9at2o/mpich-3.3~a2/src/mpi/romio/include -Wdate-time -D_FORTIFY_SOURCE=2 -I/home/pavel/mpich/src/mpl/include -I/home/pavel/mpich/src/mpl/include -I/home/pavel/mpich/modules/json-c -I/home/pavel/mpich/modules/json-c -D_REENTRANT -I/home/pavel/mpich/src/mpi/romio/include' 'CFLAGS= -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -Wformat -Werror=format-security -O2 -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -Wformat -Werror=format-security -O2' 'CXXFLAGS= -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -Wformat -Werror=format-security -O2 -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -Wformat -Werror=format-security -O2' 'FFLAGS= -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -fallow-argument-mismatch -O2 -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -O2' 'FCFLAGS= -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -O2 -g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -O2' 'build_alias=x86_64-linux-gnu' 'MPICHLIB_CFLAGS=-g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -Wformat -Werror=format-security' 'MPICHLIB_CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'MPICHLIB_CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong -Wformat -Werror=format-security' 'MPICHLIB_FFLAGS=-g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong' 'MPICHLIB_FCFLAGS=-g -O2 -fdebug-prefix-map=/build/mpich-O9at2o/mpich-3.3~a2=. -fstack-protector-strong' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'FC=gfortran-10' 'F77=gfortran-10' 'MPILIBNAME=mpich' 'CC=gcc-10' 'LIBS=' 'MPLLIBNAME=mpl' 'CXX=g++-10' '--with-device=ch3' '--cache-file=/dev/null' '--srcdir=.'
Process Manager: pmi
Launchers available: ssh rsh fork slurm ll lsf sge manual persist
Topology libraries available:
Resource management kernels available: user slurm ll lsf sge pbs cobalt
Demux engines available: poll select

Related

How to associate source files with dynamic library

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

opencv crosscompilation failed with __fp16 does not name type

I am trying to cross compile opencv, but it fails with cvdef.h:314:5: error: '__fp16' does not name a type.
The cross compiler has hf support and the fp16 extension.
... --enable-languages=c,c++ --with-cpu=cortex-a53
--with-fpu=vfpv3-fp16 --with-float=hard --with-pkgversion='crosstool-NG crosstool-ng-1.22.0' --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath ...
I have tried to set extra flags in the cmake file:
set(GCC_COMPILER_VERSION "5.2.0" CACHE STRING "GCC Compiler version")
set(GNU_MACHINE "arm-linux-gnueabihf" CACHE STRING "GNU compiler
triple")
set(CMAKE_CXX_FLAGS " -mfloat-abi=hard -mfp16-format=ieee")
set(CMAKE_C_FLAGS " -mfloat-abi=hard -mfp16-format=ieee")
include("${CMAKE_CURRENT_LIST_DIR}/arm.toolchain.cmake")
But it looks like the flags were ignored.
cmake configuration output:
-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG
thx for your help.
This issue was fixed recently: https://github.com/opencv/opencv/pull/7294
Please try to use the latest master branch.

Changing --prefix and --with-gxx-include-dir on OSX

I'm trying to compile a Mex file from within Matlab R2014b using g++4.8 on OSX, with my own mexopts.sh. The relevant options are:
-> CXX = g++
-> CXX flags:
CXXFLAGS = -ansi -D_GNU_SOURCE -std=c++0x -arch x86_64 -mmacosx-version-min=10.10 -fPIC -fno-omit-frame-pointer -pthread
CXXDEBUGFLAGS = -g
CXXOPTIMFLAGS = -O2 -DNDEBUG
CXXLIBS = -Wl,-rpath-link,/path/to/MATLAB_R2014b.app/bin/maci64 -L/path/to/MATLAB_R2014b.app/bin/maci64 -lmx -lmex -lmat -lm
arguments = -DMX_COMPAT_32
The compiling command issued by Mex is:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
-> g++ -c -I/path/to/MATLAB_R2014b.app/extern/include -I/path/to/MATLAB_R2014b.app/simulink/include -DMATLAB_MEX_FILE -ansi -D_GNU_SOURCE -std=c++0x -arch x86_64 -mmacosx-version-min=10.10 -fPIC -fno-omit-frame-pointer -pthread -DMX_COMPAT_32 -O2 -DNDEBUG "/path/to/myfile.cpp" -o /path/to/myfile.o
My problem is in the first line Configured with: ..., I would like to change --prefix and --with-gxx-include-dir to the same values as GCC:
sheljohn#computer$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin14/4.8.3/lto-wrapper
Target: x86_64-apple-darwin14
Configured with: /opt/local/var/macports/build/_opt_mports_dports_lang_gcc48/gcc48/work/gcc-4.8.3/configure --prefix=/opt/local --build=x86_64-apple-darwin14 --enable-languages=c,c++,objc,obj-c++,lto,fortran,java --libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.8 --with-gxx-include-dir=/opt/local/include/gcc48/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --disable-isl-version-check --with-cloog=/opt/local --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --with-pkgversion='MacPorts gcc48 4.8.3_3'
Thread model: posix
gcc version 4.8.3 (MacPorts gcc48 4.8.3_3)
Is there a way to change these options?

What could cause clang to not find the unordered_map header?

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?

Qt 5.2 & iOS: "Nothing to be done"

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 **