This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Add new architechture in gcc build error
daniel tian wrote:
> 2009/9/21 sumanth <sumanth.gundapneni@redpinesignals.com>:
>> Hi ,
>> Follow this wiki " http://gcc.gnu.org/wiki/DebuggingGCC" to know how to
>> debug gcc.
>> As far as I know compute_frame_pointer_to_fb_displacement is the
>> displacement between your
>> frame pointer and the frame base ( mostly stack pointer's location after
>> your prologue code - depends on your architecture).
>> You need to tell dwarf how much you are displacing your frame in order to
>> fit in your variables and stack pushed registers of a specific function.
>> The above mentioned explanation is my perception ( I am novice too in
>> gcc). However your error might not be related to it.
>>
>> The only way you can resolve your issue is by debugging gcc as per the link
>> I mentioned.
>
> Thank you very much.
> I will look into it. I need to figure out where the "conftest.c" is.
It's in the first message you sent:
| /* 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 ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
> I mean I know how to use the gdb or insight.
> But I wonder which execute file I need to run, is the "cc1"?
> and to compile the "conftest.c" file with "cc1"?
Yes.
> Any advice is appreciated.
>
> Does everyone port the gcc to a new target alway encounter this
> problem, or just the luck hits on me?
It happens to everyone.
Andrew.