Re: Problems compiling the GCC 4.3.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I did as you said, deleted everything, renamed gmp-5.0.1 to gmp and mpfr-3.0.0 to mpfr and copied that into the source tree of gcc-4.3.5. Then I created obj-gcc-4.3.5 and from there I called "../gcc-4.3.5/configure --prefix=/usr/local/gcc-4.3.5". So configure again ran through without any problems. Then I typed make and got the following error:

checking for recent GMP... yes
checking for gmp internal files... configure: error: header files gmp-impl.h and longlong.h not found
make[2]: *** [configure-stage1-mpfr] Error 1
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

I checked that both header files exist in the subdirectory gmp that lies in the gcc source directory. I use the following directory structure now:
GCC Sources:
/Users/toom/Downloads/gcc-4.3.5-base/gcc-4.3.5
/Users/toom/Downloads/gcc-4.3.5-base/gcc-4.3.5/gmp (contains gmp-impl.h and longlong.h)
/Users/toom/Downloads/gcc-4.3.5-base/gcc-4.3.5/mpfr
Build directory:
/Users/toom/Downloads/gcc-4.3.5-base/obj-gcc-4.3.5



Jonathan Wakely schrieb:
On 28 January 2011 14:12, Paul van Hoven wrote:
I had a look in to the config.log in

i386-apple-darwin10.6.0/libgcc/config.log

and I found the following:

dyld: Library not loaded:
/Users/toom/Downloads/mpfr-3.0.0/build/lib/libmpfr.4.dylib
 Referenced from: /Users/toom/Downloads/gcc-4.3.5/obj-gcc-4.3.5/./gcc/cc1
 Reason: image not found
xgcc: Internal error: Trace/BPT trap (program cc1)
Please submit a full bug report.

When I compiled mpfr and gmp I did it with the following call to the
configure script
gmp:
./configure --prefix=/Users/toom/Downloads/gmp-5.0.1/build/
make
make install

and mpfr with
./configure --prefix=/Users/toom/Downloads/mpfr-3.0.0/build
--with-gmp=/Users/toom/Downloads/gmp-5.0.1/build/
make
make install

After that I moved the compiled stuff into a directory called
/Users/toom/gcc4.3.5/requiredLibs/gmp-5.0.1
and
/Users/toom/gcc4.3.5/requiredLibs/mpfr-3.0.0
respectively.

Therefore I think make looked into a wrong directory.

Why didn't you just use the right --prefix option in the first place?

I recommend starting again.

As you were originally building in the source tree, if you didn't do
it already you should remove that entire treeand unpack the gccsources
again.  Then put the gmp and mpfr sources in the gcc source tree
(renaming or linking gmp-x.y.z to gmp and mpfr-x.y.z to mpfr)

Then remove the entire objdir and create it again empty.  Then
configure without --with-gmp or --with-mpfr, the source in
gcc-4.3.5/gmp and gcc-4.3.5/mpfr will be found and used.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux