There’s some info on this issue in this thread.
One option is to add -fno-pie to the extra compiler/linker flags when building the project (you can do this in the Projucer, or set the CXXFLAGS and LDFLAGS variables when building with a makefile).
make clean; make CXXFLAGS=-fno-pie LDFLAGS=-fno-pie
Another option is to compile with Clang instead of GCC. If Clang is installed, you can specify the compiler by setting CXX=clang++ during the build.
make clean; make CC=clang CXX=clang++
