failed building gcc 4.6 from sources on linux mint 2.6.35-28-generic, when doing Fortran build
Nasser M. Abbasi
nma@12000.org
Mon Mar 28 01:06:00 GMT 2011
On 3/27/2011 12:01 PM, Jonathan Wakely wrote:
>
> See this FAQ:
> http://gcc.gnu.org/wiki/FAQ#configure
>
> As stated in the installation instructions at
> gcc.gnu.org/install/configure.html you should not run ./configure, you
> should build GCC in a different directory from the one containing the
> sources.
>
humm... Ok, will revisit everything then. I am just following the
standard method of building any linux software: unpack tar, cd to the
folder created, type ./configure; make; make install.
>
> You're looking in the wrong file.
>
> As the FAQ says, the usual reason is that the runtime linker can't
> find the prerequisite libraries (which is also stated in the
> --with-gmp docs at http://gcc.gnu.org/install/configure.html - you
> should read that too.)
>
Well, But I was following the instructions here:
http://gcc.gnu.org/wiki/FAQ
item 5, where it says:
"You have to check the file 'config.log' in the directory where the
error occurred (denoted by Entering/Leaving directory)."
And they gave an example. And in my case, such directory was:
" make[2]: Leaving directory
`/media/sf_nabbasi/data/Fortran_related/gcc_4_6/gcc-4.6.0'
"
And that is the config.log file I was looking at.
So, you see, I was just following the instructions, and did read it :)
> You could try using the makefile linked to at
> http://advogato.org/person/redi/diary/229.html which makes building
> gcc much easier (especially if you don't read the documentation about
> ensuring libgmp.so etc. can be found by the runtime linker)
>
Thanks, will try it.
I've uploaded the correct config.log file now here
http://12000.org/tmp/march_27_2011/
and called it libgcc_config.log
I see now the errors:
configure:3028: /media/sf_nabbasi/data/Fortran_related/gcc_4_6/gcc-4.6.0/host-i686-pc-linux-gnu/gcc/xgcc -B/media/sf_nabbasi/data/Fortran_related/gcc_4_6/gcc-4.6.0/host-i686-pc-linux-gnu/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/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: /media/sf_nabbasi/data/Fortran_related/gcc_4_6/gcc-4.6.0/host-i686-pc-linux-gnu/gcc/xgcc -B/media/sf_nabbasi/data/Fortran_related/gcc_4_6/gcc-4.6.0/host-i686-pc-linux-gnu/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -qversion >&5
xgcc: error: unrecognized option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
...
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;
| }
Thanks,
--Nasser
More information about the Gcc-help
mailing list