[postgis-users] compiling from source code
Sandeep Gupta
gupta.sandeep at gmail.com
Fri Jul 7 10:51:44 PDT 2017
Hi,
I am using gcc version 5.3 to compile postgis on Fedora.
The compile fails at the configure step.
I get the error:
configure: error: C preprocessor "gcc" fails sanity check
See `config.log' for more details
The relevant line in config.log:
configure:3031: gcc -v >&5
Reading specs from
/home/linuxbrew/.linuxbrew/Cellar/gcc/5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/linuxbrew/.linuxbrew/Cellar/gcc/5.3.0/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure
--prefix=/home/linuxbrew/.linuxbrew/Cellar/gcc/5.3.0
--enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5
--with-gmp=/home/linuxbrew/.linuxbrew/opt/gmp
--with-mpfr=/home/linuxbrew/.linuxbrew/opt/mpfr
--with-mpc=/home/linuxbrew/.linuxbrew/opt/libmpc
--with-isl=/home/linuxbrew/.linuxbrew/opt/isl --with-system-zlib
--enable-libstdcxx-time=yes --enable-stage1-checking
--enable-checking=release --enable-lto
--with-build-config=bootstrap-debug --disable-werror
--with-pkgversion='Homebrew gcc 5.3.0'
--with-bugurl=https://github.com/Homebrew/homebrew/issues
--enable-plugin --disable-nls --disable-multilib
Thread model: posix
gcc version 5.3.0 (Homebrew gcc 5.3.0)
configure:3042: $? = 0
configure:3031: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
It seems gcc does not like "-V" option. I this a issue to with later
gcc versions?
Thanks.
sandeep
More information about the postgis-users
mailing list