* libquadmath with older versions of gcc
@ 2011-06-02 21:44 Syed Bilal Mehdi
2011-06-03 5:49 ` Basile Starynkevitch
0 siblings, 1 reply; 3+ messages in thread
From: Syed Bilal Mehdi @ 2011-06-02 21:44 UTC (permalink / raw)
To: gcc-patches
Hello,
I am new to Linux and there are some basic problems that I am stuck with.
What I want to do is
1. Interface Matlab with gcc and
2. Use quad precision with gcc
I am using old version of Matlab that requires me to use gcc-4.1 (or
gcc-4.2.0 as the latest).
1. Can anyone please tell me how to use libquadmath (or any other c/c++
library that may be used for quad precision arithmetic) with older versions
of gcc?
2. rpm for libquadmath are available. But rpm files are pre-built. Is that
right? If so, can I somehow still use it with older versions of gcc?
Thanks in advance
Regards,
Syed Bilal Mehdi
--
View this message in context: http://old.nabble.com/libquadmath-with-older-versions-of-gcc-tp31761252p31761252.html
Sent from the gcc - patches mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libquadmath with older versions of gcc
2011-06-02 21:44 libquadmath with older versions of gcc Syed Bilal Mehdi
@ 2011-06-03 5:49 ` Basile Starynkevitch
2011-06-04 22:38 ` Syed Bilal Mehdi
0 siblings, 1 reply; 3+ messages in thread
From: Basile Starynkevitch @ 2011-06-03 5:49 UTC (permalink / raw)
To: Syed Bilal Mehdi; +Cc: gcc-patches
On Thu, 2 Jun 2011 14:44:05 -0700 (PDT)
Syed Bilal Mehdi <bilal.mehdi87@gmail.com> wrote:
[...]
> I am using old version of Matlab that requires me to use gcc-4.1 (or
> gcc-4.2.0 as the latest).
[...]
Do you understand why? My naive opinion is that, for C code, you could
use a latest gcc, even 4.6. (for C++ it really could be false, because
e.g. of mangling issues).
Did you try using gcc-4.6? What is concretely happening?
Regards
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libquadmath with older versions of gcc
2011-06-03 5:49 ` Basile Starynkevitch
@ 2011-06-04 22:38 ` Syed Bilal Mehdi
0 siblings, 0 replies; 3+ messages in thread
From: Syed Bilal Mehdi @ 2011-06-04 22:38 UTC (permalink / raw)
To: gcc-patches
Matlab only shows a warning as:
Warning: You are using gcc version "4.2.4". The earliest gcc version
supported
with mex is "4.0.0". The latest version tested for use with mex is
"4.2.0".
To download a different version of gcc, visit http://gcc.gnu.org
Things work fine though. So I am trying to install gcc-4.6 now, but for some
reason I am getting the following error during 'make'
checking for suffix of object files... configure: error: in
`/scratch/local/Bilal/gccSource2/i686-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Here is /scratch/local/Bilal/gccSource2/i686-pc-linux-gnu/libgcc/config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU C Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ /scratch/local/Bilal/gccSource2/libgcc/configure
--cache-file=./config.cache --enable-multilib
--with-gmp=/scratch/local/Bilal/gmp --with-mpfr=/scratch/local/Bilal/mpfr
--with-mpc=/scratch/local/Bilal/mpc
--enable-languages=c,c++,fortran,java,lto,objc
--program-transform-name=s,y,y, --disable-option-checking
--with-target-subdir=i686-pc-linux-gnu --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --srcdir=../.././libgcc
--disable-intermodule --enable-checking=yes,types --disable-coverage
--enable-languages=c,lto
## --------- ##
## Platform. ##
## --------- ##
hostname = dynamis.ae.uiuc.edu
uname -m = i686
uname -r = 2.6.24-28-generic
uname -s = Linux
uname -v = #1 SMP Fri Feb 11 17:36:45 UTC 2011
/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: /site/local/pkg/sge/bin/lx24-x86
PATH: /home/mehdi1/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/bin/X11
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1742: creating cache ./config.cache
configure:1903: checking for --enable-version-specific-runtime-libs
configure:1916: result: no
configure:1964: checking for a BSD-compatible install
configure:2032: result: /usr/bin/install -c
configure:2048: checking for gawk
configure:2075: result: gawk
configure:2095: checking build system type
configure:2109: result: i686-pc-linux-gnu
configure:2129: checking host system type
configure:2142: result: i686-pc-linux-gnu
configure:2245: checking for i686-pc-linux-gnu-ar
configure:2272: result: ar
configure:2337: checking for i686-pc-linux-gnu-lipo
configure:2364: result: lipo
configure:2429: checking for i686-pc-linux-gnu-nm
configure:2456: result:
/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/nm
configure:2521: checking for i686-pc-linux-gnu-ranlib
configure:2548: result: ranlib
configure:2613: checking for i686-pc-linux-gnu-strip
configure:2640: result: strip
configure:2702: checking whether ln -s works
configure:2706: result: yes
configure:2723: checking for i686-pc-linux-gnu-gcc
configure:2750: result:
/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc
-B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include
configure:3019: checking for C compiler version
configure:3028:
/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc
-B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include --version >&5
xgcc (GCC) 4.6.0
Copyright (C) 2011 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:3039: $? = 0
configure:3028:
/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc
-B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include -v >&5
Reading specs from
/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/specs
COLLECT_GCC=/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc
COLLECT_LTO_WRAPPER=/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ./configure prefix=/scratch/local/Bilal/gcc/
--with-gmp=/scratch/local/Bilal/gmp --with-mpfr=/scratch/local/Bilal/mpfr
--with-mpc=/scratch/local/Bilal/mpc
Thread model: posix
gcc version 4.6.0 (GCC)
configure:3039: $? = 0
configure:3028:
/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc
-B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include -V >&5
xgcc: error: unrecognized option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3028:
/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc
-B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include -qversion >&5
xgcc: error: unrecognized option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3055:
/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc
-B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include -o conftest -g -O2
conftest.c >&5
/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/cc1: error while
loading shared libraries: libmpc.so.2: cannot open shared object file: No
such file or directory
configure:3058: $? = 1
configure:3246: checking for suffix of object files
configure:3268:
/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc
-B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include -c -g -O2
conftest.c >&5
/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/cc1: error while
loading shared libraries: libmpc.so.2: cannot open shared object file: No
such file or directory
configure:3272: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3286: error: in
`/scratch/local/Bilal/gccSource2/i686-pc-linux-gnu/libgcc':
configure:3289: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc
-B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include '
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2'
ac_cv_env_CPPFLAGS_set=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=
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=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=i686-pc-linux-gnu
ac_cv_host=i686-pc-linux-gnu
ac_cv_prog_AR=ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc
-B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include '
ac_cv_prog_LIPO=lipo
ac_cv_prog_NM=/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/nm
ac_cv_prog_RANLIB=ranlib
ac_cv_prog_STRIP=strip
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR='ar'
AWK='gawk'
CC='/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc
-B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/
-B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem
/scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include '
CFLAGS='-g -O2'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
NM='/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/nm'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU C Runtime Library'
PACKAGE_STRING='GNU C Runtime Library 1.0'
PACKAGE_TARNAME='libgcc'
PACKAGE_URL='http://www.gnu.org/software/libgcc/'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SHELL='/bin/sh'
STRIP='strip'
ac_ct_CC=''
asm_hidden_op=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
decimal_float=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_decimal_float=''
enable_shared='yes'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_noncanonical='i686-pc-linux-gnu'
host_os='linux-gnu'
host_subdir='host-i686-pc-linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='../.././libgcc/..'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sharedstatedir='${prefix}/com'
slibdir='$(libdir)'
sysconfdir='${prefix}/etc'
target_alias='i686-pc-linux-gnu'
target_noncanonical='i686-pc-linux-gnu'
target_subdir='i686-pc-linux-gnu'
tmake_file=''
toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
toolexeclibdir='$(libdir)'
vis_hide=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
configure: exit 1
Basile Starynkevitch wrote:
>
> On Thu, 2 Jun 2011 14:44:05 -0700 (PDT)
> Syed Bilal Mehdi <bilal.mehdi87@gmail.com> wrote:
> [...]
>> I am using old version of Matlab that requires me to use gcc-4.1 (or
>> gcc-4.2.0 as the latest).
> [...]
>
> Do you understand why? My naive opinion is that, for C code, you could
> use a latest gcc, even 4.6. (for C++ it really could be false, because
> e.g. of mangling issues).
>
> Did you try using gcc-4.6? What is concretely happening?
>
> Regards
>
> --
> Basile STARYNKEVITCH http://starynkevitch.net/Basile/
> email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
> 8, rue de la Faiencerie, 92340 Bourg La Reine, France
> *** opinions {are only mine, sont seulement les miennes} ***
>
>
> -----
> Basile STARYNKEVITCH http://starynkevitch.net/Basile/
> email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
> 8, rue de la Faiencerie, 92340 Bourg La Reine, France
> *** opinions {are only mines, sont seulement les miennes} ***
>
>
--
View this message in context: http://old.nabble.com/libquadmath-with-older-versions-of-gcc-tp31761252p31774799.html
Sent from the gcc - patches mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-04 22:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-02 21:44 libquadmath with older versions of gcc Syed Bilal Mehdi
2011-06-03 5:49 ` Basile Starynkevitch
2011-06-04 22:38 ` Syed Bilal Mehdi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).