473,378 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

gcc 4.1.1 with gfortran will not build on 64 bit Linux platform

I have today downloaded gcc-4.1.1 and tried to configure and build it.
I have successfully done this before with gcc-3.4.2. The gcc-4.1.1
includes gfortran which is a language that I need. The native build
platform is Linux AMD 64bit Opteron. I have previous built
libgmp.so.3.4.1 and libmpfr.so.1.0.0 and installed them in
/usr/local/lib which I understand are needed by gfortran.

My build directory on a local disk is:

/ldata1/downloads/gcc/gcc/gcc-4.1.1_objdir

and the gcc-4.1.1 sources were unpacked in:

/ldata1/downloads/gcc/gcc/gcc-4.1.1

In my build directory I ran the following commands (not login as root):

setenv LD_LIBRARY_PATH /usr/local/lib
.../gcc-4.1.1/configure --with-drawf2
make bootstrap

My build failed with the following:
make[2]: Entering directory
`/ldata1/downloads/gcc/gcc-4.1.1_objdir/gcc'
stage1/xgcc -Bstage1/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -g
-O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H
-o f951 \
fortran/arith.o fortran/array.o fortran/bbt.o fortran/check.o
fortran/data.o fortran/decl.o fortran/dump-parse-tree.o fortran/error.o
fortran/expr.o fortran/interface.o fortran/intrinsic.o fortran/io.o
fortran/iresolve.o fortran/match.o fortran/matchexp.o fortran/misc.o
fortran/module.o fortran/options.o fortran/parse.o fortran/primary.o
fortran/resolve.o fortran/scanner.o fortran/simplify.o fortran/st.o
fortran/symbol.o fortran/convert.o fortran/dependency.o
fortran/f95-lang.o fortran/trans.o fortran/trans-array.o
fortran/trans-common.o fortran/trans-const.o fortran/trans-decl.o
fortran/trans-expr.o fortran/trans-intrinsic.o fortran/trans-io.o
fortran/trans-stmt.o fortran/trans-types.o main.o libbackend.a
.../libcpp/libcpp.a -lmpfr -lgmp ../libcpp/libcpp.a
.../libiberty/libiberty.a
/usr/local/lib/libmpfr.so: undefined reference to
`__gmp_randinit_mt_noseed'
collect2: ld returned 1 exit status
make[2]: *** [f951] Error 1
make[2]: Leaving directory `/ldata1/downloads/gcc/gcc-4.1.1_objdir/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/ldata1/downloads/gcc/gcc-4.1.1_objdir/gcc'
make: *** [bootstrap] Error 2
Now I have checked in /usr/local/lib/libgmp.so.3.4.1 library and the
__gmp_randinit_mt_noseed symbol appears to be there. Can anyone throw
any light on what might be happening.

Any suggestions on how to resolve the problem would be appreciated.

Best regards,

Adrian

Sep 14 '06 #1
8 2504
flyingleon wrote:
I have today downloaded gcc-4.1.1 and tried to configure and build it.
<snip>

Responders, please remove the crossposts to comp.lang.c; the question is not
relevant to this ng. (The same applies for comp.lang.fortran, I'd wager.)

S.
Sep 14 '06 #2
In comp.lang.fortran flyingleon <ad**************@gmail.comwrote:
(snip)
I have previous built
libgmp.so.3.4.1 and libmpfr.so.1.0.0 and installed them in
/usr/local/lib which I understand are needed by gfortran.
(snip)
My build failed with the following:
(snip)
/usr/local/lib/libmpfr.so: undefined reference to
`__gmp_randinit_mt_noseed'
As you say, it looks like it needs gmp, but it doesn't
seem to be finding it. There is no -L/usr/local/lib
in your command, which would tell it to look there for
libraries. Otherwise, make sure that they are there.

-- glen
Sep 14 '06 #3
flyingleon wrote:
/usr/local/lib/libmpfr.so: undefined reference to
`__gmp_randinit_mt_noseed'
[...]
Now I have checked in /usr/local/lib/libgmp.so.3.4.1 library and the
__gmp_randinit_mt_noseed symbol appears to be there. Can anyone throw
any light on what might be happening.
It looks like MPFR doesn't know where to find the symbol. You may want
to verify your MPFR configuration.
Sep 14 '06 #4
Skarmander wrote:
flyingleon wrote:
>I have today downloaded gcc-4.1.1 and tried to configure and build it.

<snip>

Responders, please remove the crossposts to comp.lang.c; the question is
not relevant to this ng. (The same applies for comp.lang.fortran, I'd
wager.)

S.

I'd at least remove comp.lang.c , they seem to worry more about
controlling content than helping people. sorry, off-topic.
Sep 14 '06 #5
lurker wrote:
Skarmander wrote:
flyingleon wrote:
>
>I have today downloaded gcc-4.1.1 and tried to configure and build it.
>
<snip>
>
Responders, please remove the crossposts to comp.lang.c; the question is
not relevant to this ng. (The same applies for comp.lang.fortran, I'd
wager.)
>
S.


I'd at least remove comp.lang.c , they seem to worry more about
controlling content than helping people. sorry, off-topic.

Excuse me but not all comp.lang.c, just the traffic cops.

:-)

Sep 15 '06 #6
lurker wrote:
Skarmander wrote:
flyingleon wrote:
>
>I have today downloaded gcc-4.1.1 and tried to configure and build it.
>
<snip>
>
Responders, please remove the crossposts to comp.lang.c; the question is
not relevant to this ng. (The same applies for comp.lang.fortran, I'd
wager.)

I'd at least remove comp.lang.c , they seem to worry more about
controlling content than helping people. sorry, off-topic.
I don't know about "them", but as far as I'm concerned, you're very right. I
could help people with a great many things, but they can't expect help on
questions that don't have anything to do with C by posting to comp.lang.c.
The reason I read comp.lang.c in the first place is because it's about C and
nothing else. Questions about your GCC installation, Fortran compilation or
bonsai trees shouldn't be here, and the most help I'll give to such posts is
a pointer to a more appropriate newsgroup, or a polite request to remove
crossposts.

If that's not good enough for you, too bad. You get what you pay for.

S.
Sep 15 '06 #7
Many thanks for your comments which were very helpful as they gave me
some clues as to what might be happening. I have now successfully built
and installed gcc 4.1.1 with gfortran.

Sep 15 '06 #8
Many thanks for your comments which were also very helpful as they gave
me
some clues as to what might be happening. I have now successfully built

and installed gcc 4.1.1 with gfortran.

Sep 15 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: magneticlemur | last post by:
Hi, Does anyone know of an available downloader for an amd64 bit build of (a modern) python? I've done my due diligence search of python docs and mailing archives, and I'm somewhat mystified...
7
by: B. Wood | last post by:
I have a small program (see below) that demonstrates an error I am getting when I build the program on a linux platform. I first initialize an unsigned char array (lines 16). I then initialize...
2
by: rashmi | last post by:
Hi All, on linux ,how can we build binaries to arm architechture platform by specifing some options in the makefile like TARGET_PATFORM=? CC=gcc
7
by: Tempo | last post by:
Has anyone sucesfully built a *.exe file on a mac operating system before from a *.py file? I have been trying to do this with pyinstaller, but I keep getting errors and I don't know how to install...
5
by: eranshuman | last post by:
Hi, I m very new to perl I m running an API which have the Buil.pl When Im compiling using perl Build.pl I was getting error : Can't locate Module/Build.pm in @INC (@INC contains:...
2
by: post | last post by:
www.equation.com 32-bit and 64-bit versions are available support openmp
3
by: post | last post by:
available for download at www.equation.com Enjoy free compilers.
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
0
by: M.-A. Lemburg | last post by:
On 2008-10-25 20:19, Akira Kitada wrote: Thanks. The errors you are getting appear to be related to either some missing header files or a missing symbol definition to enable these - looking...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.