Repository 32bit  Forum
Repository 64bit  Wiki

checking whether the C compiler works... no

Se avete problemi con l'installazione e la configurazione di Slackware64 postate qui. Non usate questo forum per argomenti che trattano la Slackware32 o generali... per quelli usate rispettivamente il forum Slackware e Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware64 usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware64, se l'argomento è Slackware32 o generale usate rispettivamente il forum Slackware o Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.

checking whether the C compiler works... no

Messaggioda p.g. » mar nov 20, 2012 12:31

Salve a tutti
credo che il mio problema si a di natura semplice e quasi scontata, ma purtroppo da solo non riesco a risolverlo.
Di seguito tutte le info del caso. Grazie per l'aiuto!

Utilizzo una Slackware 14 per processori a 64 bit
(uname -a) Linux pgm 3.2.29 #2 SMP Mon Sep 17 14:19:22 CDT 2012 x86_64 Intel(R) Core(TM)2 Duo CPU T6400 @ 2.00GHz GenuineIntel GNU/Linux

Cercando di compilare delle librerie utilizzando diversi slackbuilds scaricati dal sito http://www.slackbuilds.org (per la slackware 13) e da me riadattati alla versione più recente del soft. desiderato ottengo un errore che non so risolvere: checking whether the C compiler works... no

Di seguito una porzione dell'output, relativo a LIBSHOUT (http://www.icecast.org/download.php - http://slackbuilds.org/repository/13.37 ... /libshout/ ).

Slackbuild: le modifiche da me fatte sono solo alla riga VERSION
Codice: Seleziona tutto
...
PRGNAM=libshout   
VERSION=${VERSION:-2.3.1} 
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
...




Una porzione dell'output, relativo all'esecuzione dello Slackbuild

Codice: Seleziona tutto
...
libshout-2.3.1/missing
libshout-2.3.1/configure.ac
libshout-2.3.1/configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/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 gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/SBo/libshout-2.3.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
p.g.
Linux 1.0
Linux 1.0
 
Messaggi: 3
Iscritto il: gio mag 05, 2011 13:22

Re: checking whether the C compiler works... no

Messaggioda p.g. » mar nov 20, 2012 12:35

aggiungo di seguito il config.log
Codice: Seleziona tutto
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by libshout configure 2.3.1, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure --disable-static --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/man --disable-static --build=i486-slackware-linux

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

hostname = pgm
uname -m = x86_64
uname -r = 3.2.29
uname -s = Linux
uname -v = #2 SMP Mon Sep 17 14:19:22 CDT 2012

/usr/bin/uname -p = Intel(R) Core(TM)2 Duo CPU     T6400  @ 2.00GHz
/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: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/games
PATH: /usr/lib64/java/bin
PATH: /usr/lib64/java/jre/bin
PATH: /usr/lib64/kde4/libexec
PATH: /opt/kde3/lib64/qt3/bin
PATH: /opt/kde3/bin
PATH: /usr/lib64/qt/bin
PATH: /usr/share/texmf/bin


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

