IPB

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> Erreur de compilation bizarre
Options
Cubytus
posté 18 Aug 2013, 05:31
Message #1


Macbidouilleur d'argent !
***

Groupe : Membres
Messages : 566
Inscrit : 2 Mar 2007
Membre no 81 881



Bonsoir à tous,

je tente de compiler un programme chargé à partir d'un dépôt Git sur 10.6.8. Les dépendances ont été installées avec MacPorts, et le programme lui-même a été cloné localement, comme le veut Git.

Cependant, la compilation ne fonctionne pas, mais je n'arrive pas vraiment à comprendre la source de l'erreur, malgré une recherche faite.

Le log contient ça:
Code
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by libosmocore configure UNKNOWN, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ../configure --host=arm-none-eabi --enable-embedded --disable-shared --disable-tests ac_cv_header_sys_select_h=no --disable-tests ac_cv_header_sys_socket_h=no CFLAGS=-Os -ffunction-sections -I/usr/bin/osmocom-bb/src/target/firmware/include -nostartfiles -nodefaultlibs

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

hostname = Lancelot.local
uname -m = x86_64
uname -r = 10.8.0
uname -s = Darwin
uname -v = Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64

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

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
     Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 16.00 gigabytes
Default processor set: 80 tasks, 389 threads, 4 processors
Load average: 0.22, Mach factor: 3.77
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /opt/local/bin/
PATH: /opt/local/sbin/
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin


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

