public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC 4.5 is uncompilable
@ 2009-11-20 12:45 Piotr Wyderski
  2009-11-20 12:50 ` Kai Tietz
  0 siblings, 1 reply; 9+ messages in thread
From: Piotr Wyderski @ 2009-11-20 12:45 UTC (permalink / raw)
  To: gcc

An attempt to build either gcc-trunk or the most recent
snapshot (20091119) with Cygwin (the build compiler
is either GCC 4.4.0 or 4.5-20090604), configured as:

$ ../configure --prefix=/opt/gcc-4.5-20091119 -v --enable-bootstrap --enable-ve
rsion-specific-runtime-libs --enable-shared --enable-shared-libgcc --with-gnu-l
d --with-gnu-as --enable-dwarf2-exceptions --disable-symvers --disable-nls --wi
th-arch=core2 --with-tune=generic --enable-threads=posix --enable-languages=c,c
++

fails with the following message:

[...]
 mv ./shlib/libgcc_s.dll.a.tmp ./shlib/libgcc_s.dll.a
/usr/bin/ld: unrecognized -a option `ware'
collect2: ld returned 1 exit status
make[3]: *** [libgcc_s.dll] Error 1
make[3]: Leaving directory `/home/piotr.wyderski/build/gcc-4.5-20091119/objdir/i
686-pc-cygwin/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/piotr.wyderski/build/gcc-4.5-20091119/objdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/piotr.wyderski/build/gcc-4.5-20091119/objdir'
make: *** [all] Error 2

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GCC 4.5 is uncompilable
  2009-11-20 12:45 GCC 4.5 is uncompilable Piotr Wyderski
@ 2009-11-20 12:50 ` Kai Tietz
  2009-11-20 12:55   ` Piotr Wyderski
  0 siblings, 1 reply; 9+ messages in thread
From: Kai Tietz @ 2009-11-20 12:50 UTC (permalink / raw)
  To: Piotr Wyderski; +Cc: gcc

2009/11/20 Piotr Wyderski <piotr.wyderski@gmail.com>:
> An attempt to build either gcc-trunk or the most recent
> snapshot (20091119) with Cygwin (the build compiler
> is either GCC 4.4.0 or 4.5-20090604), configured as:
>
> $ ../configure --prefix=/opt/gcc-4.5-20091119 -v --enable-bootstrap --enable-ve
> rsion-specific-runtime-libs --enable-shared --enable-shared-libgcc --with-gnu-l
> d --with-gnu-as --enable-dwarf2-exceptions --disable-symvers --disable-nls --wi
> th-arch=core2 --with-tune=generic --enable-threads=posix --enable-languages=c,c
> ++
>
> fails with the following message:
>
> [...]
>  mv ./shlib/libgcc_s.dll.a.tmp ./shlib/libgcc_s.dll.a
> /usr/bin/ld: unrecognized -a option `ware'
> collect2: ld returned 1 exit status
> make[3]: *** [libgcc_s.dll] Error 1
> make[3]: Leaving directory `/home/piotr.wyderski/build/gcc-4.5-20091119/objdir/i
> 686-pc-cygwin/libgcc'
> make[2]: *** [all-stage1-target-libgcc] Error 2
> make[2]: Leaving directory `/home/piotr.wyderski/build/gcc-4.5-20091119/objdir'
> make[1]: *** [stage1-bubble] Error 2
> make[1]: Leaving directory `/home/piotr.wyderski/build/gcc-4.5-20091119/objdir'
> make: *** [all] Error 2
>

This error you get is more related to used binutils version.The
warning you get looks more like a cripled '-Wl,--tsaware'. Which
binutils version you are using?

Cheers,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GCC 4.5 is uncompilable
  2009-11-20 12:50 ` Kai Tietz
@ 2009-11-20 12:55   ` Piotr Wyderski
  2009-11-20 19:51     ` Dave Korn
  0 siblings, 1 reply; 9+ messages in thread
From: Piotr Wyderski @ 2009-11-20 12:55 UTC (permalink / raw)
  To: gcc, Kai Tietz

Kai Tietz wrote:

> This error you get is more related to used binutils version.The
> warning you get looks more like a cripled '-Wl,--tsaware'.

