This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug objc++/51159] New: build failure with --enable-build-with-cxx in "gcc-4.6.2/gcc/objc/objc-next-runtime-abi-02.c"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]