configure:2349: checking for a BSD-compatible install
configure:2417: result: /usr/bin/install -c
configure:2428: checking whether build environment is sane
configure:2483: result: yes
configure:2542: checking for arm-none-eabi-strip
configure:2572: result: no
configure:2582: checking for strip
configure:2598: found /opt/local/bin//strip
configure:2609: result: strip
configure:2634: checking for a thread-safe mkdir -p
configure:2673: result: ../install-sh -c -d
configure:2680: checking for gawk
configure:2710: result: no
configure:2680: checking for mawk
configure:2710: result: no
configure:2680: checking for nawk
configure:2710: result: no
configure:2680: checking for awk
configure:2696: found /usr/bin/awk
configure:2707: result: awk
configure:2718: checking whether make sets $(MAKE)
configure:2740: result: yes
configure:2769: checking whether make supports nested variables
configure:2786: result: yes
configure:2925: checking whether make supports nested variables
configure:2942: result: yes
configure:2954: checking whether make sets $(MAKE)
configure:2976: result: yes
configure:2994: checking for arm-none-eabi-gcc
configure:3024: result: no
configure:3034: checking for gcc
configure:3050: found /usr/bin/gcc
configure:3061: result: gcc
configure:3290: checking for C compiler version
configure:3299: gcc --version >&5
i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 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:3310: $? = 0
configure:3299: gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
configure:3310: $? = 0
configure:3299: gcc -V >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:3310: $? = 1
configure:3299: gcc -qversion >&5
i686-apple-darwin10-llvm-gcc-4.2: no input files
configure:3310: $? = 1
configure:3330: checking whether the C compiler works
configure:3352: gcc -Os -ffunction-sections -I/usr/bin/osmocom-bb/src/target/firmware/include -nostartfiles -nodefaultlibs   conftest.c  >&5
Undefined symbols for architecture x86_64:
  "start", referenced from:
     -u command line option
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
configure:3356: $? = 1
configure:3394: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libosmocore"
| #define PACKAGE_TARNAME "libosmocore"
| #define PACKAGE_VERSION "UNKNOWN"
| #define PACKAGE_STRING "libosmocore UNKNOWN"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "libosmocore"
| #define VERSION "UNKNOWN"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|  ;
|   return 0;
| }
configure:3399: error: in `/usr/bin/osmocom-bb/src/shared/libosmocore/build-target':
configure:3401: 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='-Os -ffunction-sections -I/usr/bin/osmocom-bb/src/target/firmware/include -nostartfiles -nodefaultlibs'
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_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-none-eabi
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_sys_select_h=no
ac_cv_header_sys_socket_h=no
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

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

ACLOCAL='${SHELL} /usr/bin/osmocom-bb/src/shared/libosmocore/missing aclocal-1.14'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
AR=''
AUTOCONF='${SHELL} /usr/bin/osmocom-bb/src/shared/libosmocore/missing autoconf'
AUTOHEADER='${SHELL} /usr/bin/osmocom-bb/src/shared/libosmocore/missing autoheader'
AUTOMAKE='${SHELL} /usr/bin/osmocom-bb/src/shared/libosmocore/missing automake-1.14'
AWK='awk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-Os -ffunction-sections -I/usr/bin/osmocom-bb/src/target/firmware/include -nostartfiles -nodefaultlibs'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DOXYGEN=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
ENABLE_GB_FALSE=''
ENABLE_GB_TRUE=''
ENABLE_MSGFILE_FALSE=''
ENABLE_MSGFILE_TRUE=''
ENABLE_PLUGIN_FALSE=''
ENABLE_PLUGIN_TRUE=''
ENABLE_SERIAL_FALSE=''
ENABLE_SERIAL_TRUE=''
ENABLE_TALLOC_FALSE=''
ENABLE_TALLOC_TRUE=''
ENABLE_UTILITIES_FALSE=''
ENABLE_UTILITIES_TRUE=''
ENABLE_VTY_FALSE=''
ENABLE_VTY_TRUE=''
EXEEXT=''
FGREP=''
GREP=''
HAVE_DOXYGEN_FALSE=''
HAVE_DOXYGEN_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBRARY_DL=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLDFLAGS_OSMOGB=''
LTLDFLAGS_OSMOGSM=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /usr/bin/osmocom-bb/src/shared/libosmocore/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='../install-sh -c -d'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='libosmocore'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='libosmocore'
PACKAGE_STRING='libosmocore UNKNOWN'
PACKAGE_TARNAME='libosmocore'
PACKAGE_URL=''
PACKAGE_VERSION='UNKNOWN'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
SYMBOL_VISIBILITY=''
VERSION='UNKNOWN'
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-none-eabi'
host_alias='arm-none-eabi'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /usr/bin/osmocom-bb/src/shared/libosmocore/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
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 "libosmocore"
#define PACKAGE_TARNAME "libosmocore"
#define PACKAGE_VERSION "UNKNOWN"
#define PACKAGE_STRING "libosmocore UNKNOWN"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""
#define PACKAGE "libosmocore"
#define VERSION "UNKNOWN"

configure: exit 77


Comment est-ce que ça se résout?
Go to the top of the page
 
+Quote Post
audionuma
posté 18 Aug 2013, 08:20
Message #2


Macbidouilleur d'Or !
*****

Groupe : Membres
Messages : 2 031
Inscrit : 27 Apr 2004
Membre no 18 176



Bonjour,
est-ce que tu as volontairement activé l'option
Code
--host=arm-none-eabi
?
On dirait que tu essayes de compiler pour un proc arm sur une machine x86, ce qui n'est pas forcément le plus simple.
En tout cas, chez moi (iMac i7, OS 10.8.4 et macports, un simple
Code
autoreconf -i
./configure

fonctionne sans erreurs (mais le
Code
make

échoue.
Précision : ce n'est pas une erreur de compilation qui se passe chez toi, la configuration n'est même pas terminée.

Ce message a été modifié par audionuma - 18 Aug 2013, 08:24.


--------------------
Membre du club des AIPBP (Anciens Inscrits Pas Beaucoup de Posts) Voir la liste
Futur ex-macbidouilleur, sous Dell / Ubuntu depuis 2021 !
Go to the top of the page
 
+Quote Post
Cubytus
posté 19 Aug 2013, 03:11
Message #3


Macbidouilleur d'argent !
***

Groupe : Membres
Messages : 566
Inscrit : 2 Mar 2007
Membre no 81 881



Non, je ne l'ai pas activée volontairement, et la source est, à toutes fins pratiques, l'originale telle que téléchargée de Git.

La commande autoreconf donne un résultat bizarre, peux-tu être plus spécifique dans ta réponse?
Code
$ sudo autoreconf -i
autoreconf: 'configure.ac' or 'configure.in' is required


De même pour "configure"
Code
$ sudo configure
sudo: configure: command not found


La compilation sur OS X n'est pas censée nécessiter d'autre étape.
Go to the top of the page
 
+Quote Post
audionuma
posté 19 Aug 2013, 06:34
Message #4


Macbidouilleur d'Or !
*****

Groupe : Membres
Messages : 2 031
Inscrit : 27 Apr 2004
Membre no 18 176



Bonjour,
nous parlons bien du même projet ?
J'ai suivi les indications ici :
http://bb.osmocom.org/trac/wiki/libosmocore
Code
$ git clone git://git.osmocom.org/libosmocore.git
$ cd libosmocore
$ autoreconf -i
$ ./configure
$ make


Citation
La compilation sur OS X n'est pas censée nécessiter d'autre étape.

En fait, la compilation à proprement parler a lieu lors du make, configure sert à (justement) configurer la compilation.


--------------------
Membre du club des AIPBP (Anciens Inscrits Pas Beaucoup de Posts) Voir la liste
Futur ex-macbidouilleur, sous Dell / Ubuntu depuis 2021 !
Go to the top of the page
 
+Quote Post
Cubytus
posté 20 Aug 2013, 09:11
Message #5


Macbidouilleur d'argent !
***

Groupe : Membres
Messages : 566
Inscrit : 2 Mar 2007
Membre no 81 881



Non, en fait j'avais commencé par la page "Getting started", après avoir lue celle de Mac Os X, qui n'indique pas clairement d'installer libosmocore avant. Dans tous les cas, en faisant la suite de commandes que tu montres (à précéder de sudo, sinon ça ne fonctionne pas.), ça échoue quand même:

Code
  CC       msgfile.lo
msgfile.c: In function 'osmo_config_list_parse':
msgfile.c:116: warning: implicit declaration of function 'getline'
  CC       serial.lo
  CCLD     libosmocore.la
Undefined symbols for architecture x86_64:
  "_getline", referenced from:
      _osmo_config_list_parse in msgfile.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[3]: *** [libosmocore.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Pourquoi?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



Nous sommes le : 29th March 2024 - 13:12