Thanks, that looks like a good explanation.

> Which binutils version you are using?

$ ld -v
GNU ld (GNU Binutils) 2.18.50.20080625

I'll try to upgrade binutils and then repeat the build process.

Best regards
Piotr Wyderski

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GCC 4.5 is uncompilable
  2009-11-20 12:55   ` Piotr Wyderski
@ 2009-11-20 19:51     ` Dave Korn
  2009-11-20 23:17       ` Richard Guenther
  2009-11-23 10:42       ` Piotr Wyderski
  0 siblings, 2 replies; 9+ messages in thread
From: Dave Korn @ 2009-11-20 19:51 UTC (permalink / raw)
  To: Piotr Wyderski; +Cc: gcc, Kai Tietz

Piotr Wyderski wrote:
> Kai Tietz wrote:
> 
>> This error you get is more related to used binutils version.The
>> warning you get looks more like a cripled '-Wl,--tsaware'.
> 
> Thanks, that looks like a good explanation.

  Yes, I added this to HEAD recently

>> Which binutils version you are using?
> 
> $ ld -v
> GNU ld (GNU Binutils) 2.18.50.20080625
> 
> I'll try to upgrade binutils and then repeat the build process.

  If that doesn't fix it please let me know.  BTW I'm currently bootstrapping
r.154370 and it's got as far as building the target libraries post stage 3
without any sign of this problem, so you should be ok.

    cheers,
      DaveK

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GCC 4.5 is uncompilable
  2009-11-20 19:51     ` Dave Korn
@ 2009-11-20 23:17       ` Richard Guenther
  2009-11-23 10:42       ` Piotr Wyderski
  1 sibling, 0 replies; 9+ messages in thread
From: Richard Guenther @ 2009-11-20 23:17 UTC (permalink / raw)
  To: Dave Korn; +Cc: Piotr Wyderski, gcc, Kai Tietz

On Fri, Nov 20, 2009 at 9:06 PM, Dave Korn
<dave.korn.cygwin@googlemail.com> wrote:
> Piotr Wyderski wrote:
>> Kai Tietz wrote:
>>
>>> This error you get is more related to used binutils version.The
>>> warning you get looks more like a cripled '-Wl,--tsaware'.
>>
>> Thanks, that looks like a good explanation.
>
>  Yes, I added this to HEAD recently
>
>>> Which binutils version you are using?
>>
>> $ ld -v
>> GNU ld (GNU Binutils) 2.18.50.20080625
>>
>> I'll try to upgrade binutils and then repeat the build process.
>
>  If that doesn't fix it please let me know.  BTW I'm currently bootstrapping
> r.154370 and it's got as far as building the target libraries post stage 3
> without any sign of this problem, so you should be ok.

You should add the minimal required binutils version for cycwin to the
install section
of the manual.

Richard.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GCC 4.5 is uncompilable
  2009-11-20 19:51     ` Dave Korn
  2009-11-20 23:17       ` Richard Guenther
@ 2009-11-23 10:42       ` Piotr Wyderski
  2009-11-23 14:04         ` Dave Korn
  1 sibling, 1 reply; 9+ messages in thread
From: Piotr Wyderski @ 2009-11-23 10:42 UTC (permalink / raw)
  To: Dave Korn; +Cc: gcc

Dave Korn wrote:

>  If that doesn't fix it please let me know.

The solution was correct, with binutils 2.20
the problem disappeared. There is another
one, however on the snapshot 20091119:

../../gcc/lto-streamer-out.c: In function 'write_global_references':
../../gcc/lto-streamer-out.c:2201:7: error: passing argument 3 of 'lto_streamer_
cache_lookup' from incompatible pointer type
../../gcc/lto-streamer.h:790:13: note: expected 'int *' but argument is of type
'int32_t *'

which is a source code bug: a local variable ref of type
int32_t is passed by pointer to a function which takes int*.
Don't know about trunk, as I just started building it.

Best regards
Piotr Wyderski

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GCC 4.5 is uncompilable
  2009-11-23 10:42       ` Piotr Wyderski
