You are not logged in.

#1 2010-08-26 01:33:09

slacknatcher
Member
From: Chile
Registered: 2009-07-08
Posts: 55

gcc not working with compiled glibc from PKGBUILD

hello folks, please excuse my english sad

i like to compile certain parts of my system, between them are the kernel, glibc , zsh, etc.

i had noticed that using a compiled version of glibc from abs results in gcc not working at all ( C compiler cannot create executables logs says). this is weird especially because i hadn't had problems before, i have looked for the error mesagges on Google and a lot of people has had this problem but  nobody has a "generic" solution for this

this is the config.log file from one failed compile of mpg123

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

It was created by mpg123 configure 1.12.3, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  $ ./configure --prefix=/usr --with-audio=alsa esd sdl

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

hostname = Soul
uname -m = x86_64
uname -r = 2.6.34.1
uname -s = Linux
uname -v = #1 SMP PREEMPT Tue Jul 6 23:23:17 CLT 2010

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

/bin/arch              = x86_64
/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: /usr/local/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /usr/share/java/apache-ant/bin
PATH: /usr/lib/perl5/core_perl/bin


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

configure:2849: checking build system type
configure:2863: result: x86_64-unknown-linux-gnu
configure:2883: checking host system type
configure:2896: result: x86_64-unknown-linux-gnu
configure:2933: checking for a BSD-compatible install
configure:3001: result: /bin/install -c
configure:3012: checking whether build environment is sane
configure:3062: result: yes
configure:3203: checking for a thread-safe mkdir -p
configure:3242: result: /bin/mkdir -p
configure:3255: checking for gawk
configure:3271: found /bin/gawk
configure:3282: result: gawk
configure:3293: checking whether make sets $(MAKE)
configure:3315: result: yes
configure:3402: checking for -Werror in CFLAGS (It breaks tests)
configure:3412: result: no
configure:3423: checking if you are up to something totally static with LDFLAGS/CFLAGS
configure:3443: result: no
configure:3463: checking for style of include used by make
configure:3491: result: GNU
configure:3561: checking for gcc
configure:3577: found /usr/bin/gcc
configure:3588: result: gcc
configure:3817: checking for C compiler version
configure:3826: 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:3837: $? = 0
configure:3826: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/lto-wrapper
Target: x86_64-unknown-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:3837: $? = 0
configure:3826: gcc -V >&5
gcc: '-V' option must have argument
configure:3837: $? = 1
configure:3826: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3837: $? = 1
configure:3857: checking whether the C compiler works
configure:3879: gcc -march=amdfam10 -O2 -pipe  -Wl,--hash-style=gnu -Wl,--as-needed conftest.c  >&5
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
configure:3883: $? = 1
configure:3921: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mpg123"
| #define PACKAGE_TARNAME "mpg123"
| #define PACKAGE_VERSION "1.12.3"
| #define PACKAGE_STRING "mpg123 1.12.3"
| #define PACKAGE_BUGREPORT "mpg123-devel@lists.sourceforge.net"
| #define PACKAGE_URL ""
| #define PACKAGE "mpg123"
| #define VERSION "1.12.3"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3926: error: in `/var/abs/local/mpg123/src/mpg123-1.12.3':
configure:3930: 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_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=amdfam10 -O2 -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_ESD_CFLAGS_set=
ac_cv_env_ESD_CFLAGS_value=
ac_cv_env_ESD_LIBS_set=
ac_cv_env_ESD_LIBS_value=
ac_cv_env_JACK_CFLAGS_set=
ac_cv_env_JACK_CFLAGS_value=
ac_cv_env_JACK_LIBS_set=
ac_cv_env_JACK_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_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_PULSE_CFLAGS_set=
ac_cv_env_PULSE_CFLAGS_value=
ac_cv_env_PULSE_LIBS_set=
ac_cv_env_PULSE_LIBS_value=
ac_cv_env_SDL_CFLAGS_set=
ac_cv_env_SDL_CFLAGS_value=
ac_cv_env_SDL_LIBS_set=
ac_cv_env_SDL_LIBS_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='/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} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run aclocal-1.11'
AIX_CFLAGS=''
AIX_LDFLAGS=''
AIX_LIBS=''
ALIB_CFLAGS=''
ALIB_LDFLAGS=''
ALIB_LIBS=''
ALSA_CFLAGS=''
ALSA_LDFLAGS=''
ALSA_LIBS=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run tar'
API_VERSION='25'
AR=''
ARTS_CFLAGS=''
ARTS_LDFLAGS=''
ARTS_LIBS=''
AS=''
AUTOCONF='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run autoconf'
AUTOHEADER='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run autoheader'
AUTOMAKE='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run automake-1.11'
AWK='gawk'
CC='gcc'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-march=amdfam10 -O2 -pipe'
COREAUDIO_CFLAGS=''
COREAUDIO_LDFLAGS=''
COREAUDIO_LIBS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DECODER_LOBJ=''
DECODER_OBJ=''
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMMY_CFLAGS=''
DUMMY_LDFLAGS=''
DUMMY_LIBS=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ESD_CFLAGS=''
ESD_LDFLAGS=''
ESD_LIBS=''
EXEC_LT_LDFLAGS=''
EXEEXT=''
FGREP=''
GREP=''
HAVE_AIX_FALSE=''
HAVE_AIX_TRUE=''
HAVE_ALIB_FALSE=''
HAVE_ALIB_TRUE=''
HAVE_ALSA_FALSE=''
HAVE_ALSA_TRUE=''
HAVE_ARTS_FALSE=''
HAVE_ARTS_TRUE=''
HAVE_COREAUDIO_FALSE=''
HAVE_COREAUDIO_TRUE=''
HAVE_DUMMY_FALSE=''
HAVE_DUMMY_TRUE=''
HAVE_ESD_FALSE=''
HAVE_ESD_TRUE=''
HAVE_HP_FALSE=''
HAVE_HP_TRUE=''
HAVE_JACK_FALSE=''
HAVE_JACK_TRUE=''
HAVE_MINT_FALSE=''
HAVE_MINT_TRUE=''
HAVE_MODULES_FALSE=''
HAVE_MODULES_TRUE=''
HAVE_NAS_FALSE=''
HAVE_NAS_TRUE=''
HAVE_OPENAL_FALSE=''
HAVE_OPENAL_TRUE=''
HAVE_OS2_FALSE=''
HAVE_OS2_TRUE=''
HAVE_OSS_FALSE=''
HAVE_OSS_TRUE=''
HAVE_PORTAUDIO_FALSE=''
HAVE_PORTAUDIO_TRUE=''
HAVE_PULSE_FALSE=''
HAVE_PULSE_TRUE=''
HAVE_SDL_FALSE=''
HAVE_SDL_TRUE=''
HAVE_SGI_FALSE=''
HAVE_SGI_TRUE=''
HAVE_SNDIO_FALSE=''
HAVE_SNDIO_TRUE=''
HAVE_SUN_FALSE=''
HAVE_SUN_TRUE=''
HAVE_WIN32_FALSE=''
HAVE_WIN32_TRUE=''
HP_CFLAGS=''
HP_LDFLAGS=''
HP_LIBS=''
INCLUDE_STDIO_H=''
INCLUDE_STDLIB_H=''
INCLUDE_SYS_TYPE_H=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
JACK_CFLAGS=''
JACK_LDFLAGS=''
JACK_LIBS=''
LD=''
LDFLAGS='-Wl,--hash-style=gnu -Wl,--as-needed'
LFS_LOBJ=''
LIBMPG123_VERSION='25:5:25'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_LDFLAGS='-export-dynamic'
MAKEINFO='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run makeinfo'
MINT_CFLAGS=''
MINT_LDFLAGS=''
MINT_LIBS=''
MKDIR_P='/bin/mkdir -p'
MODULE_OBJ=''
NAS_CFLAGS=''
NAS_LDFLAGS=''
NAS_LIBS=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OPENAL_CFLAGS=''
OPENAL_LDFLAGS=''
OPENAL_LIBS=''
OS2_CFLAGS=''
OS2_LDFLAGS=''
OS2_LIBS=''
OSS_CFLAGS=''
OSS_LDFLAGS=''
OSS_LIBS=''
OTOOL64=''
OTOOL=''
OUTPUT_CFLAGS=''
OUTPUT_LDFLAGS=''
OUTPUT_LIBS=''
OUTPUT_MOD=''
OUTPUT_OBJ=''
PACKAGE='mpg123'
PACKAGE_BUGREPORT='mpg123-devel@lists.sourceforge.net'
PACKAGE_NAME='mpg123'
PACKAGE_STRING='mpg123 1.12.3'
PACKAGE_TARNAME='mpg123'
PACKAGE_URL=''
PACKAGE_VERSION='1.12.3'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PORTAUDIO_CFLAGS=''
PORTAUDIO_LDFLAGS=''
PORTAUDIO_LIBS=''
PULSE_CFLAGS=''
PULSE_LDFLAGS=''
PULSE_LIBS=''
RANLIB=''
SDL_CFLAGS=''
SDL_LDFLAGS=''
SDL_LIBS=''
SED=''
SET_MAKE=''
SGI_CFLAGS=''
SGI_LDFLAGS=''
SGI_LIBS=''
SHELL='/bin/sh'
SNDIO_CFLAGS=''
SNDIO_LDFLAGS=''
SNDIO_LIBS=''
STRIP=''
SUN_CFLAGS=''
SUN_LDFLAGS=''
SUN_LIBS=''
VERSION='1.12.3'
WIN32_CFLAGS=''
WIN32_CODES_FALSE=''
WIN32_CODES_TRUE=''
WIN32_LDFLAGS=''
WIN32_LIBS=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} 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'
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} /var/abs/local/mpg123/src/mpg123-1.12.3/build/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

