Recently i was trying to install cpuminer and i ran this code to configure it
./configure CFLAGS="-03"
when this error came up
checking whether the C compiler works... no
configure: error: in `/home/default/cpuminer-master':
configure: error: C compiler cannot create executables
Now i did some googling and there are people with similar problems but with rdifferent logs. Mine consists of errors including invalid commandline options which is odd. Here is the log:
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by cpuminer configure 2.3.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure CFLAGS=-03 ## --------- ## ## Platform. ## ## --------- ## hostname = defaultLAPTOP uname -m = x86_64 uname -r = 3.19.0-26-generic uname -s = Linux uname -v = #28~14.04.1-Ubuntu SMP Wed Aug 12 14:09:17 UTC 2015 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:2330: checking build system type configure:2344: result: x86_64-unknown-linux-gnu configure:2364: checking host system type configure:2377: result: x86_64-unknown-linux-gnu configure:2397: checking target system type configure:2410: result: x86_64-unknown-linux-gnu configure:2454: checking for a BSD-compatible install configure:2522: result: /usr/bin/install -c configure:2533: checking whether build environment is sane configure:2588: result: yes configure:2739: checking for a thread-safe mkdir -p configure:2778: result: /bin/mkdir -p configure:2785: checking for gawk configure:2815: result: no configure:2785: checking for mawk configure:2801: found /usr/bin/mawk configure:2812: result: mawk configure:2823: checking whether make sets $(MAKE) configure:2845: result: yes configure:2874: checking whether make supports nested variables configure:2891: result: yes configure:3020: checking whether to enable maintainer-specific portions of Makefiles configure:3029: result: no configure:3055: checking for style of include used by make configure:3083: result: GNU configure:3154: checking for gcc configure:3170: found /usr/bin/gcc configure:3181: result: gcc configure:3410: checking for C compiler version configure:3419: gcc --version >&5 gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 Copyright (C) 2013 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. configure:3430: $? = 0 configure:3419: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) configure:3430: $? = 0 configure:3419: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3430: $? = 4 configure:3419: gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:3430: $? = 4 configure:3450: checking whether the C compiler works configure:3472: gcc -03 conftest.c >&5 gcc: error: unrecognized command line option '-03' configure:3476: $? = 1 configure:3514: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "cpuminer" | #define PACKAGE_TARNAME "cpuminer" | #define PACKAGE_VERSION "2.3.2" | #define PACKAGE_STRING "cpuminer 2.3.2" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "cpuminer" | #define VERSION "2.3.2" | /* end confdefs.h. */ | | int | main () | { |
-O3
, not-03
(capital letter O, not digit zero) – Mat 10 hours ago