RE: need help on 4.4.6

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

 



-----Original Message-----
From: Michael Eager [mailto:eager@xxxxxxxxxx] 
Sent: Friday, March 08, 2013 7:01 AM
To: GUPTA, GAURAV G (GAURAV)
Cc: gcc-help@xxxxxxxxxxx
Subject: Re: need help on 4.4.6

On 03/07/2013 02:18 PM, GUPTA, GAURAV G (GAURAV) wrote:
> Folks
>
> I really need some help on building gcc 4.4.6 .I have tried looking nearly all the gnu gcc material configure option.Nothing seems to be working out .
> If some one can point me to some worth while material /notes for building it on linux without referring anything on the host .Even that will be great .

It helps to know how you configured GCC.

[Gaurav ] - This is how I configured my gcc 

$ /local/gagupta/gccfolder/crosscompile/gcc-4.4.6-20120305/configure --prefix=/local/gagupta/gccfolder/cross-tools --target=x86_64-unknown-linux-gnu --without-headers --with-newlib --disable-decimal-float --enable-languages=c --disable-threads --disable-libgomp --disable-libmudflap --disable-libssp --disable-shared


> Here is the snapshot of the steps I am doing .I have my sysroot has /local/gagupta/gccfolder .I have extracted kernel and glibc-headers into sysroot .Now I am trying to build gcc in two step by a script .I keep hitting the wall now and then .
>
> 1.Some times it failes in stage2 not able to find some header files . where as the headers files are all good in sysroot .
>
> checking for suffix of object files... configure: error: in `/local/gagupta/gccfolder/crosscompileorig/gcc-build/x86_64-unknown-linux-gnu/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.

What does the config.log file in x86_64-unknown-linux-gnu/libgcc say?

There will be a command which failed and a listing of the program it
was executing.  Sometimes it is clear why the command failed.  Other
times it may be useful to run the program by hand to see all error messages.

>
> 2. Some time it failes trying to locate a directory /bin/sh /local/gagupta/gccfolder/crosscompileorig/gcc-4.4.6-20120305/mkinstalldirs /local/gagupta/gccfolder/crosstoolsv1 /local/gagupta/gccfolder/crosstoolsv1
> /bin/sh: line 3: cd: ./fixincludes: No such file or directory
> make[1]: *** [install-fixincludes] Error 1
> make[1]: Leaving directory `/local/gagupta/gccfolder/crosscompileorig/gcc-build'
> make: *** [install] Error 2

Is there an error before this?  Something which prevents fixincludes from
being created?.

[Gaurav ] Error in current scenario:- 

make[3]: Leaving directory `/local/gagupta/gccfolder/crosscompile/gcc-build'
Comparing stages 2 and 3
warning: gcc/cc1-checksum.o differs
Bootstrap comparison failure!
gcc/gcc.o differs
make[2]: *** [compare] Error 1
make[2]: Leaving directory `/local/gagupta/gccfolder/crosscompile/gcc-build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/local/gagupta/gccfolder/crosscompile/gcc-build'
make: *** [all] Error 2
make[1]: Entering directory `/local/gagupta/gccfolder/crosscompile/gcc-build'
make[1]: Leaving directory `/local/gagupta/gccfolder/crosscompile/gcc-build'
make[1]: Entering directory `/local/gagupta/gccfolder/crosscompile/gcc-build'
/bin/sh /local/gagupta/gccfolder/crosscompile/gcc-4.4.6-20120305/mkinstalldirs /local/gagupta/gccfolder/cross-tools /local/gagupta/gccfolder/cross-tools
/bin/sh: line 3: cd: ./fixincludes: No such file or directory
make[1]: *** [install-fixincludes] Error 1
make[1]: Leaving directory `/local/gagupta/gccfolder/crosscompile/gcc-build'
make: *** [install] Error 2
~

> 3. Some time I see hell lot of directories mentiond in the below list and some time only 2 .based on changing the configure options .
>
> The following languages will be built: c,c++,fortran,java,objc
> *** This configuration is not supported in the following subdirectories:
>       target-libada gnattools
>      (Any other directories should still work fine.)



Not every directory is used for every build.  In this case, the libada
and gnattools directories are not needed unless you are building an
Ada compiler.

[Gaurav] - what configuration options are supported by all the libraries .it is enable static and enable shared .

-- 
Michael Eager	 eager@xxxxxxxxxxxx
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077



[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