You are not logged in.

#1 2012-06-12 02:58:54

mynameisneo
Member
Registered: 2011-11-25
Posts: 45

[SOLVED] C Compiler Cannot Create Executables

I am aware that there is already a thread on this here however it failed to solve my issue. I have installed the multilib-devel packages as the referenced post suggested, but I still receive the following error message when attempting to compile wine-mono package either with makepkg or with yaourt.

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-w64-mingw32
checking target system type... x86_64-w64-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-w64-mingw32-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking host platform characteristics... ok
checking for x86_64-w64-mingw32-gcc... no
checking for gcc... gcc
checking for x86_64-w64-mingw32-gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/yaourt-tmp-sensei/aur-wine-mono/src/wine-mono-0.0.4/build-cross-x86_64':
configure: error: C compiler cannot create executables
See `config.log' for more details

My config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by mono configure 2.11.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ../mono/configure --prefix=/home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/build-cross-x86_64-install --build=x86_64-unknown-linux-gnu --target=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --with-tls=none --disable-mcs-build --enable-win32-dllmain=yes --with-libgc-threads=win32 PKG_CONFIG=false mono_cv_clang=no

## --------- ##
## Platform. ##
## --------- ##

hostname = archmage
uname -m = x86_64
uname -r = 3.3.8-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Tue Jun 5 15:20:32 CEST 2012

/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/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/bin/core_perl
PATH: /home/sensei/Documents/Scripts


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2970: checking build system type
configure:2984: result: x86_64-unknown-linux-gnu
configure:3004: checking host system type
configure:3017: result: x86_64-w64-mingw32
configure:3037: checking target system type
configure:3050: result: x86_64-w64-mingw32
configure:3099: checking for a BSD-compatible install
configure:3167: result: /usr/bin/install -c
configure:3178: checking whether build environment is sane
configure:3233: result: yes
configure:3292: checking for x86_64-w64-mingw32-strip
configure:3322: result: no
configure:3332: checking for strip
configure:3348: found /usr/bin/strip
configure:3359: result: strip
configure:3371: WARNING: using cross tools not prefixed with host triplet
configure:3384: checking for a thread-safe mkdir -p
configure:3423: result: /bin/mkdir -p
configure:3430: checking for gawk
configure:3446: found /usr/bin/gawk
configure:3457: result: gawk
configure:3468: checking whether make sets $(MAKE)
configure:3490: result: yes
configure:3565: checking how to create a ustar tar archive
configure:3578: tar --version
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
configure:3581: $? = 0
configure:3621: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:3624: $? = 0
configure:3628: tar -xf - <conftest.tar
configure:3631: $? = 0
configure:3644: result: gnutar
configure:3654: checking whether to enable maintainer-specific portions of Makefiles
configure:3663: result: no
configure:3680: checking whether ln -s works
configure:3684: result: yes
configure:3737: checking host platform characteristics
configure:4029: result: ok
configure:4090: checking for x86_64-w64-mingw32-gcc
configure:4120: result: no
configure:4130: checking for gcc
configure:4146: found /usr/bin/gcc
configure:4157: result: gcc
configure:4187: checking for x86_64-w64-mingw32-gcc
configure:4214: result: gcc
configure:4483: checking for C compiler version
configure:4492: gcc --version >&5
gcc (GCC) 4.7.0 20120505 (prerelease)
Copyright (C) 2012 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:4503: $? = 0
configure:4492: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.7-20120505/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-multilib --disable-libssp --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-checking=release
Thread model: posix
gcc version 4.7.0 20120505 (prerelease) (GCC) 
configure:4503: $? = 0
configure:4492: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4503: $? = 1
configure:4492: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:4503: $? = 1
configure:4523: checking whether the C compiler works
configure:4545: gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2  -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024 -DGC_NOT_DLL -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -lmswsock -lws2_32 -lole32 -loleaut32 -lpsapi -lversion -ladvapi32 -lwinmm -lkernel32 conftest.c  >&5
/usr/bin/ld: cannot find -lmswsock
/usr/bin/ld: cannot find -lws2_32
/usr/bin/ld: cannot find -lole32
/usr/bin/ld: cannot find -loleaut32
/usr/bin/ld: cannot find -lpsapi
/usr/bin/ld: cannot find -lversion
/usr/bin/ld: cannot find -ladvapi32
/usr/bin/ld: cannot find -lwinmm
/usr/bin/ld: cannot find -lkernel32
collect2: error: ld returned 1 exit status
configure:4549: $? = 1
configure:4587: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mono"
| #define PACKAGE_TARNAME "mono"
| #define PACKAGE_VERSION "2.11.1"
| #define PACKAGE_STRING "mono 2.11.1"
| #define PACKAGE_BUGREPORT "http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono"
| #define PACKAGE_URL ""
| #define PACKAGE "mono"
| #define VERSION "2.11.1"
| #define HOST_WIN32 1
| #define DISABLE_PORTABILITY 1
| #define PLATFORM_NO_SYMLINKS 1
| #define TARGET_WIN32 1
| #define MINGW_CROSS_COMPILE 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:4592: error: in `/home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/build-cross-x86_64':
configure:4594: 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_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-unknown-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-w64-mingw32
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=x86_64-w64-mingw32
ac_cv_host=x86_64-w64-mingw32
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=gcc
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes
ac_cv_target=x86_64-w64-mingw32
am_cv_prog_tar_ustar=gnutar
mono_cv_clang=no

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/missing --run aclocal-1.12'
ALPHA_FALSE=''
ALPHA_TRUE=''
AMD64_FALSE=''
AMD64_TRUE=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
API_VER='2.0'
AR=''
ARM_FALSE=''
ARM_TRUE=''
AS=''
AUTOCONF='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/missing --run autoconf'
AUTOHEADER='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/missing --run autoheader'
AUTOMAKE='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/missing --run automake-1.12'
AWK='gawk'
BOEHM_DEFINES=''
BUILD_EXEEXT=''
BUILD_GLIB_CFLAGS=''
BUILD_GLIB_LIBS=''
BUILD_MCS_FALSE=''
BUILD_MCS_TRUE=''
CC='gcc'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CC_FOR_BUILD=''
CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
CFLAGS_FOR_BUILD=''
CPP=''
CPPFLAGS=' -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024 -DGC_NOT_DLL'
CROSS_COMPILING_FALSE=''
CROSS_COMPILING_TRUE=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DISABLE_EXECUTABLES_FALSE=''
DISABLE_EXECUTABLES_TRUE=''
DISABLE_JIT_FALSE=''
DISABLE_JIT_TRUE=''
DISABLE_PROFILER_FALSE=''
DISABLE_PROFILER_TRUE=''
DISABLE_SHARED_HANDLES=''
DLLTOOL=''
DOLT_BASH=''
DSYMUTIL=''
DTRACE=''
DTRACEFLAGS=''
DTRACE_G_REQUIRED_FALSE=''
DTRACE_G_REQUIRED_TRUE=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_DTRACE_FALSE=''
ENABLE_DTRACE_TRUE=''
ENABLE_LLVM_FALSE=''
ENABLE_LLVM_TRUE=''
ENABLE_NUNIT_TESTS_FALSE=''
ENABLE_NUNIT_TESTS_TRUE=''
EXEEXT=''
FGREP=''
GETTEXT_MACRO_VERSION=''
GLIB_CFLAGS=''
GLIB_LIBS=''
GMODULE_CFLAGS=''
GMODULE_LIBS=''
GMSGFMT=''
GMSGFMT_015=''
GREP=''
HAVE_MSGFMT=''
HAVE_OPROFILE_FALSE=''
HAVE_OPROFILE_TRUE=''
HAVE_ZLIB_FALSE=''
HAVE_ZLIB_TRUE=''
HOST_CC='gcc'
HOST_WIN32_FALSE='#'
HOST_WIN32_TRUE=''
HPPA_FALSE=''
HPPA_TRUE=''
IA64_FALSE=''
IA64_TRUE=''
INCLUDED_LIBGC_FALSE=''
INCLUDED_LIBGC_TRUE=''
INSTALL_4_0_FALSE=''
INSTALL_4_0_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_MOBILE_FALSE=''
INSTALL_MOBILE_TRUE=''
INSTALL_MONODROID_FALSE=''
INSTALL_MONODROID_TRUE=''
INSTALL_MONOTOUCH_FALSE=''
INSTALL_MONOTOUCH_TRUE=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTERP_SUPPORTED_FALSE=''
INTERP_SUPPORTED_TRUE=''
INTL=''
JIT_SUPPORTED_FALSE=''
JIT_SUPPORTED_TRUE=''
LD=''
LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -lmswsock -lws2_32 -lole32 -loleaut32 -lpsapi -lversion -ladvapi32 -lwinmm -lkernel32'
LIBC=''
LIBGC_CPPFLAGS=''
LIBGC_LIBS=''
LIBGC_STATIC_LIBS=''
LIBICONV=''
LIBMONO_LA=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LLVM_CFLAGS=''
LLVM_CONFIG=''
LLVM_CXXFLAGS=''
LLVM_LDFLAGS=''
LLVM_LIBS=''
LN_S='cp'
LOADED_LLVM_FALSE=''
LOADED_LLVM_TRUE=''
LTCOMPILE=''
LTCXXCOMPILE=''
LTLIBICONV=''
LTLIBOBJS=''
M68K_FALSE=''
M68K_TRUE=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/missing --run makeinfo'
MANIFEST_TOOL=''
MIPS_FALSE=''
MIPS_GCC_FALSE=''
MIPS_GCC_TRUE=''
MIPS_SGI_FALSE=''
MIPS_SGI_TRUE=''
MIPS_TRUE=''
MKDIR_P='/bin/mkdir -p'
MONO_DEBUGGER_SUPPORTED_FALSE=''
MONO_DEBUGGER_SUPPORTED_TRUE=''
MONO_DL_NEED_USCORE=''
MONO_NACL_ALIGN_MASK_OFF=''
MOONLIGHT_BOEHM_FALSE=''
MOONLIGHT_BOEHM_TRUE=''
MOONLIGHT_DEFINES=''
MOONLIGHT_FALSE=''
MOONLIGHT_SGEN_FALSE=''
MOONLIGHT_SGEN_TRUE=''
MOONLIGHT_TRUE=''
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
NACL_CODEGEN_FALSE=''
NACL_CODEGEN_TRUE=''
NM=''
NMEDIT=''
NO_VERSION_SCRIPT_FALSE=''
NO_VERSION_SCRIPT_TRUE=''
OBJDUMP=''
OBJEXT=''
ONLY_MOONLIGHT_FALSE=''
ONLY_MOONLIGHT_TRUE=''
OPROFILE_CFLAGS=''
OPROFILE_LIBS=''
OTOOL64=''
OTOOL=''
PACKAGE='mono'
PACKAGE_BUGREPORT='http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono'
PACKAGE_NAME='mono'
PACKAGE_STRING='mono 2.11.1'
PACKAGE_TARNAME='mono'
PACKAGE_URL=''
PACKAGE_VERSION='2.11.1'
PATH_SEPARATOR=':'
PKG_CONFIG='false'
PLATFORM_ANDROID_FALSE=''
PLATFORM_ANDROID_TRUE='#'
PLATFORM_DARWIN_FALSE=''
PLATFORM_DARWIN_TRUE='#'
PLATFORM_LINUX_FALSE=''
PLATFORM_LINUX_TRUE='#'
PLATFORM_SIGPOSIX_FALSE=''
PLATFORM_SIGPOSIX_TRUE='#'
POWERPC64_FALSE=''
POWERPC64_TRUE=''
POWERPC_FALSE=''
POWERPC_TRUE=''
RANLIB=''
S390_FALSE=''
S390_TRUE=''
S390x_FALSE=''
S390x_TRUE=''
SED=''
SET_MAKE=''
SGEN_DEFINES=''
SHARED_MONO_FALSE=''
SHARED_MONO_TRUE=''
SHELL='/bin/sh'
SPARC64_FALSE=''
SPARC64_TRUE=''
SPARC_FALSE=''
SPARC_TRUE=''
SQLITE3=''
SQLITE=''
STATIC_MONO_FALSE=''
STATIC_MONO_TRUE=''
STRIP='strip'
SUPPORT_BOEHM_FALSE=''
SUPPORT_BOEHM_TRUE=''
SUPPORT_SGEN_FALSE=''
SUPPORT_SGEN_TRUE=''
TARGET_WIN32_FALSE='#'
TARGET_WIN32_TRUE=''
USE_BATCH_FILES_FALSE=''
USE_BATCH_FILES_TRUE=''
USE_JIT_FALSE=''
USE_JIT_TRUE=''
USE_NLS=''
VERSION='2.11.1'
X11=''
X86_FALSE=''
X86_TRUE=''
XATTR_LIB=''
XGETTEXT=''
XGETTEXT_015=''
XGETTEXT_EXTRA_OPTIONS=''
XMKMF=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='tar --format=ustar -chf - "$$tardir"'
am__untar='tar -xf -'
arch_target=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias='x86_64-unknown-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
docs_dir=''
dvidir='${docdir}'
exec_prefix='NONE'
export_ldflags=''
host='x86_64-w64-mingw32'
host_alias='x86_64-w64-mingw32'
host_cpu='x86_64'
host_os='mingw32'
host_vendor='w64'
htmldir='${docdir}'
ikvm_native_dir=''
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgc_dir=''
libgdiplus_loc=''
libmono_cflags='-mno-cygwin -mms-bitfields -mwindows'
libmono_ldflags='-mno-cygwin -mms-bitfields -mwindows'
libsuffix=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mcs_topdir=''
mcs_topdir_from_srcdir=''
mkdir_p=''
mono_build_root=''
mono_cfg_dir=''
mono_runtime=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/build-cross-x86_64-install'
program_transform_name='s&^&x86_64-w64-mingw32-&'
psdir='${docdir}'
reloc_libdir='lib'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
target='x86_64-w64-mingw32'
target_alias='x86_64-w64-mingw32'
target_cpu='x86_64'
target_os='mingw32'
target_vendor='w64'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "mono"
#define PACKAGE_TARNAME "mono"
#define PACKAGE_VERSION "2.11.1"
#define PACKAGE_STRING "mono 2.11.1"
#define PACKAGE_BUGREPORT "http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono"
#define PACKAGE_URL ""
#define PACKAGE "mono"
#define VERSION "2.11.1"
#define HOST_WIN32 1
#define DISABLE_PORTABILITY 1
#define PLATFORM_NO_SYMLINKS 1
#define TARGET_WIN32 1
#define MINGW_CROSS_COMPILE 1