configure:2632: checking for a BSD-compatible install
configure:2700: result: /usr/bin/ginstall -c
configure:2711: checking whether build environment is sane
configure:2761: result: yes
configure:2902: checking for a thread-safe mkdir -p
configure:2941: result: /usr/bin/mkdir -p
configure:2954: checking for gawk
configure:2970: found /usr/bin/gawk
configure:2981: result: gawk
configure:2992: checking whether make sets $(MAKE)
configure:3014: result: yes
configure:3095: checking whether to enable maintainer-specific portions of Makefiles
configure:3104: result: no
configure:3168: checking for gcc
configure:3184: found /usr/bin/gcc
configure:3195: result: gcc
configure:3424: checking for C compiler version
configure:3433: gcc --version >&5
gcc (GCC) 4.7.1
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:3444: $? = 0
configure:3433: gcc -v >&5
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/4.7.1/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../gcc-4.7.1/configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --with-python-dir=/lib64/python2.7/site-packages --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --with-gnu-ld --verbose --enable-java-home --with-java-home=/usr/lib64/jvm/jre --with-jvm-root-dir=/usr/lib64/jvm --with-jvm-jar-dir=/usr/lib64/jvm/jvm-exports --with-arch-directory=amd64 --with-antlr-jar=/slack/TMPTMPTMP/gcc-round-two/antlr-runtime-3.4.jar --enable-java-awt=gtk --disable-gtktest --disable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 4.7.1 (GCC)
configure:3444: $? = 0
configure:3433: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3444: $? = 1
configure:3433: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3444: $? = 1
configure:3464: checking whether the C compiler works
configure:3486: gcc -O2 -march=i686 -mtune=i686 -m32   conftest.c  >&5
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/libgcc.a when searching for -lgcc
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: cannot find -lgcc
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../libgcc_s.so when searching for -lgcc_s
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/libgcc_s.so when searching for -lgcc_s
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: cannot find -lgcc_s
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../libc.so when searching for -lc
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../libc.a when searching for -lc
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/libc.so when searching for -lc
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/libc.a when searching for -lc
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: cannot find -lc
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/libgcc.a when searching for -lgcc
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: cannot find -lgcc
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../libgcc_s.so when searching for -lgcc_s
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/libgcc_s.so when searching for -lgcc_s
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
configure:3490: $? = 1
configure:3528: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libshout"
| #define PACKAGE_TARNAME "libshout"
| #define PACKAGE_VERSION "2.3.1"
| #define PACKAGE_STRING "libshout 2.3.1"
| #define PACKAGE_BUGREPORT "icecast-dev@xiph.org"
| #define PACKAGE_URL ""
| #define LIBSHOUT_MAJOR 2
| #define LIBSHOUT_MINOR 3
| #define LIBSHOUT_MICRO 1
| #define PACKAGE "libshout"
| #define VERSION "2.3.1"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3533: error: in `/tmp/SBo/libshout-2.3.1':
configure:3535: error: C compiler cannot create executables
See `config.log' for more details

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

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -march=i686 -mtune=i686 -m32'
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_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_OGG_PREFIX_set=
ac_cv_env_OGG_PREFIX_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/local/lib64/pkgconfig:/usr/lib64/pkgconfig
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_SPEEX_CFLAGS_set=
ac_cv_env_SPEEX_CFLAGS_value=
ac_cv_env_SPEEX_LIBS_set=
ac_cv_env_SPEEX_LIBS_value=
ac_cv_env_SPEEX_set=
ac_cv_env_SPEEX_value=
ac_cv_env_THEORA_CFLAGS_set=
ac_cv_env_THEORA_CFLAGS_value=
ac_cv_env_THEORA_LIBS_set=
ac_cv_env_THEORA_LIBS_value=
ac_cv_env_THEORA_set=
ac_cv_env_THEORA_value=
ac_cv_env_VORBIS_CFLAGS_set=
ac_cv_env_VORBIS_CFLAGS_value=
ac_cv_env_VORBIS_LIBS_set=
ac_cv_env_VORBIS_LIBS_value=
ac_cv_env_VORBIS_PREFIX_set=
ac_cv_env_VORBIS_PREFIX_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i486-slackware-linux
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='/usr/bin/ginstall -c'
ac_cv_path_mkdir=/usr/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/SBo/libshout-2.3.1/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /tmp/SBo/libshout-2.3.1/missing --run tar'
AR=''
AUTOCONF='${SHELL} /tmp/SBo/libshout-2.3.1/missing --run autoconf'
AUTOHEADER='${SHELL} /tmp/SBo/libshout-2.3.1/missing --run autoheader'
AUTOMAKE='${SHELL} /tmp/SBo/libshout-2.3.1/missing --run automake-1.11'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-O2 -march=i686 -mtune=i686 -m32'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEBUG=''
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
HAVE_PKGCONFIG_FALSE=''
HAVE_PKGCONFIG_TRUE=''
HAVE_SPEEX_FALSE=''
HAVE_SPEEX_TRUE=''
HAVE_THEORA_FALSE=''
HAVE_THEORA_TRUE=''
HAVE_THREAD_FALSE=''
HAVE_THREAD_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBTOOL_DEPS=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /tmp/SBo/libshout-2.3.1/missing --run makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OGG_CFLAGS=''
OGG_LDFLAGS=''
OGG_LIBS=''
OGG_PREFIX=''
OPT=''
OTOOL64=''
OTOOL=''
PACKAGE='libshout'
PACKAGE_BUGREPORT='icecast-dev@xiph.org'
PACKAGE_NAME='libshout'
PACKAGE_STRING='libshout 2.3.1'
PACKAGE_TARNAME='libshout'
PACKAGE_URL=''
PACKAGE_VERSION='2.3.1'
PATH_SEPARATOR=':'
PKGCONFIG=''
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH='/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig'
PROFILE=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_CPPFLAGS=''
PTHREAD_LIBS=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
SHOUT_CFLAGS=''
SHOUT_CPPFLAGS=''
SHOUT_LIBDEPS=''
SHOUT_REQUIRES=''
SHOUT_THREADSAFE=''
SPEEX=''
SPEEX_CFLAGS=''
SPEEX_LDFLAGS=''
SPEEX_LIBS=''
STRIP=''
THEORA=''
THEORA_CFLAGS=''
THEORA_LDFLAGS=''
THEORA_LIBS=''
VERSION='2.3.1'
VORBISENC_LIBS=''
VORBISFILE_LIBS=''
VORBIS_CFLAGS=''
VORBIS_LDFLAGS=''
VORBIS_LIBS=''
VORBIS_PREFIX=''
XIPH_CFLAGS=''
XIPH_CPPFLAGS=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
acx_pthread_config=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i486-slackware-linux'
build_alias='i486-slackware-linux'
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /tmp/SBo/libshout-2.3.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var'
mandir='/usr/man'
mkdir_p='/usr/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='/etc'
target_alias=''

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

/* confdefs.h */
#define PACKAGE_NAME "libshout"
#define PACKAGE_TARNAME "libshout"
#define PACKAGE_VERSION "2.3.1"
#define PACKAGE_STRING "libshout 2.3.1"
#define PACKAGE_BUGREPORT "icecast-dev@xiph.org"
#define PACKAGE_URL ""
#define LIBSHOUT_MAJOR 2
#define LIBSHOUT_MINOR 3
#define LIBSHOUT_MICRO 1
#define PACKAGE "libshout"
#define VERSION "2.3.1"

configure: exit 77

p.g.
Linux 1.0
Linux 1.0
 
Messaggi: 3
Iscritto il: gio mag 05, 2011 13:22

Re: checking whether the C compiler works... no

Messaggioda erio » mar nov 20, 2012 13:27

devi compilare secondo la tua architettura: libshout cambia i486 con x86_64 e riprova.....
erio
Linux 3.x
Linux 3.x
 
Messaggi: 1084
Iscritto il: ven ott 09, 2009 18:25
Slackware: 13.37
Kernel: 3.0.7
Desktop: kde

Re: checking whether the C compiler works... no

Messaggioda p.g. » ven nov 30, 2012 1:40

Ciao
grazie per l'interessamento. Da uno sguardo dato al codice nello slackbuild mi ero fatto l'idea che la scelta delll'architettura venisse "riconosciuta automaticamente" ma ovviamente non è così. Pensavo ci fosse da qualche parte un "uname -m" o che so, ma non mi sono premurato di controllare.

Ora l'errore è un altro. Di seguito posto le righe sole di codice dello slackbuild che ho modificato [VERSION e ARCH] e poco sotto l'errore riportato in fase di esecuzione dello slackbuild.

Codice: Seleziona tutto
# Set variables:
CWD=`pwd`
OUTPUT=${OUTPUT:-$CWD}
PKGNAME=libshout
TMP=${TMP:-/tmp/txz/$PKGNAME}
PKG=$TMP/package
VERSION=${VERSION:-2.2.2}
ARCH=${ARCH:x86_64}
JOBS=${JOBS:--j2}
BUILD=${BUILD:-9}
TAG=${TAG:-sl}



Codice: Seleziona tutto
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... configure: error: /bin/sh ./config.sub -slackware-linux failed
configure: WARNING: cache variable ac_cv_build contains a newline


Grazie
p.g.
Linux 1.0
Linux 1.0
 
Messaggi: 3
Iscritto il: gio mag 05, 2011 13:22

Re: checking whether the C compiler works... no

Messaggioda fgcl2k » ven nov 30, 2012 14:39

Guarda nello SlackBuild, nella riga del comando configure che contiene "--build=i486-slackware-linux" potrebbe esserci un errore.
L'hai modificata?
Se dà problemi cambiala in
Codice: Seleziona tutto
--build=$ARCH-slackware-linux

oppure eliminala del tutto.
Avatar utente
fgcl2k
Linux 2.0
Linux 2.0
 
Messaggi: 131
Iscritto il: gio ott 29, 2009 10:14
Nome Cognome: Federico
Slackware: 14.1 (64bit)
Kernel: 3.10.17
Desktop: KDE 4.13.3


Torna a Slackware64

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite

cron