@ 2009-11-23 14:04         ` Dave Korn
  0 siblings, 0 replies; 9+ messages in thread
From: Dave Korn @ 2009-11-23 14:04 UTC (permalink / raw)
  To: Piotr Wyderski; +Cc: Dave Korn, gcc

Piotr Wyderski wrote:
> Dave Korn wrote:
> 
>>  If that doesn't fix it please let me know.
> 
> The solution was correct, with binutils 2.20
> the problem disappeared. There is another
> one, however on the snapshot 20091119:
> 
> ../../gcc/lto-streamer-out.c: In function 'write_global_references':
> ../../gcc/lto-streamer-out.c:2201:7: error: passing argument 3 of 'lto_streamer_
> cache_lookup' from incompatible pointer type
> ../../gcc/lto-streamer.h:790:13: note: expected 'int *' but argument is of type
> 'int32_t *'
> 
> which is a source code bug: a local variable ref of type
> int32_t is passed by pointer to a function which takes int*.
> Don't know about trunk, as I just started building it.

  One of the problems with snapshots; sometimes they capture the state of
trunk while it has a bug extant.  I have successfully compiled HEAD at
r.154370 and r.154010 recently.

    cheers,
      DaveK

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GCC 4.5 is uncompilable
  2009-11-21  1:19 Matt
@ 2009-11-21 12:28 ` Dave Korn
  0 siblings, 0 replies; 9+ messages in thread
From: Dave Korn @ 2009-11-21 12:28 UTC (permalink / raw)
  To: Matt; +Cc: Dave Korn, gcc

Matt wrote:
> Hey Dave,
> 
> What OS are you bootstrapping on, and with which compiler/version?
> (Cygwin, I assume, but you never know ;>)

  Yep, Cygwin native using 4.3.4 as bootstrap compiler.

> I haven't been able to bootstrap for a few weeks, but no one answered my
> email for help (which probably got lost in the kernel-related fighting):

  rofl Linus is such a git!  I didn't notice his apology for having screwed up
so badly and flamed everyone over nothing, did you?

> http://gcc.gnu.org/ml/gcc/2009-11/msg00476.html
> 
> The code in question definitely looks like the uninitialized warning
> (reported as error) is valid. I'm surprised no one else has been seeing
> this, unless they aren't bootstrapping using 4.4.1 or above.

  Like I said, 4.3.4 (and occasionally I bootstrap HEAD with itself), but this
is one of those areas where false positives/negatives come and go.

> Any help is appreciated -- I really want to get cracking on testing 4.5.

  I read the code in ira-lives.c; it is very clearly not used uninitialised,
so this is undoubtedly a bug in your bootstrap compiler.  File a PR,
reconfigure your tree using --disable-werror, and off you go.

    cheers,
      DaveK

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GCC 4.5 is uncompilable
@ 2009-11-21  1:19 Matt
  2009-11-21 12:28 ` Dave Korn
  0 siblings, 1 reply; 9+ messages in thread
From: Matt @ 2009-11-21  1:19 UTC (permalink / raw)
  To: Dave Korn; +Cc: gcc

Hey Dave,

What OS are you bootstrapping on, and with which compiler/version? 
(Cygwin, I assume, but you never know 
;>)

I haven't been able to bootstrap for a few weeks, but no one answered my 
email for help (which probably got lost in the kernel-related fighting):
http://gcc.gnu.org/ml/gcc/2009-11/msg00476.html

The code in question definitely looks like the uninitialized warning 
(reported as error) is valid. I'm surprised no one else has been seeing 
this, unless they aren't bootstrapping using 4.4.1 or above.

Any help is appreciated -- I really want to get cracking on testing 4.5.

Thanks!




--
tangled strands of DNA explain the way that I behave.
http://www.clock.org/~matt

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-11-23 14:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-20 12:45 GCC 4.5 is uncompilable Piotr Wyderski
2009-11-20 12:50 ` Kai Tietz
2009-11-20 12:55   ` Piotr Wyderski
2009-11-20 19:51     ` Dave Korn
2009-11-20 23:17       ` Richard Guenther
2009-11-23 10:42       ` Piotr Wyderski
2009-11-23 14:04         ` Dave Korn
2009-11-21  1:19 Matt
2009-11-21 12:28 ` Dave Korn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).