You are not logged in.

#1 2010-10-27 13:10:20

srivo
Member
From: Canada
Registered: 2009-10-17
Posts: 60

[Solved] error: C compiler cannot create executable

I dont understand, I compiled many package in the past an now look like GCC is broken somewhere. I tried to reinstall base-devel and pacman to get a new makepkg.conf and the error is still there.

Here is the output error:

patching file daemon/gdm-server.c
Hunk #1 succeeded at 131 (offset 4 lines).
patching file data/greeter-autostart/gnome-settings-daemon.desktop.in.in
patching file data/greeter-autostart/polkit-gnome-authentication-agent-1.desktop.in.in
patching file gui/simple-chooser/gdm-chooser-session.c
patching file daemon/gdm-server.c
Hunk #1 succeeded at 33 with fuzz 2.
Hunk #2 succeeded at 156 (offset 4 lines).
Hunk #3 succeeded at 402 (offset 4 lines).
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/yaourt-tmp-srivo/abs-gdm/src/gdm-2.32.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
    Abandon...

I tryed to build this one with yaourt -Sb but the same happen when I try to copy the content of the ABS tree in a folder and use makepkg instead.

Last edited by srivo (2010-10-28 09:54:29)

Offline

#2 2010-10-27 13:11:28

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [Solved] error: C compiler cannot create executable

paste config.log


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-10-27 13:17:44

srivo
Member
From: Canada
Registered: 2009-10-17
Posts: 60

Re: [Solved] error: C compiler cannot create executable

Here it is.  Thanks Wonder.

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

It was created by gdm configure 2.32.0, which was
generated by GNU Autoconf 2.66.  Invocation command line was

  $ ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/gdm --localstatedir=/var --disable-static --with-at-spi-registryd-directory=/usr/lib/at-spi --disable-scrollkeeper

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

hostname = hacker
uname -m = i686
uname -r = 2.6.35-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Wed Sep 29 07:17:20 UTC 2010

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /opt/java/bin
PATH: /opt/java/jre/bin
PATH: /opt/NX/bin
PATH: /usr/lib/perl5/vendor_perl/bin
PATH: /usr/bin/perlbin/vendor
PATH: /usr/lib/perl5/core_perl/bin


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