configure: exit 77

My makepkg.conf:

#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
#DLAGENTS=('ftp::/usr/bin/wget -4 -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
#          'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
#          'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'


#Curl as default DLAGENT
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/curl

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"

#-- Exclusive: will only run on x86_64
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

I am running a x64 arch with multilib and multilib-testing enabled. This is the first time I have encountered this error. Thank you in advance for all advice and suggestions.

Edited: added makepkg.conf

Last edited by mynameisneo (2012-06-13 19:04:09)

Offline

#2 2012-06-12 04:19:50

wokko
Member
From: Vic AU
Registered: 2010-05-08
Posts: 38

Re: [SOLVED] C Compiler Cannot Create Executables

Reinstall Gcc

Offline

#3 2012-06-12 05:17:46

mynameisneo
Member
Registered: 2011-11-25
Posts: 45

Re: [SOLVED] C Compiler Cannot Create Executables

wokko wrote:

Reinstall Gcc

Did...same error.

Offline

#4 2012-06-13 16:34:48

mynameisneo
Member
Registered: 2011-11-25
Posts: 45

Re: [SOLVED] C Compiler Cannot Create Executables

Can anyone identify the error?

Offline

#5 2012-06-13 17:46:43

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 203

Re: [SOLVED] C Compiler Cannot Create Executables

