public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc++/51159] New: build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c"
@ 2011-11-16 14:46 sebastian.hegler@tu-dresden.de
  2011-11-16 21:40 ` [Bug objc++/51159] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: sebastian.hegler@tu-dresden.de @ 2011-11-16 14:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51159

             Bug #: 51159
           Summary: build failure with --enable-build-with-cxx in
                    "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c"
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: objc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sebastian.hegler@tu-dresden.de


Created attachment 25837
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25837
Proposed patch.

I am trying to build gcc-4.6.2 with the following flags:
./../gcc-4.6.2/configure --disable-nls --with-ppl=$GCC_BASE
--with-cloog=$GCC_BASE --prefix=$GCC_BASE --with--mpfr=$GCC_BASE
--with-gmp=$GCC_BASE --with-mpc=$GCC_BASE --with-libelf=$GCC_BASE --enable-lto
--enable-gold --enable-bootstrap --enable-build-with-cxx

Everything necessary is prepared in $GCC_BASE.

Eventually, this happens:
.././../gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c: In function ‘const char*
newabi_append_ro(const char*)’:
.././../gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c:1884:29: error: invalid
conversion from ‘const char*’ to ‘char*’
make[2]: *** [objc/objc-next-runtime-abi-02.o] Error 1


C++ provides the following signatures for strchr:
const char * strchr ( const char * str, int character );
      char * strchr (       char * str, int character );

Neither of these matches, making the assignment in "dollar = strchr (name,
'$');" fail. Please find the proposed patch attached (which might break
compilation with C, I don't know C as good as C++).


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

* [Bug objc++/51159] build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c"
  2011-11-16 14:46 [Bug objc++/51159] New: build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c" sebastian.hegler@tu-dresden.de
@ 2011-11-16 21:40 ` pinskia at gcc dot gnu.org
  2011-11-17 10:58 ` sebastian.hegler@tu-dresden.de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-11-16 21:40 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51159

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-11-16 21:18:20 UTC ---
Have you tried the trunk?  --enable-build-with-cxx is really only needed if
your plugin is written in C++.


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

* [Bug objc++/51159] build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c"
  2011-11-16 14:46 [Bug objc++/51159] New: build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c" sebastian.hegler@tu-dresden.de
  2011-11-16 21:40 ` [Bug objc++/51159] " pinskia at gcc dot gnu.org
@ 2011-11-17 10:58 ` sebastian.hegler@tu-dresden.de
  2011-11-17 21:47 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: sebastian.hegler@tu-dresden.de @ 2011-11-17 10:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51159

--- Comment #2 from sebastian.hegler@tu-dresden.de 2011-11-17 10:44:33 UTC ---
Fixed in trunk r173723, not fixed in gcc-4.6-branch. 

"--enable-build-with-cxx" is an officially supported build option, so it should
work reliably in releases.


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

* [Bug objc++/51159] build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c"
  2011-11-16 14:46 [Bug objc++/51159] New: build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c" sebastian.hegler@tu-dresden.de
  2011-11-16 21:40 ` [Bug objc++/51159] " pinskia at gcc dot gnu.org
  2011-11-17 10:58 ` sebastian.hegler@tu-dresden.de
@ 2011-11-17 21:47 ` pinskia at gcc dot gnu.org
  2011-11-17 21:50 ` pinskia at gcc dot gnu.org
  2011-11-21 11:21 ` sebastian.hegler@tu-dresden.de
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-11-17 21:47 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51159

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-11-17 21:36:17 UTC ---
(In reply to comment #2)
> "--enable-build-with-cxx" is an officially supported build option, so it should
> work reliably in releases.

But this is not a regression so closing as fixed for 4.7.0.


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

* [Bug objc++/51159] build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c"
  2011-11-16 14:46 [Bug objc++/51159] New: build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c" sebastian.hegler@tu-dresden.de
                   ` (2 preceding siblings ...)
  2011-11-17 21:47 ` pinskia at gcc dot gnu.org
@ 2011-11-17 21:50 ` pinskia at gcc dot gnu.org
  2011-11-21 11:21 ` sebastian.hegler@tu-dresden.de
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-11-17 21:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51159

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-11-17 21:37:12 UTC ---
(In reply to comment #2)
> "--enable-build-with-cxx" is an officially supported build option, so it should
> work reliably in releases.

But this is not a regression so closing as fixed for 4.7.0.
And it was not really a supported build option, it was an experimental option.


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

* [Bug objc++/51159] build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c"
  2011-11-16 14:46 [Bug objc++/51159] New: build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c" sebastian.hegler@tu-dresden.de
                   ` (3 preceding siblings ...)
  2011-11-17 21:50 ` pinskia at gcc dot gnu.org
@ 2011-11-21 11:21 ` sebastian.hegler@tu-dresden.de
  4 siblings, 0 replies; 6+ messages in thread
From: sebastian.hegler@tu-dresden.de @ 2011-11-21 11:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51159

--- Comment #5 from sebastian.hegler@tu-dresden.de 2011-11-21 09:43:23 UTC ---
Any chance of seeing the fix backported to 4.6, though?


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

end of thread, other threads:[~2011-11-21  9:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-16 14:46 [Bug objc++/51159] New: build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c" sebastian.hegler@tu-dresden.de
2011-11-16 21:40 ` [Bug objc++/51159] " pinskia at gcc dot gnu.org
2011-11-17 10:58 ` sebastian.hegler@tu-dresden.de
2011-11-17 21:47 ` pinskia at gcc dot gnu.org
2011-11-17 21:50 ` pinskia at gcc dot gnu.org
2011-11-21 11:21 ` sebastian.hegler@tu-dresden.de

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).