[postgis-users] compiling from source code

Sandeep Gupta gupta.sandeep at gmail.com
Fri Jul 7 15:17:36 PDT 2017


Hi Regina,

 Here is the output for gcc -v (install gcc from linuxbrew, which port
of brew package manager of macOS):

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)


Thanks.
sandeep



On Fri, Jul 7, 2017 at 5:52 PM, Regina Obe <lr at pcorp.us> wrote:
> Steve and Sandeep,
>
> Can you try gcc -v instead and let me know what that outputs?
>
> I just checked our Debian PostGIS bot, and she's running gcc 5.2.1  and think she's running the newest of any of our bots . So I can 't rule out a newer gcc at fault here.
> However if I do gcc -V, I get an error on her too, so that's not the issue here:
> --
>
> gcc: error: unrecognized command line option â?~-Vâ?T
> gcc: fatal error: no input files
> compilation terminated.
>
> However, lower case -v  (which is what I think configure uses, works just fine).
>
> gcc -v
>
> outputs:
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Debian 5.2.1-22' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --ena
> jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-m
> Thread model: posix
> gcc version 5.2.1 20151010 (Debian 5.2.1-22)
>
>
> I'm not sure where Sandeep's   gcc -V is coming from in configure, cause it looks like gcc -v works fine on his system too, but then somewhere down the line switches to upper case -V which is not a valid switch command even in lower gcc versions.
>
>
>
>
> Thanks,
> Regina
>
> -----
> From: Stephen Woodbridge Date: Fri, Jul 7, 2017 at 2:09 PM
>
>
>
> I get the same error running on Ubuntu 16.04 with:
>
> $ gcc -V
> gcc: error: unrecognized command line option ‘-V’
> gcc: fatal error: no input files
> compilation terminated.
>
> Looks like the option should be --version
> $ gcc --version
> gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
> Copyright (C) 2015 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> -Steve
>
> On 7/7/2017 1:51 PM, Sandeep Gupta wrote:
> 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
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users


More information about the postgis-users mailing list