Internal Compiler Error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Internal Compiler Error

Bill Wendling
Hi all,

In the last few days, some change introduced an internal compiler  
error. On my G4 (PPC), I'm getting this:

$ cat testcase.i
struct A {};
struct B {
   struct A c[0];
};
extern const struct B *pB;
void bork(void) {
   const struct A *pA = pB->c;
}
$ /Users/wendling/llvm/llvm-gcc-4.2.obj/./gcc/xgcc -B/Users/wendling/
llvm/llvm-gcc-4.2.obj/./gcc/ -B/Users/wendling/llvm/llvm-
gcc-4.2.install/powerpc-apple-darwin8.11.0/bin/ -B/Users/wendling/
llvm/llvm-gcc-4.2.install/powerpc-apple-darwin8.11.0/lib/ -O2 -pipe -
mmacosx-version-min=10.4 -g -c testcase.i
../../llvm-gcc-4.2.src/gcc/llvm-types.cpp:675: failed assertion  
`false && "Type not laid out for LLVM?"'
testcase.i: In function 'bork':
testcase.i:6: internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.

This is the compiler that GCC builds, so it's an error in our code  
base -- easier to debug :-). I know that this is scant information,  
but was anyone working in this area recently?

Thanks!
-bw
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Internal Compiler Error

Evan Cheng-2
Yes, this is me. I'll look at this tonight when I have access to a  
machine.

Evan

On Jan 27, 2008, at 1:01 AM, Bill Wendling <[hidden email]> wrote:

> Hi all,
>
> In the last few days, some change introduced an internal compiler
> error. On my G4 (PPC), I'm getting this:
>
> $ cat testcase.i
> struct A {};
> struct B {
>   struct A c[0];
> };
> extern const struct B *pB;
> void bork(void) {
>   const struct A *pA = pB->c;
> }
> $ /Users/wendling/llvm/llvm-gcc-4.2.obj/./gcc/xgcc -B/Users/wendling/
> llvm/llvm-gcc-4.2.obj/./gcc/ -B/Users/wendling/llvm/llvm-
> gcc-4.2.install/powerpc-apple-darwin8.11.0/bin/ -B/Users/wendling/
> llvm/llvm-gcc-4.2.install/powerpc-apple-darwin8.11.0/lib/ -O2 -pipe -
> mmacosx-version-min=10.4 -g -c testcase.i
> ../../llvm-gcc-4.2.src/gcc/llvm-types.cpp:675: failed assertion
> `false && "Type not laid out for LLVM?"'
> testcase.i: In function 'bork':
> testcase.i:6: internal compiler error: Abort trap
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://developer.apple.com/bugreporter> for instructions.
>
> This is the compiler that GCC builds, so it's an error in our code
> base -- easier to debug :-). I know that this is scant information,
> but was anyone working in this area recently?
>
> Thanks!
> -bw
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Internal Compiler Error

Bill Wendling
It compiles for me now. Thanks! :-)

-bw

On Jan 27, 2008, at 4:10 PM, Evan Cheng wrote:

> Yes, this is me. I'll look at this tonight when I have access to a
> machine.
>
> Evan
>
> On Jan 27, 2008, at 1:01 AM, Bill Wendling <[hidden email]> wrote:
>
>> Hi all,
>>
>> In the last few days, some change introduced an internal compiler
>> error. On my G4 (PPC), I'm getting this:
>>
>> $ cat testcase.i
>> struct A {};
>> struct B {
>>   struct A c[0];
>> };
>> extern const struct B *pB;
>> void bork(void) {
>>   const struct A *pA = pB->c;
>> }
>> $ /Users/wendling/llvm/llvm-gcc-4.2.obj/./gcc/xgcc -B/Users/wendling/
>> llvm/llvm-gcc-4.2.obj/./gcc/ -B/Users/wendling/llvm/llvm-
>> gcc-4.2.install/powerpc-apple-darwin8.11.0/bin/ -B/Users/wendling/
>> llvm/llvm-gcc-4.2.install/powerpc-apple-darwin8.11.0/lib/ -O2 -pipe -
>> mmacosx-version-min=10.4 -g -c testcase.i
>> ../../llvm-gcc-4.2.src/gcc/llvm-types.cpp:675: failed assertion
>> `false && "Type not laid out for LLVM?"'
>> testcase.i: In function 'bork':
>> testcase.i:6: internal compiler error: Abort trap
>> Please submit a full bug report,
>> with preprocessed source if appropriate.
>> See <URL:http://developer.apple.com/bugreporter> for instructions.
>>
>> This is the compiler that GCC builds, so it's an error in our code
>> base -- easier to debug :-). I know that this is scant information,
>> but was anyone working in this area recently?
>>
>> Thanks!
>> -bw
>> _______________________________________________
>> LLVM Developers mailing list
>> [hidden email]         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev