[AUR] Problème compilation de paquets (Résolu)

Mise à jour / Création /debug de paquetages
Sithx
newbie
Messages : 3
Inscription : jeu. 16 févr. 2017, 09:12

[AUR] Problème compilation de paquets (Résolu)

Message par Sithx »

Bonjour à tous,

Je rencontre depuis quelques temps des problèmes concernant l'installation ou la mise à jour de quelques paquets issues de AUR.
Là par exemple, j'ai le paquet "dmg2img" qui doit être mis à jour et yaourt me sort ça :

Code : Tout sélectionner

==> Lancement de build()...
cc -s -o dmg2img dmg2img.o base64.o adc.o -L. -lz -lbz2
/usr/local/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/../../../../lib/crt1.o(.text+0x26): réadressage R_X86_64_32 sans solution vers le symbole « __libc_start_main@@GLIBC_2.2.5 »
/usr/local/bin/ld: édition de lien finale en échec: Section non-représentable sur la sortie
collect2: erreur : ld a retourné 1 code d'état d'exécution
make: *** [Makefile:8: dmg2img] Error 1
==> ERREUR : Une erreur s’est produite dans build().
    Abandon...
J'ai l'impression que ça vient d'un conflit 32-64 bits, mais je peux me tromper...

Sur un autre paquet (wimlib) que je souhaite installer, j'ai une autre erreur, mais elle m'a l'air similaire d'après le config.log :
yaourt :

Code : Tout sélectionner

==> Lancement de build()...
checking for a BSD-compatible install... /usr/bin/install -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 make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
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-fguibert/aur-wimlib/src/wimlib-1.11.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
==> ERREUR : Une erreur s’est produite dans build().
    Abandon...
config.log :

Code : Tout sélectionner

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

It was created by wimlib configure 1.11.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --with-libcrypto --with-fuse --with-ntfs-3g --prefix=/usr

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

hostname = ###################
uname -m = x86_64
uname -r = 4.9.6-1-MANJARO
uname -s = Linux
uname -v = #1 SMP PREEMPT Thu Jan 26 12:29:20 UTC 2017

/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/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/lib/jvm/default/bin
PATH: /usr/bin/site_perl
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl


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

configure:2457: checking for a BSD-compatible install
configure:2525: result: /usr/bin/install -c
configure:2536: checking whether build environment is sane
configure:2591: result: yes
configure:2742: checking for a thread-safe mkdir -p
configure:2781: result: /usr/bin/mkdir -p
configure:2788: checking for gawk
configure:2804: found /usr/bin/gawk
configure:2815: result: gawk
configure:2826: checking whether make sets $(MAKE)
configure:2848: result: yes
configure:2877: checking whether make supports nested variables
configure:2894: result: yes
configure:3031: checking whether make supports nested variables
configure:3048: result: yes
configure:3071: checking for style of include used by make
configure:3099: result: GNU
configure:3170: checking for gcc
configure:3186: found /usr/bin/gcc
configure:3197: result: gcc
configure:3426: checking for C compiler version
configure:3435: gcc --version >&5
gcc (GCC) 6.3.1 20170109
Copyright (C) 2016 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:3446: $? = 0
configure:3435: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc-multilib/src/gcc/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 --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 6.3.1 20170109 (GCC) 
configure:3446: $? = 0
configure:3435: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3446: $? = 1
configure:3435: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3446: $? = 1
configure:3466: checking whether the C compiler works
configure:3488: gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c  >&5
/usr/local/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/../../../../lib/crt1.o(.text+0x26): unresolvable R_X86_64_32 relocation against symbol `__libc_start_main@@GLIBC_2.2.5'
/usr/local/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
configure:3492: $? = 1
configure:3530: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "wimlib"
| #define PACKAGE_TARNAME "wimlib"
| #define PACKAGE_VERSION "1.11.0"
| #define PACKAGE_STRING "wimlib 1.11.0"
| #define PACKAGE_BUGREPORT "ebiggers3@gmail.com"
| #define PACKAGE_URL ""
| #define PACKAGE "wimlib"
| #define VERSION "1.11.0"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3535: error: in `/tmp/yaourt-tmp-fguibert/aur-wimlib/src/wimlib-1.11.0':
configure:3537: 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='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-D_FORTIFY_SOURCE=2
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro
ac_cv_env_LIBCRYPTO_CFLAGS_set=
ac_cv_env_LIBCRYPTO_CFLAGS_value=
ac_cv_env_LIBCRYPTO_LIBS_set=
ac_cv_env_LIBCRYPTO_LIBS_value=
ac_cv_env_LIBFUSE_CFLAGS_set=
ac_cv_env_LIBFUSE_CFLAGS_value=
ac_cv_env_LIBFUSE_LIBS_set=
ac_cv_env_LIBFUSE_LIBS_value=
ac_cv_env_LIBNTFS_3G_CFLAGS_set=
ac_cv_env_LIBNTFS_3G_CFLAGS_value=
ac_cv_env_LIBNTFS_3G_LIBS_set=
ac_cv_env_LIBNTFS_3G_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIBXML2_CFLAGS_set=
ac_cv_env_LIBXML2_CFLAGS_value=
ac_cv_env_LIBXML2_LIBS_set=
ac_cv_env_LIBXML2_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_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='/usr/bin/install -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
am_cv_make_support_nested_variables=yes

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

ACLOCAL='${SHELL} /tmp/yaourt-tmp-fguibert/aur-wimlib/src/wimlib-1.11.0/build-aux/missing aclocal-1.15'
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} /tmp/yaourt-tmp-fguibert/aur-wimlib/src/wimlib-1.11.0/build-aux/missing autoconf'
AUTOHEADER='${SHELL} /tmp/yaourt-tmp-fguibert/aur-wimlib/src/wimlib-1.11.0/build-aux/missing autoheader'
AUTOMAKE='${SHELL} /tmp/yaourt-tmp-fguibert/aur-wimlib/src/wimlib-1.11.0/build-aux/missing automake-1.15'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong'
CPP=''
CPPFLAGS='-D_FORTIFY_SOURCE=2'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_SSSE3_SHA1_FALSE=''
ENABLE_SSSE3_SHA1_TRUE=''
ENABLE_TEST_SUPPORT_FALSE=''
ENABLE_TEST_SUPPORT_TRUE=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro'
LIBCRYPTO_CFLAGS=''
LIBCRYPTO_LIBS=''
LIBFUSE_CFLAGS=''
LIBFUSE_LIBS=''
LIBNTFS_3G_CFLAGS=''
LIBNTFS_3G_LIBS=''
LIBOBJS=''
LIBRT_LIBS=''
LIBS=''
LIBTOOL=''
LIBXML2_CFLAGS=''
LIBXML2_LIBS=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /tmp/yaourt-tmp-fguibert/aur-wimlib/src/wimlib-1.11.0/build-aux/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NAFLAGS=''
NASM=''
NASM_PLATFORM_FLAGS=''
NASM_SYMBOL_PREFIX=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='wimlib'
PACKAGE_BUGREPORT='ebiggers3@gmail.com'
PACKAGE_NAME='wimlib'
PACKAGE_STRING='wimlib 1.11.0'
PACKAGE_TARNAME='wimlib'
PACKAGE_URL=''
PACKAGE_VERSION='1.11.0'
PATH_SEPARATOR=':'
PKGCONFIG_PRIVATE_LIBS=''
PKGCONFIG_PRIVATE_REQUIRES=''
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
PLATFORM_CFLAGS=''
PLATFORM_CPPFLAGS=''
PLATFORM_LDFLAGS=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.11.0'
WINDOWS_NATIVE_BUILD_FALSE=''
WINDOWS_NATIVE_BUILD_TRUE=''
WITH_FUSE_FALSE=''
WITH_FUSE_TRUE=''
WITH_NTFS_3G_FALSE=''
WITH_NTFS_3G_TRUE=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
ax_pthread_config=''
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=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /tmp/yaourt-tmp-fguibert/aur-wimlib/src/wimlib-1.11.0/build-aux/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}'
pkgconfigdir=''
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 "wimlib"
#define PACKAGE_TARNAME "wimlib"
#define PACKAGE_VERSION "1.11.0"
#define PACKAGE_STRING "wimlib 1.11.0"
#define PACKAGE_BUGREPORT "ebiggers3@gmail.com"
#define PACKAGE_URL ""
#define PACKAGE "wimlib"
#define VERSION "1.11.0"

configure: exit 77
Une âme charitable pour me donner un petit coup de main ?
Merci à vous :)
Dernière modification par Sithx le jeu. 16 févr. 2017, 13:03, modifié 1 fois.
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17188
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [AUR] Problème compilation de paquets

Message par benjarobin »

Bonjour,
Quelle est la sortie de

Code : Tout sélectionner

pacman -Qo /usr/local/bin/*
Tu as des choses qui n'ont apparemment strictement rien à faire dans /usr/local/bin/
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Sithx
newbie
Messages : 3
Inscription : jeu. 16 févr. 2017, 09:12

Re: [AUR] Problème compilation de paquets

Message par Sithx »

Merci de ta réponse rapide :chinois:
Voici le résultat de la commande :

Code : Tout sélectionner

# pacman -Qo /usr/local/bin/*
erreur : aucun paquet ne contient /usr/local/bin/addr2line
erreur : aucun paquet ne contient /usr/local/bin/ar
erreur : aucun paquet ne contient /usr/local/bin/as
erreur : aucun paquet ne contient /usr/local/bin/c++filt
erreur : aucun paquet ne contient /usr/local/bin/elfedit
erreur : aucun paquet ne contient /usr/local/bin/gprof
erreur : aucun paquet ne contient /usr/local/bin/ld
erreur : aucun paquet ne contient /usr/local/bin/ld.bfd
erreur : aucun paquet ne contient /usr/local/bin/nm
erreur : aucun paquet ne contient /usr/local/bin/objcopy
erreur : aucun paquet ne contient /usr/local/bin/objdump
erreur : aucun paquet ne contient /usr/local/bin/ranlib
erreur : aucun paquet ne contient /usr/local/bin/readelf
erreur : aucun paquet ne contient /usr/local/bin/size
erreur : aucun paquet ne contient /usr/local/bin/strings
erreur : aucun paquet ne contient /usr/local/bin/strip
Ça sent pas bon non ?
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17188
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [AUR] Problème compilation de paquets

Message par benjarobin »

Tu es le seul à pouvoir savoir l'origine de ces fichiers car ils n'ont pas été ajouté par un paquet mais bien par toi.
Donc personnellement je supprimerais ces fichiers mais je serais quand même inquiet de connaitre l'origine de ces fichiers !!!
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Sithx
newbie
Messages : 3
Inscription : jeu. 16 févr. 2017, 09:12

Re: [AUR] Problème compilation de paquets

Message par Sithx »

Effectivement, j'avoue que ça m'inquiète...
je les ai déplacé dans un temp pour voir si la compil utilisait bien /usr/bin/ld à la place de /usr/local/bin/ld, et ça fonctionne maintenant.

C'est fou ça... j'installe que des paquets issues des dépots et AUR...
Après, j'utilise Manjaro, du coup c'est p'tetre fait exprès mais c'est louche quand même.

Je vérifierais sur mon poste perso chez moi pour voir si j'ai les mêmes paquets...

En tout cas merci beaucoup ! c'est résolu :)
Répondre