configure:2778: checking for a BSD-compatible install
configure:2846: result: /bin/install -c
configure:2857: checking whether build environment is sane
configure:2907: result: yes
configure:3048: checking for a thread-safe mkdir -p
configure:3087: result: /bin/mkdir -p
configure:3100: checking for gawk
configure:3116: found /bin/gawk
configure:3127: result: gawk
configure:3138: checking whether make sets $(MAKE)
configure:3160: result: yes
configure:3253: checking whether to enable maintainer-specific portions of Makefiles
configure:3262: result: no
configure:3289: checking for style of include used by make
configure:3317: result: GNU
configure:3387: checking for gcc
configure:3403: found /usr/bin/gcc
configure:3414: result: gcc
configure:3643: checking for C compiler version
configure:3652: gcc --version >&5
gcc (GCC) 4.5.1
Copyright (C) 2010 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:3663: $? = 0
configure:3652: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-gnu-unique-object --enable-lto --enable-plugin --disable-multilib --disable-libstdcxx-pch --with-system-zlib --with-ppl --with-cloog --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
Thread model: posix
gcc version 4.5.1 (GCC) 
configure:3663: $? = 0
configure:3652: gcc -V >&5
gcc: '-V' option must have argument
configure:3663: $? = 1
configure:3652: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3663: $? = 1
configure:3683: checking whether the C compiler works
configure:3705: gcc -march=native -O2 -pipe  -Wl,--hash-style=gnu -Wl,--as-needed conftest.c  >&5
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../crt1.o: In function `_start':
(.text+0xc): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../crt1.o: In function `_start':
(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
configure:3709: $? = 1
configure:3747: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gdm"
| #define PACKAGE_TARNAME "gdm"
| #define PACKAGE_VERSION "2.32.0"
| #define PACKAGE_STRING "gdm 2.32.0"
| #define PACKAGE_BUGREPORT "[url]http://bugzilla.gnome.org/enter_bug.cgi?product=gdm[/url]"
| #define PACKAGE_URL ""
| #define PACKAGE "gdm"
| #define VERSION "2.32.0"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3752: error: in `/tmp/yaourt-tmp-srivoallan/abs-gdm/src/gdm-2.32.0':
configure:3754: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_APPLET_CFLAGS_set=
ac_cv_env_APPLET_CFLAGS_value=
ac_cv_env_APPLET_LIBS_set=
ac_cv_env_APPLET_LIBS_value=
ac_cv_env_CANBERRA_GTK_CFLAGS_set=
ac_cv_env_CANBERRA_GTK_CFLAGS_value=
ac_cv_env_CANBERRA_GTK_LIBS_set=
ac_cv_env_CANBERRA_GTK_LIBS_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=native -O2 -pipe'
ac_cv_env_CHECK_CFLAGS_set=
ac_cv_env_CHECK_CFLAGS_value=
ac_cv_env_CHECK_LIBS_set=
ac_cv_env_CHECK_LIBS_value=
ac_cv_env_COMMON_CFLAGS_set=
ac_cv_env_COMMON_CFLAGS_value=
ac_cv_env_COMMON_LIBS_set=
ac_cv_env_COMMON_LIBS_value=
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=native -O2 -pipe'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DAEMON_CFLAGS_set=
ac_cv_env_DAEMON_CFLAGS_value=
ac_cv_env_DAEMON_LIBS_set=
ac_cv_env_DAEMON_LIBS_value=
ac_cv_env_GCONF_CFLAGS_set=
ac_cv_env_GCONF_CFLAGS_value=
ac_cv_env_GCONF_LIBS_set=
ac_cv_env_GCONF_LIBS_value=
ac_cv_env_GTHREAD_CFLAGS_set=
ac_cv_env_GTHREAD_CFLAGS_value=
ac_cv_env_GTHREAD_LIBS_set=
ac_cv_env_GTHREAD_LIBS_value=
ac_cv_env_GTK_CFLAGS_set=
ac_cv_env_GTK_CFLAGS_value=
ac_cv_env_GTK_LIBS_set=
ac_cv_env_GTK_LIBS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,--hash-style=gnu -Wl,--as-needed'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIBXKLAVIER_CFLAGS_set=
ac_cv_env_LIBXKLAVIER_CFLAGS_value=
ac_cv_env_LIBXKLAVIER_LIBS_set=
ac_cv_env_LIBXKLAVIER_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=set
ac_cv_env_PKG_CONFIG_PATH_value=/usr/lib/pkgconfig
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_SIMPLE_CHOOSER_CFLAGS_set=
ac_cv_env_SIMPLE_CHOOSER_CFLAGS_value=
ac_cv_env_SIMPLE_CHOOSER_LIBS_set=
ac_cv_env_SIMPLE_CHOOSER_LIBS_value=
ac_cv_env_SIMPLE_GREETER_CFLAGS_set=
ac_cv_env_SIMPLE_GREETER_CFLAGS_value=
ac_cv_env_SIMPLE_GREETER_LIBS_set=
ac_cv_env_SIMPLE_GREETER_LIBS_value=
ac_cv_env_UPOWER_CFLAGS_set=
ac_cv_env_UPOWER_CFLAGS_value=
ac_cv_env_UPOWER_LIBS_set=
ac_cv_env_UPOWER_LIBS_value=
ac_cv_env_XLIB_CFLAGS_set=
ac_cv_env_XLIB_CFLAGS_value=
ac_cv_env_XLIB_LIBS_set=
ac_cv_env_XLIB_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_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_path_install='/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /tmp/yaourt-tmp-srivoallan/abs-gdm/src/gdm-2.32.0/missing --run aclocal-1.11'
ALL_LINGUAS=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /tmp/yaourt-tmp-srivoallan/abs-gdm/src/gdm-2.32.0/missing --run tar'
AM_BACKSLASH='\'
AM_DEFAULT_VERBOSITY='0'
APPLET_CFLAGS=''
APPLET_LIBS=''
AR=''
AT_BINDIR=''
AT_SPI_REGISTRYD_DIR=''
AUTOCONF='${SHELL} /tmp/yaourt-tmp-srivoallan/abs-gdm/src/gdm-2.32.0/missing --run autoconf'
AUTOHEADER='${SHELL} /tmp/yaourt-tmp-srivoallan/abs-gdm/src/gdm-2.32.0/missing --run autoheader'
AUTOMAKE='${SHELL} /tmp/yaourt-tmp-srivoallan/abs-gdm/src/gdm-2.32.0/missing --run automake-1.11'
AWK='gawk'
BINDIR=''
CANBERRA_GTK_CFLAGS=''
CANBERRA_GTK_LIBS=''
CATALOGS=''
CATOBJEXT=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-march=native -O2 -pipe'
CHECK_CFLAGS=''
CHECK_LIBS=''
COMMON_CFLAGS=''
COMMON_LIBS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-march=native -O2 -pipe'
CYGPATH_W='echo'
DAEMON_CFLAGS=''
DAEMON_LIBS=''
DATADIR=''
DATADIRNAME=''
DBUS_SYS_DIR=''
DEBUG_CFLAGS=''
DEFS=''
DEPDIR='.deps'
DISTCHECK_CONFIGURE_FLAGS=''
DOC_USER_FORMATS=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_SK_FALSE=''
ENABLE_SK_TRUE=''
EXEEXT=''
EXTRA_CHOOSER_LIBS=''
EXTRA_DAEMON_LIBS=''
EXTRA_DYNAMIC_LIBS=''
EXTRA_FLEXI_LIBS=''
EXTRA_GREETER_LIBS=''
EXTRA_SETUP_LIBS=''
EXTRA_SLAVE_LIBS=''
EXTRA_TEST_LIBS=''
EXTRA_XNEST_LIBS=''
FGREP=''
GCONFTOOL=''
GCONF_CFLAGS=''
GCONF_LIBS=''
GCONF_SCHEMAS_INSTALL_FALSE=''
GCONF_SCHEMAS_INSTALL_TRUE=''
GCONF_SCHEMA_CONFIG_SOURCE=''
GCONF_SCHEMA_FILE_DIR=''
GDMCHOOSER=''
GDM_CUSTOM_CONF=''
GDM_DEFAULTS_CONF=''
GDM_GROUPNAME=''
GDM_OLD_CONF=''
GDM_PID_FILE=''
GDM_SCREENSHOT_DIR=''
GDM_SESSION_DEFAULT_PATH=''
GDM_USERNAME=''
GDM_WORKING_DIR=''
GDM_XAUTH_DIR=''
GETTEXT_PACKAGE=''
GLIB_GENMARSHAL=''
GMOFILES=''
GMSGFMT=''
GREP=''
GTHREAD_CFLAGS=''
GTHREAD_LIBS=''
GTK_CFLAGS=''
GTK_LIBS=''
HAVE_ADT_FALSE=''
HAVE_ADT_TRUE=''
HAVE_CHECK_FALSE=''
HAVE_CHECK_TRUE=''
HAVE_GNOME_DOC_UTILS_FALSE=''
HAVE_GNOME_DOC_UTILS_TRUE=''
HAVE_LIBAUDIT_FALSE=''
HAVE_LIBAUDIT_TRUE=''
HAVE_LIBXKLAVIER=''
HAVE_LIBXKLAVIER_FALSE=''
HAVE_LIBXKLAVIER_TRUE=''
HAVE_PAM=''
HELP_DIR=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INSTOBJEXT=''
INTLLIBS=''
INTLTOOL_CAVES_RULE=''
INTLTOOL_DESKTOP_RULE=''
INTLTOOL_DIRECTORY_RULE=''
INTLTOOL_EXTRACT=''
INTLTOOL_KBD_RULE=''
INTLTOOL_KEYS_RULE=''
INTLTOOL_MERGE=''
INTLTOOL_OAF_RULE=''
INTLTOOL_PERL=''
INTLTOOL_POLICY_RULE=''
INTLTOOL_PONG_RULE=''
INTLTOOL_PROP_RULE=''
INTLTOOL_SCHEMAS_RULE=''
INTLTOOL_SERVER_RULE=''
INTLTOOL_SERVICE_RULE=''
INTLTOOL_SHEET_RULE=''
INTLTOOL_SOUNDLIST_RULE=''
INTLTOOL_THEME_RULE=''
INTLTOOL_UI_RULE=''
INTLTOOL_UPDATE=''
INTLTOOL_XAM_RULE=''
INTLTOOL_XML_NOMERGE_RULE=''
INTLTOOL_XML_RULE=''
LANG_CONFIG_FILE=''
LD=''
LDFLAGS='-Wl,--hash-style=gnu -Wl,--as-needed'
LIBDIR=''
LIBEXECDIR=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBWRAP_LIBS=''
LIBXKLAVIER_CFLAGS=''
LIBXKLAVIER_LIBS=''
LIPO=''
LN_S=''
LOCALSTATEDIR=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /tmp/yaourt-tmp-srivoallan/abs-gdm/src/gdm-2.32.0/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
MKDTEMP_MISSING_FALSE=''
MKDTEMP_MISSING_TRUE=''
MKINSTALLDIRS=''
MSGFMT=''
MSGFMT_OPTS=''
MSGMERGE=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OMF_DIR=''
OS_SOLARIS_FALSE=''
OS_SOLARIS_TRUE=''
OTOOL64=''
OTOOL=''
PACKAGE='gdm'
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gdm'
PACKAGE_NAME='gdm'
PACKAGE_STRING='gdm 2.32.0'
PACKAGE_TARNAME='gdm'
PACKAGE_URL=''
PACKAGE_VERSION='2.32.0'
PAM_LIBS=''
PAM_PREFIX=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH='/usr/lib/pkgconfig'
PLUGIN_LIBTOOL_FLAGS=''
POFILES=''
POSUB=''
PO_IN_DATADIR_FALSE=''
PO_IN_DATADIR_TRUE=''
RANLIB=''
RBAC_LIBS=''
SBINDIR=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
SIMPLE_CHOOSER_CFLAGS=''
SIMPLE_CHOOSER_LIBS=''
SIMPLE_GREETER_CFLAGS=''
SIMPLE_GREETER_LIBS=''
SOUND_PROGRAM=''
STRIP=''
SYSCONFDIR=''
UPOWER=''
UPOWER_CFLAGS=''
UPOWER_LIBS=''
USE_NLS=''
VERSION='2.32.0'
WARN_CFLAGS=''
WITH_CONSOLE_KIT=''
WITH_CONSOLE_KIT_FALSE=''
WITH_CONSOLE_KIT_TRUE=''
XDMCP_LIBS=''
XDMCP_SUPPORT_FALSE=''
XDMCP_SUPPORT_TRUE=''
XEVIE_OPTION=''
XGETTEXT=''
XINERAMA_LIBS=''
XLIB_CFLAGS=''
XLIB_LIBS=''
XMKMF=''
XSESSION_SHELL=''
X_CFLAGS=''
X_CONFIG_OPTIONS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PATH=''
X_PRE_LIBS=''
X_SERVER=''
X_SERVER_PATH=''
X_XNEST_CMD=''
X_XNEST_CONFIG_OPTIONS=''
X_XNEST_UNSCALED_FONTPATH=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
authdir=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
dmconfdir=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
gdmconfdir=''
gdmlocaledir=''
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /tmp/yaourt-tmp-srivoallan/abs-gdm/src/gdm-2.32.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='/usr/lib/gdm'
localedir='${datarootdir}/locale'
localstatedir='/var'
logdir=''
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pixmapdir=''
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
sysconfsubdir=''
target_alias=''

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

/* confdefs.h */
#define PACKAGE_NAME "gdm"
#define PACKAGE_TARNAME "gdm"
#define PACKAGE_VERSION "2.32.0"
#define PACKAGE_STRING "gdm 2.32.0"
#define PACKAGE_BUGREPORT "[url]http://bugzilla.gnome.org/enter_bug.cgi?product=gdm[/url]"
#define PACKAGE_URL ""
#define PACKAGE "gdm"
#define VERSION "2.32.0"

configure: exit 77

Last edited by srivo (2010-10-27 13:28:27)

Offline

#4 2010-10-27 13:35:51

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: [Solved] error: C compiler cannot create executable

can you still compile simple codes like "hello world"?

Offline

#5 2010-10-27 16:29:55

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: [Solved] error: C compiler cannot create executable

Try, especially with your gcc command

gcc -march=native -O2 -pipe  -Wl,--hash-style=gnu -Wl,--as-needed

I'm no expert, but that doesn't look right to me. Paste your options in /etc/makepkg.conf too.


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#6 2010-10-27 20:53:49

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [Solved] error: C compiler cannot create executable

You have manually built your own glibc and stripped it too much.

Offline

#7 2010-10-27 22:10:02

srivo
Member
From: Canada
Registered: 2009-10-17
Posts: 60

Re: [Solved] error: C compiler cannot create executable

Make sens! The problem appear after rebuilding gcc and glibc. I reinstall gcc but not glibc. I will reinstall from binary and test it!

Offline

#8 2010-10-27 22:39:57

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [Solved] error: C compiler cannot create executable

Note that if you merge makepkg.conf.pacnew into your makepkg.conf and you would be fine to build glibc...

Offline

#9 2010-10-28 02:57:20

srivo
Member
From: Canada
Registered: 2009-10-17
Posts: 60

Re: [Solved] error: C compiler cannot create executable

Yes! Problem solved!

The Archlinux forum is amazing!

Thanks Allen!

Offline

#10 2010-10-28 09:52:58

srivo
Member
From: Canada
Registered: 2009-10-17
Posts: 60

Re: [Solved] error: C compiler cannot create executable

So what I understand is that my makepkg.conf file was very old. I probably never updated it! The old version was probably missing something for gcc or glibc.

The only thing that I modified in makepkg.conf was mach=native instead of mach=generic.

Lesson learned: when a new verion of pacman is out we need to update the makepkg.conf file also.

Offline

#11 2010-10-28 10:06:51

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: [Solved] error: C compiler cannot create executable

srivo wrote:

Lesson learned: when a new verion of pacman is out we need to update the makepkg.conf file also.

A better lesson: Always take a look at the pacnew files for any updated package. Usually nothing new, but sometime your lesson apply =].

Offline

#12 2010-10-28 10:57:34

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [Solved] error: C compiler cannot create executable

As an FYI, you were missing the STRIP_* options.   I have seen other people do it...

Offline

Board footer

Powered by FluxBB