public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/65863] New: GCC does not compile with weird error messages
@ 2015-04-23 17:09 porton at narod dot ru
  2015-04-23 18:02 ` [Bug bootstrap/65863] " hjl.tools at gmail dot com
  2015-04-23 20:22 ` porton at narod dot ru
  0 siblings, 2 replies; 3+ messages in thread
From: porton at narod dot ru @ 2015-04-23 17:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65863

            Bug ID: 65863
           Summary: GCC does not compile with weird error messages
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: porton at narod dot ru

I can't compile gcc-5.1.0 with gcc-4.9.2.

./configure --prefix=/usr/local/stow/gcc-5.1.0 --enable-libada
--enable-languages=c,c++,java,lto,objc,ada


make[3]: Entering directory
'/home/porton/build/gcc-5.1.0/host-x86_64-unknown-linux-gnu/gcc'
/home/porton/build/gcc-5.1.0/host-x86_64-unknown-linux-gnu/prev-gcc/xg++
-B/home/porton/build/gcc-5.1.0/host-x86_64-unknown-linux-gnu/prev-gcc/
-B/usr/local/stow/gcc-5.1.0/x86_64-unknown-linux-gnu/bin/ -nostdinc++
-B/home/porton/build/gcc-5.1.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/porton/build/gcc-5.1.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/home/porton/build/gcc-5.1.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu

-I/home/porton/build/gcc-5.1.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
 -I/home/porton/build/gcc-5.1.0/libstdc++-v3/libsupc++
-L/home/porton/build/gcc-5.1.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/porton/build/gcc-5.1.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-c   -g -O2 -gtoggle -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild -I../.././gcc -I../.././gcc/build
-I../.././gcc/../include  -I../.././gcc/../libcpp/include  \
    -o build/genmddeps.o ../.././gcc/genmddeps.c
In file included from ./bconfig.h:3:0,
                 from ../.././gcc/genmddeps.c:18:
./auto-host.h:2188:16: error: declaration does not declare anything
[-fpermissive]
 #define rlim_t long
                ^
In file included from ../.././gcc/genmddeps.c:19:0:
../.././gcc/system.h:465:23: error: conflicting declaration of C function
‘void* sbrk(int)’
 extern void *sbrk (int);
                       ^
In file included from ../.././gcc/system.h:277:0,
                 from ../.././gcc/genmddeps.c:19:
/usr/include/unistd.h:1043:14: note: previous declaration ‘void*
sbrk(intptr_t)’
 extern void *sbrk (intptr_t __delta) __THROW;
              ^
In file included from ../.././gcc/genmddeps.c:19:0:
../.././gcc/system.h:469:48: error: ambiguating new declaration of ‘char*
strstr(const char*, const char*)’
 extern char *strstr (const char *, const char *);
                                                ^
In file included from
/home/porton/build/gcc-5.1.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/cstring:42:0,
                 from ../.././gcc/system.h:219,
                 from ../.././gcc/genmddeps.c:19:
/usr/include/string.h:335:1: note: old declaration ‘const char* strstr(const
char*, const char*)’
 strstr (const char *__haystack, const char *__needle) __THROW
 ^
In file included from ../.././gcc/genmddeps.c:19:0:
../.././gcc/system.h:521:34: error: conflicting declaration of C function
‘const char* strsignal(int)’
 extern const char *strsignal (int);
                                  ^
In file included from
/home/porton/build/gcc-5.1.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/cstring:42:0,
                 from ../.././gcc/system.h:219,
                 from ../.././gcc/genmddeps.c:19:
/usr/include/string.h:564:14: note: previous declaration ‘char* strsignal(int)’
 extern char *strsignal (int __sig) __THROW;
              ^
In file included from ./bconfig.h:5:0,
                 from ../.././gcc/genmddeps.c:18:
../.././gcc/../include/ansidecl.h:171:64: error: ambiguating new declaration of
‘char* basename(const char*)’
 #  define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))
                                                                ^
../.././gcc/../include/libiberty.h:112:64: note: in expansion of macro
‘ATTRIBUTE_NONNULL’
 extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL
ATTRIBUTE_NONNULL(1);
                                                                ^
In file included from
/home/porton/build/gcc-5.1.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/cstring:42:0,
                 from ../.././gcc/system.h:219,
                 from ../.././gcc/genmddeps.c:19:
/usr/include/string.h:601:26: note: old declaration ‘const char* basename(const
char*)’
 extern "C++" const char *basename (const char *__filename)
                          ^
Makefile:2422: recipe for target 'build/genmddeps.o' failed
make[3]: *** [build/genmddeps.o] Error 1
make[3]: Leaving directory
'/home/porton/build/gcc-5.1.0/host-x86_64-unknown-linux-gnu/gcc'
Makefile:4411: recipe for target 'all-stage2-gcc' failed
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory '/home/porton/build/gcc-5.1.0'
Makefile:22920: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/home/porton/build/gcc-5.1.0'
>From gcc-bugs-return-484498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 23 17:10:23 2015
Return-Path: <gcc-bugs-return-484498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15226 invoked by alias); 23 Apr 2015 17:10:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15173 invoked by uid 48); 23 Apr 2015 17:10:19 -0000
From: "porton at narod dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/65863] GCC does not compile with weird error messages
Date: Thu, 23 Apr 2015 17:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: porton at narod dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65863-4-duQ0HSEgmu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65863-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65863-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-04/txt/msg02050.txt.bz2
Content-length: 223

https://gcc.gnu.org/bugzilla/show_bug.cgi?ide863

--- Comment #1 from Victor Porton <porton at narod dot ru> ---
Linux victor.local 3.10-2-amd64 #1 SMP Debian 3.10.7-1 (2013-08-17) x86_64
GNU/Linux

with 32 bit userland


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

* [Bug bootstrap/65863] GCC does not compile with weird error messages
  2015-04-23 17:09 [Bug bootstrap/65863] New: GCC does not compile with weird error messages porton at narod dot ru
@ 2015-04-23 18:02 ` hjl.tools at gmail dot com
  2015-04-23 20:22 ` porton at narod dot ru
  1 sibling, 0 replies; 3+ messages in thread
From: hjl.tools at gmail dot com @ 2015-04-23 18:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65863

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Victor Porton from comment #1)
> Linux victor.local 3.10-2-amd64 #1 SMP Debian 3.10.7-1 (2013-08-17) x86_64
> GNU/Linux
> 
> with 32 bit userland

Try configure GCC with

./configure --prefix=/usr/local/stow/gcc-5.1.0 --enable-libada
--enable-languages=c,c++,java,lto,objc,ada i686-linux


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

* [Bug bootstrap/65863] GCC does not compile with weird error messages
  2015-04-23 17:09 [Bug bootstrap/65863] New: GCC does not compile with weird error messages porton at narod dot ru
  2015-04-23 18:02 ` [Bug bootstrap/65863] " hjl.tools at gmail dot com
@ 2015-04-23 20:22 ` porton at narod dot ru
  1 sibling, 0 replies; 3+ messages in thread
From: porton at narod dot ru @ 2015-04-23 20:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65863

Victor Porton <porton at narod dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Victor Porton <porton at narod dot ru> ---
H.J. Lu:

It seems that after changing configure options as you suggested compilation
passes after this error.

However compilation fails later. I will report another bug.


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

end of thread, other threads:[~2015-04-23 20:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-23 17:09 [Bug bootstrap/65863] New: GCC does not compile with weird error messages porton at narod dot ru
2015-04-23 18:02 ` [Bug bootstrap/65863] " hjl.tools at gmail dot com
2015-04-23 20:22 ` porton at narod dot ru

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