/* confdefs.h */
#define PACKAGE_NAME "mpg123"
#define PACKAGE_TARNAME "mpg123"
#define PACKAGE_VERSION "1.12.3"
#define PACKAGE_STRING "mpg123 1.12.3"
#define PACKAGE_BUGREPORT "mpg123-devel@lists.sourceforge.net"
#define PACKAGE_URL ""
#define PACKAGE "mpg123"
#define VERSION "1.12.3"

configure: exit 77

the parts i had searched on google are specificaly the

"/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'"

does anyone have an idea of what could it be?

notice that this doesn't bother me because if i use the glibc from the repositories everything works fine, this is just for curiosity of why it doesn't work

thanks in advance


Miscusi for my bad english

Offline

#2 2010-08-26 01:55:12

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: gcc not working with compiled glibc from PKGBUILD

Your toolchain is broken. Without knowing how you compiled glibc (and what it was linked against), it's hard to say exactly where the breakage is. Use the glibc from the repos.

Offline

#3 2010-08-26 02:04:48

slacknatcher
Member
From: Chile
Registered: 2009-07-08
Posts: 55

Re: gcc not working with compiled glibc from PKGBUILD

well i will compile again glibc and search for some error message .


Miscusi for my bad english

Offline

#4 2010-08-30 17:56:55

Cape
Member
From: Mogliano Veneto, Italy
Registered: 2008-11-15
Posts: 105

Re: gcc not working with compiled glibc from PKGBUILD

mmm... I'm getting the same error here while compiling "nautilus-elementary-bzr" from AUR. Can it be that the configure file was written for an older version of gcc?

Offline

#5 2010-09-14 19:25:49

Cape
Member
From: Mogliano Veneto, Italy
Registered: 2008-11-15
Posts: 105

Re: gcc not working with compiled glibc from PKGBUILD

opps..... turns out that it was a wrong setting in LDFLAGS.

Offline

#6 2010-09-14 23:09:39

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

Re: gcc not working with compiled glibc from PKGBUILD

slacknatcher wrote:

the parts i had searched on google are specificaly the

"/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'"

does anyone have an idea of what could it be?

notice that this doesn't bother me because if i use the glibc from the repositories everything works fine, this is just for curiosity of why it doesn't work

thanks in advance

You have stripped glibc too much.  See the Arch PKGBUILD and make sure your makepkg.conf has STRIP_BINARY etc defined.

Offline

Board footer

Powered by FluxBB