Autoconf was missing, so I went ahead install autoconf, automake, and libtool.
Tried recompiling. sh autogen.sh outputs: * Running /home/linuxbrew/.linuxbrew/bin/glibtoolize (2.4.6) OPTIONS = --force --copy --install glibtoolize: putting auxiliary files in '.'. glibtoolize: copying file './config.guess' glibtoolize: copying file './config.sub' glibtoolize: copying file './install-sh' glibtoolize: copying file './ltmain.sh' glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'macros'. glibtoolize: copying file 'macros/libtool.m4' glibtoolize: copying file 'macros/ltoptions.m4' glibtoolize: copying file 'macros/ltsugar.m4' glibtoolize: copying file 'macros/ltversion.m4' glibtoolize: copying file 'macros/lt~obsolete.m4' glibtoolize: Consider adding '-I macros' to ACLOCAL_AMFLAGS in Makefile.am. * Running /home/linuxbrew/.linuxbrew/bin/aclocal (1.15.1) * Running /home/linuxbrew/.linuxbrew/bin/autoconf (2.69) ====================================== Now you are ready to run './configure' ====================================== This does not solve though. When I run ./configure same error appears with -V flag being the issue. -sandeep On Fri, Jul 7, 2017 at 6:33 PM, Regina Obe <[email protected]> wrote: > Okay I just got an irc note from Even Roualt. He is running Ubuntu 16.04 and > gcc 5.4 and had no issue running > > sh autogen.sh > ./configure > > So doesn't seem like it's a newer gcc issue unless if its 5.3 specific. > > I'm suspecting something with brew, MacOS, or tool chain like autoconf. > > What does: > > autoconf --version > > Return? > > I get > > autoconf (GNU Autoconf) 2.69 > Copyright (C) 2012 Free Software Foundation, Inc. > License GPLv3+/Autoconf: GNU GPL version 3 or later > > Thanks, > Regina > > -----Original Message----- > From: postgis-users [mailto:[email protected]] On Behalf > Of Sandeep Gupta > Sent: Friday, July 07, 2017 6:18 PM > To: PostGIS Users Discussion <[email protected]> > Subject: Re: [postgis-users] compiling from source code > > 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 <[email protected]> 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-lin >> ux-gnu/5.3.0/specs >> COLLECT_GCC=gcc >> COLLECT_LTO_WRAPPER=/home/linuxbrew/.linuxbrew/Cellar/gcc/5.3.0/libexe >> c/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 >> [email protected] >> 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 >> [email protected] >> https://lists.osgeo.org/mailman/listinfo/postgis-users >> >> >> _______________________________________________ >> postgis-users mailing list >> [email protected] >> https://lists.osgeo.org/mailman/listinfo/postgis-users > _______________________________________________ > postgis-users mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/postgis-users > > _______________________________________________ > postgis-users mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/postgis-users _______________________________________________ postgis-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/postgis-users