Do you also have base-devel installed?


He who has no .plan has small finger.
~Confucius on UNIX.

Offline

#6 2012-06-13 18:04:54

uzsolt
Member
Registered: 2012-06-13
Posts: 56

Re: [SOLVED] C Compiler Cannot Create Executables

In your config.log:

/usr/bin/ld: cannot find -lmswsock
/usr/bin/ld: cannot find -lws2_32
/usr/bin/ld: cannot find -lole32
/usr/bin/ld: cannot find -loleaut32
/usr/bin/ld: cannot find -lpsapi
/usr/bin/ld: cannot find -lversion
/usr/bin/ld: cannot find -ladvapi32
/usr/bin/ld: cannot find -lwinmm
/usr/bin/ld: cannot find -lkernel32

Try find these files which package provides!

Edit: maybe package 'wine' provides this but as I see these libs are in /usr/lib/wine.

Last edited by uzsolt (2012-06-13 18:07:08)

Offline

#7 2012-06-13 18:14:09

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [SOLVED] C Compiler Cannot Create Executables

I was wrong/can't delete.

Last edited by Terminator (2012-06-13 18:17:06)

Offline

#8 2012-06-13 18:19:20

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 203

Re: [SOLVED] C Compiler Cannot Create Executables

uzsolt wrote:

In your config.log:

Edit: maybe package 'wine' provides this but as I see these libs are in /usr/lib/wine.

Hmm, good point. Looking through the config.log, I wonder if he needs to have mono installed?


He who has no .plan has small finger.
~Confucius on UNIX.

Offline

#9 2012-06-13 18:50:19

uzsolt
Member
Registered: 2012-06-13
Posts: 56

Re: [SOLVED] C Compiler Cannot Create Executables

As I see mono doesn't provides similar files.

Offline

#10 2012-06-13 18:54:28

uzsolt
Member
Registered: 2012-06-13
Posts: 56

Re: [SOLVED] C Compiler Cannot Create Executables

Which package do you want compile? Wine-mono doesn't have "configure" in PKGBUILD.

Offline

#11 2012-06-13 19:03:40

mynameisneo
Member
Registered: 2011-11-25
Posts: 45

Re: [SOLVED] C Compiler Cannot Create Executables

Solved....I had to install mingw32-gcc for building wine-mono a windows executable.

Offline

Board footer

Powered by FluxBB