public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/45482]  New: Bootstrap fails on PPC error: conflicting types for 'malloc'
@ 2010-09-01 13:43 sfilippone at uniroma2 dot it
  2010-09-01 13:44 ` [Bug bootstrap/45482] " sfilippone at uniroma2 dot it
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: sfilippone at uniroma2 dot it @ 2010-09-01 13:43 UTC (permalink / raw)
  To: gcc-bugs

The error I get is the same as in the old pr 33130. I don't see why this is so. 
Ian Lance Taylor suggested looking at STDC_HEADERS, and indeed in
libiberty/config.h it is defined in stage1, but not in stage2. 
I am attaching a few config files; please let me know what else is needed to
figure this out. 
=================================================================================
make[3]: Entering directory `/home/snfilip/GNUBUILD/obj-4.6.0/libiberty'
if [ x"" != x ]; then \
          /home/snfilip/GNUBUILD/obj-4.6.0/./prev-gcc/xgcc
-B/home/snfilip/GNUBUILD/obj-4.6.0/./prev-gcc/
-B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/bin/
-B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/bin/
-B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/lib/ -isystem
/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/include -isystem
/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/sys-include    -c
-DHAVE_CONFIG_H -g -O2 -gtoggle  -I. -I../../gcc-4.6.0/libiberty/../include  -W
-Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  
../../gcc-4.6.0/libiberty/regex.c -o pic/regex.o; \
        else true; fi
/home/snfilip/GNUBUILD/obj-4.6.0/./prev-gcc/xgcc
-B/home/snfilip/GNUBUILD/obj-4.6.0/./prev-gcc/
-B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/bin/
-B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/bin/
-B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/lib/ -isystem
/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/include -isystem
/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/sys-include    -c
-DHAVE_CONFIG_H -g -O2 -gtoggle  -I. -I../../gcc-4.6.0/libiberty/../include  -W
-Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic 
../../gcc-4.6.0/libiberty/regex.c -o regex.o
../../gcc-4.6.0/libiberty/regex.c:130:1: warning: function declaration isn't a
prototype [-Wstrict-prototypes]
../../gcc-4.6.0/libiberty/regex.c:130:7: warning: conflicting types for
built-in function 'malloc' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c:131:1: warning: function declaration isn't a
prototype [-Wstrict-prototypes]
../../gcc-4.6.0/libiberty/regex.c:131:7: warning: conflicting types for
built-in function 'realloc' [enabled by default]
In file included from
/home/snfilip/GNUBUILD/obj-4.6.0/./prev-gcc/include-fixed/bits/string2.h:1308:0,
                 from /usr/include/string.h:417,
                 from ../../gcc-4.6.0/libiberty/regex.c:149:
/usr/include/stdlib.h:589:14: error: conflicting types for 'malloc'
../../gcc-4.6.0/libiberty/regex.c:130:7: note: previous declaration of 'malloc'
was here
In file included from ../../gcc-4.6.0/libiberty/regex.c:638:0:
../../gcc-4.6.0/libiberty/regex.c: In function 'byte_regex_compile':
../../gcc-4.6.0/libiberty/regex.c:2439:7: warning: implicit declaration of
function 'free' [-Wimplicit-function-declaration]
../../gcc-4.6.0/libiberty/regex.c:2439:33: warning: incompatible implicit
declaration of built-in function 'free' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c:2500:17: warning: incompatible implicit
declaration of built-in function 'free' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c:2533:36: warning: incompatible implicit
declaration of built-in function 'free' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c:2640:28: warning: incompatible implicit
declaration of built-in function 'free' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c:3643:26: warning: incompatible implicit
declaration of built-in function 'free' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c:4150:5: warning: incompatible implicit
declaration of built-in function 'free' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c: In function 'byte_re_compile_fastmap':
../../gcc-4.6.0/libiberty/regex.c:4835:11: warning: implicit declaration of
function 'abort' [-Wimplicit-function-declaration]
../../gcc-4.6.0/libiberty/regex.c:4835:11: warning: incompatible implicit
declaration of built-in function 'abort' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c: In function 'byte_re_match_2_internal':
../../gcc-4.6.0/libiberty/regex.c:7424:11: warning: incompatible implicit
declaration of built-in function 'abort' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c: In function 'xregcomp':
../../gcc-4.6.0/libiberty/regex.c:7978:4: warning: incompatible implicit
declaration of built-in function 'free' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c: In function 'xregexec':
../../gcc-4.6.0/libiberty/regex.c:8053:7: warning: incompatible implicit
declaration of built-in function 'free' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c: In function 'xregerror':
../../gcc-4.6.0/libiberty/regex.c:8081:5: warning: incompatible implicit
declaration of built-in function 'abort' [enabled by default]
../../gcc-4.6.0/libiberty/regex.c: In function 'xregfree':
../../gcc-4.6.0/libiberty/regex.c:8115:5: warning: incompatible implicit
declaration of built-in function 'free' [enabled by default]
make[3]: *** [regex.o] Error 1
make[3]: Leaving directory `/home/snfilip/GNUBUILD/obj-4.6.0/libiberty'
make[2]: *** [all-stage2-libiberty] Error 2
make[2]: Leaving directory `/home/snfilip/GNUBUILD/obj-4.6.0'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/snfilip/GNUBUILD/obj-4.6.0'
make: *** [bootstrap] Error 2


-- 
           Summary: Bootstrap fails on PPC error: conflicting types for
                    'malloc'
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sfilippone at uniroma2 dot it
 GCC build triplet: powerpc64-unknown-linux-gnu
  GCC host triplet: powerpc64-unknown-linux-gnu
GCC target triplet: powerpc64-unknown-linux-gnu


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


^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <bug-45482-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-12-09  9:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-01 13:43 [Bug bootstrap/45482] New: Bootstrap fails on PPC error: conflicting types for 'malloc' sfilippone at uniroma2 dot it
2010-09-01 13:44 ` [Bug bootstrap/45482] " sfilippone at uniroma2 dot it
2010-09-01 13:44 ` sfilippone at uniroma2 dot it
2010-09-01 13:45 ` sfilippone at uniroma2 dot it
2010-09-01 13:45 ` sfilippone at uniroma2 dot it
2010-09-01 13:45 ` sfilippone at uniroma2 dot it
2010-09-02 17:16 ` rwild at gcc dot gnu dot org
2010-09-02 17:32 ` salvatore dot filippone at uniroma2 dot it
2010-09-07  7:20 ` sfilippone at uniroma2 dot it
2010-09-08 15:35 ` sfilippone at uniroma2 dot it
2010-09-08 16:00 ` mikpe at it dot uu dot se
2010-09-08 16:11 ` sfilippone at uniroma2 dot it
     [not found] <bug-45482-4@http.gcc.gnu.org/bugzilla/>
2011-12-08 19:50 ` gseanmcg at gmail dot com
2011-12-09  9:05 ` rguenth at gcc dot gnu.org

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