Bug 42400 - objc build fails
Summary: objc build fails
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Shujing Zhao
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-17 10:13 UTC by IainS
Modified: 2009-12-17 12:32 UTC (History)
2 users (show)

See Also:
Host: i686-pc-linux-gnu, i686-apple-darwin
Target: i686-pc-linux-gnu, i686-apple-darwin
Build: i686-pc-linux-gnu, i686-apple-darwin
Known to work:
Known to fail:
Last reconfirmed: 2009-12-17 11:15:51


Attachments
apply the new ref_operator to objc-act.c (426 bytes, patch)
2009-12-17 11:30 UTC, IainS
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description IainS 2009-12-17 10:13:33 UTC
most likely the changes of 155302 are the cause.

../../gcc-4-5-libwork/gcc/objc/objc-act.c: In function ‘objc_substitute_decl’:
../../gcc-4-5-libwork/gcc/objc/objc-act.c:3118:14: error: incompatible type for argument 3 of ‘build_indirect_ref’
../../gcc-4-5-libwork/gcc/c-common.h:465:13: note: expected ‘ref_operator’ but argument is of type ‘const char *’
../../gcc-4-5-libwork/gcc/objc/objc-act.c: In function ‘build_ivar_reference’:
../../gcc-4-5-libwork/gcc/objc/objc-act.c:6826:14: error: incompatible type for argument 3 of ‘build_indirect_ref’
../../gcc-4-5-libwork/gcc/c-common.h:465:13: note: expected ‘ref_operator’ but argument is of type ‘const char *’
../../gcc-4-5-libwork/gcc/objc/objc-act.c: In function ‘get_super_receiver’:
../../gcc-4-5-libwork/gcc/objc/objc-act.c:8844:10: error: incompatible type for argument 3 of ‘build_indirect_ref’
../../gcc-4-5-libwork/gcc/c-common.h:465:13: note: expected ‘ref_operator’ but argument is of type ‘const char *’
cc1: warnings being treated as errors
../../gcc-4-5-libwork/gcc/objc/objc-act.c: In function ‘build_ivar_reference’:
../../gcc-4-5-libwork/gcc/objc/objc-act.c:6827:1: error: control reaches end of non-void function
make[3]: *** [objcp/objcp-act.o] Error 1
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [bootstrap] Error 2
Comment 1 Rainer Emrich 2009-12-17 11:21:48 UTC
(In reply to comment #0)
> most likely the changes of 155302 are the cause.
> 
> ../../gcc-4-5-libwork/gcc/objc/objc-act.c: In function ‘objc_substitute_decl’:
> ../../gcc-4-5-libwork/gcc/objc/objc-act.c:3118:14: error: incompatible type for
> argument 3 of ‘build_indirect_ref’
> ../../gcc-4-5-libwork/gcc/c-common.h:465:13: note: expected ‘ref_operator’ but
> argument is of type ‘const char *’
> ../../gcc-4-5-libwork/gcc/objc/objc-act.c: In function ‘build_ivar_reference’:
> ../../gcc-4-5-libwork/gcc/objc/objc-act.c:6826:14: error: incompatible type for
> argument 3 of ‘build_indirect_ref’
> ../../gcc-4-5-libwork/gcc/c-common.h:465:13: note: expected ‘ref_operator’ but
> argument is of type ‘const char *’
> ../../gcc-4-5-libwork/gcc/objc/objc-act.c: In function ‘get_super_receiver’:
> ../../gcc-4-5-libwork/gcc/objc/objc-act.c:8844:10: error: incompatible type for
> argument 3 of ‘build_indirect_ref’
> ../../gcc-4-5-libwork/gcc/c-common.h:465:13: note: expected ‘ref_operator’ but
> argument is of type ‘const char *’
> cc1: warnings being treated as errors
> ../../gcc-4-5-libwork/gcc/objc/objc-act.c: In function ‘build_ivar_reference’:
> ../../gcc-4-5-libwork/gcc/objc/objc-act.c:6827:1: error: control reaches end of
> non-void function
> make[3]: *** [objcp/objcp-act.o] Error 1
> make[2]: *** [all-stage2-gcc] Error 2
> make[1]: *** [stage2-bubble] Error 2
> make: *** [bootstrap] Error 2
> 

Confirmed for x86_64-unknown-linux-gnu.

It's caused by r155302 see http://gcc.gnu.org/ml/gcc-cvs/2009-12/msg00446.html and PR40885.

Comment 2 IainS 2009-12-17 11:30:47 UTC
Created attachment 19337 [details]
apply the new ref_operator to objc-act.c

this is a mechanical change to the file, bootstrapped and checked on i686-apple-darwin9
Comment 3 Paolo Carlini 2009-12-17 12:00:36 UTC
Fixed with:

  http://gcc.gnu.org/ml/gcc-cvs/2009-12/msg00455.html
Comment 4 macius bat 2009-12-17 12:32:54 UTC
confirmed! Today my gcc 4.5 bootstrap also failed :(