Bonjour,
CONFIG :
J'utilise Fedora 21 64bits.
j'ai installé la tool chaine avec la commande suivante yum groupinstall "Development Tools" "Development Libraries"
Ma version de gcc est la suivante : gcc (GCC) 4.9.2 20141101 (Red Hat 4.9.2-1)
PROBLEMATIQUE :
Je souhaite installer modelsim_ase 11.1 mais ce logiciel 32bit ne fonctionne pas avec les nouvelles versions de Freetype.
un poste propose cette solution que je tente de réaliser :
http://mattaw.blogspot.fr/2014/05/making-modelsim-altera-starter-edition.html
TENTATIVE DE RESOLUTION
J'ai téléchargé un vieux freetype 2.4.12 ici :
http://sourceforge.net/projects/freetype/files/freetype2/2.4.12/
Aprés décompression de l'archive j'execute les commandes suivantes :
cd chemin/de/l'archive/decompressé/freetype
sh autogen.sh
./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
voici l'echo que j'obtiens lans le terminal :
reeType build system -- automatic system detection
The following settings are used:
platform unix
compiler cc
configuration directory ./builds/unix
configuration rules ./builds/unix/unix.mk
If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.
Otherwise, simply type `make' again to build the library,
or `make refdoc' to build the API reference (the latter needs python).
cd builds/unix; /bin/sh ./configure '--build=i686-pc-linux-gnu' 'CFLAGS=-m32' 'CXXFLAGS=-m32' 'LDFLAGS=-m32'
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/thierry/Documents/freetype-2.4.12/builds/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details
builds/unix/detect.mk:86: recipe for target 'setup' failed
make: *** [setup] Error 77
le fichier log est le suivant :
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by FreeType configure 2.4.12, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --build=i686-pc-linux-gnu CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost.localdomain
uname -m = x86_64
uname -r = 3.17.4-301.fc21.x86_64
uname -s = Linux
uname -v = #1 SMP Thu Nov 27 19:09:10 UTC 2014
/usr/bin/uname -p = x86_64
/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: /opt/grmon-eval-2.0.60/linux/bin
PATH: /opt/sparc-elf-4.4.2/bin
PATH: /opt/grmon-eval-2.0.60/linux/bin
PATH: /opt/sparc-elf-4.4.2/bin
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /bin
PATH: /sbin
PATH: /opt/altera/quartus/bin
PATH: /home/thierry/.local/bin
PATH: /home/thierry/bin
PATH: /opt/altera/quartus/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2480: checking build system type
configure:2494: result: i686-pc-linux-gnu
configure:2514: checking host system type
configure:2527: result: i686-pc-linux-gnu
configure:2599: checking for gcc
configure:2615: found /usr/bin/gcc
configure:2626: result: gcc
configure:2855: checking for C compiler version
configure:2864: gcc --version >&5
gcc (GCC) 4.9.2 20141101 (Red Hat 4.9.2-1)
Copyright (C) 2014 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:2875: $? = 0
configure:2864: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.9.2-20141101/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.9.2-20141101/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.9.2 20141101 (Red Hat 4.9.2-1) (GCC)
configure:2875: $? = 0
configure:2864: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2875: $? = 4
configure:2864: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2875: $? = 4
configure:2895: checking whether the C compiler works
configure:2917: gcc -m32 -m32 conftest.c >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib64/libc.so when searching for -lc
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:2921: $? = 1
configure:2959: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "FreeType"
| #define PACKAGE_TARNAME "freetype"
| #define PACKAGE_VERSION "2.4.12"
| #define PACKAGE_STRING "FreeType 2.4.12"
| #define PACKAGE_BUGREPORT "freetype@nongnu.org"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2964: error: in `/home/thierry/Documents/freetype-2.4.12/builds/unix':
configure:2966: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-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=set
ac_cv_env_LDFLAGS_value=-m32
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
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=i686-pc-linux-gnu
ac_cv_prog_ac_ct_CC=gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AS=''
AWK=''
CC='gcc'
CC_BUILD=''
CFLAGS='-m32'
CPP=''
CPPFLAGS=''
DEFS=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXEEXT_BUILD=''
FGREP=''
FT2_EXTRA_LIBS=''
FTSYS_SRC=''
GREP=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LD=''
LDFLAGS='-m32'
LIBBZ2=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBZ=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MANIFEST_TOOL=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE_BUGREPORT='freetype@nongnu.org'
PACKAGE_NAME='FreeType'
PACKAGE_STRING='FreeType 2.4.12'
PACKAGE_TARNAME='freetype'
PACKAGE_URL=''
PACKAGE_VERSION='2.4.12'
PATH_SEPARATOR=':'
RANLIB=''
RMDIR=''
SED=''
SHELL='/bin/sh'
STRIP=''
SYSTEM_ZLIB=''
XX_ANSIFLAGS=''
XX_CFLAGS=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_libtool_libs=''
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
ft_version='16.1.10'
ftmac_c=''
hardcode_libdir_flag_spec=''
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
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=''
version_info='16:1:10'
wl=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "FreeType"
#define PACKAGE_TARNAME "freetype"
#define PACKAGE_VERSION "2.4.12"
#define PACKAGE_STRING "FreeType 2.4.12"
#define PACKAGE_BUGREPORT "freetype@nongnu.org"
#define PACKAGE_URL ""
configure: exit 77
QUESTIONS :
Comment configurer gcc pour ne plus avoir les erreures suivantes ? :
checking for gcc... gcc
checking whether the C compiler works... no
Cordialement