I'm trying to set up Cgminer on a shiny new install of Ubuntu 12.04.
I've installed the AMD SDK packages, put the *.h files into Cgminer's ADK folder and I've got all of the dependencies mentioned in the README.
checking whether the C compiler works... no
configure: error: in `/home/slick/cgminer-2.11.3':
configure: error: C compiler cannot create executables
Any help/hints would be greatly appreciated as I am Linux noobie. I figured this would be a good project to get me more familiar, since I'll have to start using Linux more for work soon.
I think this is the most relevant part of the config file (the entire thing is at the bottom):
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cgminer configure 2.11.3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = Zamboni
uname -m = x86_64
uname -r = 3.5.0-23-generic
uname -s = Linux
uname -v = #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013
/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
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2779: checking build system type
configure:2793: result: x86_64-unknown-linux-gnu
configure:2813: checking host system type
configure:2826: result: x86_64-unknown-linux-gnu
configure:2846: checking target system type
configure:2859: result: x86_64-unknown-linux-gnu
configure:2907: checking for a BSD-compatible install
configure:2975: result: /usr/bin/install -c
configure:2986: checking whether build environment is sane
configure:3036: result: yes
configure:3177: checking for a thread-safe mkdir -p
configure:3216: result: /bin/mkdir -p
configure:3230: checking for gawk
configure:3260: result: no
configure:3230: checking for mawk
configure:3246: found /usr/bin/mawk
configure:3257: result: mawk
configure:3268: checking whether make sets $(MAKE)
configure:3290: result: yes
configure:3381: checking whether make supports nested variables
configure:3398: result: yes
configure:3421: checking for style of include used by make
configure:3449: result: GNU
configure:3520: checking for gcc
configure:3536: found /usr/bin/gcc
configure:3547: result: gcc
configure:3776: checking for C compiler version
configure:3785: gcc --version >&5
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 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:3796: $? = 0
configure:3785: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --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.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configure:3796: $? = 0
configure:3785: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3796: $? = 4
configure:3785: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3796: $? = 4
configure:3816: checking whether the C compiler works
configure:3838: gcc -o2 -Wall -march=native conftest.c >&5
configure:3842: $? = 0
configure:3880: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cgminer"
| #define PACKAGE_TARNAME "cgminer"
| #define PACKAGE_VERSION "2.11.3"
| #define PACKAGE_STRING "cgminer 2.11.3"
| #define PACKAGE_BUGREPORT "
[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "cgminer"
| #define VERSION "2.11.3"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3885: error: in `/home/slick/cgminer-2.11.3':
configure:3887: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-o2 -Wall -march=native'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBCURL_CFLAGS_set=
ac_cv_env_LIBCURL_CFLAGS_value=
ac_cv_env_LIBCURL_LIBS_set=
ac_cv_env_LIBCURL_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIBUSB_CFLAGS_set=
ac_cv_env_LIBUSB_CFLAGS_value=
ac_cv_env_LIBUSB_LIBS_set=
ac_cv_env_LIBUSB_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=x86_64-unknown-linux-gnu
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/slick/cgminer-2.11.3/missing --run aclocal-1.11'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
APPLE_UNIVERSAL_BUILD=''
AUTOCONF='${SHELL} /home/slick/cgminer-2.11.3/missing --run autoconf'
AUTOHEADER='${SHELL} /home/slick/cgminer-2.11.3/missing --run autoheader'
AUTOMAKE='${SHELL} /home/slick/cgminer-2.11.3/missing --run automake-1.11'
AWK='mawk'
BITSIZEOF_PTRDIFF_T=''
BITSIZEOF_SIG_ATOMIC_T=''
BITSIZEOF_SIZE_T=''
BITSIZEOF_WCHAR_T=''
BITSIZEOF_WINT_T=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-o2 -Wall -march=native'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLOPEN_FLAGS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GL_COND_LIBTOOL_FALSE=''
GL_COND_LIBTOOL_TRUE=''
GL_GENERATE_STDDEF_H_FALSE=''
GL_GENERATE_STDDEF_H_TRUE=''
GL_GENERATE_STDINT_H_FALSE=''
GL_GENERATE_STDINT_H_TRUE=''
GNULIB_MBSCASECMP=''
GNULIB_MBSCASESTR=''
GNULIB_MBSCHR=''
GNULIB_MBSCSPN=''
GNULIB_MBSLEN=''
GNULIB_MBSNCASECMP=''
GNULIB_MBSNLEN=''
GNULIB_MBSPBRK=''
GNULIB_MBSPCASECMP=''
GNULIB_MBSRCHR=''
GNULIB_MBSSEP=''
GNULIB_MBSSPN=''
GNULIB_MBSSTR=''
GNULIB_MBSTOK_R=''
GNULIB_MEMCHR=''
GNULIB_MEMMEM=''
GNULIB_MEMPCPY=''
GNULIB_MEMRCHR=''
GNULIB_RAWMEMCHR=''
GNULIB_SIGACTION=''
GNULIB_SIGNAL_H_SIGPIPE=''
GNULIB_SIGPROCMASK=''
GNULIB_STPCPY=''
GNULIB_STPNCPY=''
GNULIB_STRCASESTR=''
GNULIB_STRCHRNUL=''
GNULIB_STRDUP=''
GNULIB_STRERROR=''
GNULIB_STRERROR_R=''
GNULIB_STRNCAT=''
GNULIB_STRNDUP=''
GNULIB_STRNLEN=''
GNULIB_STRPBRK=''
GNULIB_STRSEP=''
GNULIB_STRSIGNAL=''
GNULIB_STRSTR=''
GNULIB_STRTOK_R=''
GNULIB_STRVERSCMP=''
GREP=''
HAS_BFLSC_FALSE=''
HAS_BFLSC_TRUE=''
HAS_BITFORCE_FALSE=''
HAS_BITFORCE_TRUE=''
HAS_CPUMINE_FALSE=''
HAS_CPUMINE_TRUE=''
HAS_ICARUS_FALSE=''
HAS_ICARUS_TRUE=''
HAS_MODMINER_FALSE=''
HAS_MODMINER_TRUE=''
HAS_SCRYPT_FALSE=''
HAS_SCRYPT_TRUE=''
HAS_YASM_FALSE=''
HAS_YASM_TRUE=''
HAS_ZTEX_FALSE=''
HAS_ZTEX_TRUE=''
HAVE_CURSES_FALSE=''
HAVE_CURSES_TRUE=''
HAVE_DECL_MEMMEM=''
HAVE_DECL_MEMRCHR=''
HAVE_DECL_STRDUP=''
HAVE_DECL_STRERROR_R=''
HAVE_DECL_STRNDUP=''
HAVE_DECL_STRNLEN=''
HAVE_DECL_STRSIGNAL=''
HAVE_DECL_STRTOK_R=''
HAVE_INTTYPES_H=''
HAVE_LIBUDEV_FALSE=''
HAVE_LIBUDEV_TRUE=''
HAVE_LONG_LONG_INT=''
HAVE_MBSLEN=''
HAVE_MEMCHR=''
HAVE_MEMPCPY=''
HAVE_POSIX_SIGNALBLOCKING=''
HAVE_RAWMEMCHR=''
HAVE_SIGACTION=''
HAVE_SIGHANDLER_T=''
HAVE_SIGINFO_T=''
HAVE_SIGNED_SIG_ATOMIC_T=''
HAVE_SIGNED_WCHAR_T=''
HAVE_SIGNED_WINT_T=''
HAVE_SIGSET_T=''
HAVE_STDINT_H=''
HAVE_STPCPY=''
HAVE_STPNCPY=''
HAVE_STRCASESTR=''
HAVE_STRCHRNUL=''
HAVE_STRPBRK=''
HAVE_STRSEP=''
HAVE_STRUCT_SIGACTION_SA_SIGACTION=''
HAVE_STRVERSCMP=''
HAVE_SYS_BITYPES_H=''
HAVE_SYS_INTTYPES_H=''
HAVE_SYS_TYPES_H=''
HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=''
HAVE_UNSIGNED_LONG_LONG_INT=''
HAVE_WCHAR_H=''
HAVE_WCHAR_T=''
HAVE_WINDOWS_FALSE=''
HAVE_WINDOWS_TRUE=''
HAVE_x86_64_FALSE=''
HAVE_x86_64_TRUE=''
INCLUDE_NEXT=''
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
JANSSON_LIBS=''
LDFLAGS=''
LIBCURL_CFLAGS=''
LIBCURL_LIBS=''
LIBGNU_LIBDEPS=''
LIBGNU_LTLIBDEPS=''
LIBOBJS=''
LIBS=''
LIBUSB_CFLAGS=''
LIBUSB_LIBS=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /home/slick/cgminer-2.11.3/missing --run makeinfo'
MATH_LIBS=''
MKDIR_P='/bin/mkdir -p'
NCURSES_LIBS=''
NEED_FPGAUTILS_FALSE=''
NEED_FPGAUTILS_TRUE=''
NEED_USBUTILS_C_FALSE=''
NEED_USBUTILS_C_TRUE=''
NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=''
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=''
NEXT_AS_FIRST_DIRECTIVE_STDINT_H=''
NEXT_AS_FIRST_DIRECTIVE_STRING_H=''
NEXT_SIGNAL_H=''
NEXT_STDDEF_H=''
NEXT_STDINT_H=''
NEXT_STRING_H=''
OBJEXT=''
OPENCL_FLAGS=''
OPENCL_LIBS=''
PACKAGE='cgminer'
PACKAGE_BUGREPORT='
[email protected]'
PACKAGE_NAME='cgminer'
PACKAGE_STRING='cgminer 2.11.3'
PACKAGE_TARNAME='cgminer'
PACKAGE_URL=''
PACKAGE_VERSION='2.11.3'
PATH_SEPARATOR=':'
PDCURSES_LIBS=''
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
PRAGMA_COLUMNS=''
PRAGMA_SYSTEM_HEADER=''
PTHREAD_FLAGS=''
PTHREAD_LIBS=''
PTRDIFF_T_SUFFIX=''
RANLIB=''
REPLACE_MEMCHR=''
REPLACE_MEMMEM=''
REPLACE_NULL=''
REPLACE_STPNCPY=''
REPLACE_STRCASESTR=''
REPLACE_STRCHRNUL=''
REPLACE_STRDUP=''
REPLACE_STRERROR=''
REPLACE_STRERROR_R=''
REPLACE_STRNCAT=''
REPLACE_STRNDUP=''
REPLACE_STRNLEN=''
REPLACE_STRSIGNAL=''
REPLACE_STRSTR=''
REPLACE_STRTOK_R=''
SET_MAKE=''
SHELL='/bin/bash'
SIG_ATOMIC_T_SUFFIX=''
SIZE_T_SUFFIX=''
STDDEF_H=''
STDINT_H=''
STRIP=''
UDEV_LIBS=''
UNDEFINE_STRTOK_R=''
VERSION='2.11.3'
VMAJ=''
WANT_JANSSON_FALSE=''
WANT_JANSSON_TRUE=''
WCHAR_T_SUFFIX=''
WINT_T_SUFFIX=''
WS2_LIBS=''
YASM=''
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
gl_LIBOBJS=''
gl_LTLIBOBJS=''
gltests_LIBOBJS=''
gltests_LTLIBOBJS=''
gltests_WITNESS=''
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/slick/cgminer-2.11.3/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
release_info=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-unknown-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='unknown'
version_info=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "cgminer"
#define PACKAGE_TARNAME "cgminer"
#define PACKAGE_VERSION "2.11.3"
#define PACKAGE_STRING "cgminer 2.11.3"
#define PACKAGE_BUGREPORT "
[email protected]"
#define PACKAGE_URL ""
#define PACKAGE "cgminer"
#define VERSION "2.11.3"
configure: exit 77