public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zero at boolean-domain dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/43073] libiberty fails to build when using gcc-core
Date: Mon, 07 Jun 2010 14:36:00 -0000	[thread overview]
Message-ID: <20100607143557.17019.qmail@sourceware.org> (raw)
In-Reply-To: <bug-43073-18788@http.gcc.gnu.org/bugzilla/>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 15206 bytes --]



------- Comment #5 from zero at boolean-domain dot net  2010-06-07 14:35 -------
I obtain a similar error message when building a gcc-4.5.0 cross compiler:

/media/data/linux/sources/gcc-4.4.4-build/./gcc/xgcc
-B/media/data/linux/sources/gcc-4.4.4-build/./gcc/
-B/media/data/linux/tools/usr/x86_64-unknown-linux-gnu/bin/
-B/media/data/linux/tools/usr/x86_64-unknown-linux-gnu/lib/ -isystem
/media/data/linux/tools/usr/x86_64-unknown-linux-gnu/include -isystem
/media/data/linux/tools/usr/x86_64-unknown-linux-gnu/sys-include -c
-DHAVE_CONFIG_H -g -O2 -march=core2    -I.
-I../../../gcc-4.4.4/libiberty/../include  -W -Wall -Wwrite-strings
-Wc++-compat -Wstrict-prototypes -pedantic 
../../../gcc-4.4.4/libiberty/regex.c -o regex.o
../../../gcc-4.4.4/libiberty/regex.c:51:25: error: sys/types.h: No such file or
directory
../../../gcc-4.4.4/libiberty/regex.c:130: warning: function declaration isn’t a
prototype
../../../gcc-4.4.4/libiberty/regex.c:130: warning: conflicting types for
built-in function ‘malloc’
../../../gcc-4.4.4/libiberty/regex.c:131: warning: function declaration isn’t a
prototype
../../../gcc-4.4.4/libiberty/regex.c:131: warning: conflicting types for
built-in function ‘realloc’
../../../gcc-4.4.4/libiberty/regex.c:158:25: error: strings.h: No such file or
directory
In file included from ../../../gcc-4.4.4/libiberty/../include/xregex.h:26,
                 from ../../../gcc-4.4.4/libiberty/regex.c:193:
../../../gcc-4.4.4/libiberty/../include/xregex2.h:360: error: expected
specifier-qualifier-list before ‘size_t’
../../../gcc-4.4.4/libiberty/../include/xregex2.h:447: error: expected
declaration specifiers or ‘...’ before ‘size_t’
../../../gcc-4.4.4/libiberty/../include/xregex2.h:543: error: expected
declaration specifiers or ‘...’ before ‘size_t’
../../../gcc-4.4.4/libiberty/../include/xregex2.h:547: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘xregerror’
../../../gcc-4.4.4/libiberty/regex.c:196:20: error: ctype.h: No such file or
directory
../../../gcc-4.4.4/libiberty/regex.c: In function ‘init_syntax_once’:
../../../gcc-4.4.4/libiberty/regex.c:284: warning: implicit declaration of
function ‘bzero’
../../../gcc-4.4.4/libiberty/regex.c:284: warning: incompatible implicit
declaration of built-in function ‘bzero’
../../../gcc-4.4.4/libiberty/regex.c:287: warning: implicit declaration of
function ‘isalnum’
../../../gcc-4.4.4/libiberty/regex.c: At top level:
../../../gcc-4.4.4/libiberty/regex.c:408: error: expected declaration
specifiers or ‘...’ before ‘size_t’
In file included from ../../../gcc-4.4.4/libiberty/regex.c:638:
../../../gcc-4.4.4/libiberty/regex.c:2283: error: expected declaration
specifiers or ‘...’ before ‘size_t’
../../../gcc-4.4.4/libiberty/regex.c: In function ‘byte_regex_compile’:
../../../gcc-4.4.4/libiberty/regex.c:2318: error: ‘size’ undeclared (first use
in this function)
../../../gcc-4.4.4/libiberty/regex.c:2318: error: (Each undeclared identifier
is reported only once
../../../gcc-4.4.4/libiberty/regex.c:2318: error: for each function it appears
in.)
../../../gcc-4.4.4/libiberty/regex.c:2401: error: ‘struct re_pattern_buffer’
has no member named ‘fastmap_accurate’
../../../gcc-4.4.4/libiberty/regex.c:2402: error: ‘struct re_pattern_buffer’
has no member named ‘not_bol’
../../../gcc-4.4.4/libiberty/regex.c:2402: error: ‘struct re_pattern_buffer’
has no member named ‘not_eol’
../../../gcc-4.4.4/libiberty/regex.c:2410: error: ‘struct re_pattern_buffer’
has no member named ‘re_nsub’
../../../gcc-4.4.4/libiberty/regex.c:2439: warning: implicit declaration of
function ‘free’
../../../gcc-4.4.4/libiberty/regex.c:2439: warning: incompatible implicit
declaration of built-in function ‘free’
../../../gcc-4.4.4/libiberty/regex.c:2500: warning: incompatible implicit
declaration of built-in function ‘free’
../../../gcc-4.4.4/libiberty/regex.c:2533: warning: incompatible implicit
declaration of built-in function ‘free’
../../../gcc-4.4.4/libiberty/regex.c:2640: warning: incompatible implicit
declaration of built-in function ‘free’
../../../gcc-4.4.4/libiberty/regex.c:3124: warning: incompatible implicit
declaration of built-in function ‘bzero’
../../../gcc-4.4.4/libiberty/regex.c:3253: warning: implicit declaration of
function ‘strcmp’
../../../gcc-4.4.4/libiberty/regex.c:3280: warning: implicit declaration of
function ‘isalpha’
../../../gcc-4.4.4/libiberty/regex.c:3282: warning: implicit declaration of
function ‘iscntrl’
../../../gcc-4.4.4/libiberty/regex.c:3284: warning: implicit declaration of
function ‘isdigit’
../../../gcc-4.4.4/libiberty/regex.c:3285: warning: implicit declaration of
function ‘isprint’
../../../gcc-4.4.4/libiberty/regex.c:3285: warning: implicit declaration of
function ‘isspace’
../../../gcc-4.4.4/libiberty/regex.c:3286: warning: implicit declaration of
function ‘islower’
../../../gcc-4.4.4/libiberty/regex.c:3289: warning: implicit declaration of
function ‘ispunct’
../../../gcc-4.4.4/libiberty/regex.c:3291: warning: implicit declaration of
function ‘isupper’
../../../gcc-4.4.4/libiberty/regex.c:3292: warning: implicit declaration of
function ‘isxdigit’
../../../gcc-4.4.4/libiberty/regex.c:3643: warning: incompatible implicit
declaration of built-in function ‘free’
../../../gcc-4.4.4/libiberty/regex.c:3657: error: ‘struct re_pattern_buffer’
has no member named ‘re_nsub’
../../../gcc-4.4.4/libiberty/regex.c:4150: warning: incompatible implicit
declaration of built-in function ‘free’
../../../gcc-4.4.4/libiberty/regex.c: In function ‘byte_re_compile_fastmap’:
../../../gcc-4.4.4/libiberty/regex.c:4582: warning: incompatible implicit
declaration of built-in function ‘bzero’
../../../gcc-4.4.4/libiberty/regex.c:4583: error: ‘struct re_pattern_buffer’
has no member named ‘fastmap_accurate’
../../../gcc-4.4.4/libiberty/regex.c:4584: error: ‘struct re_pattern_buffer’
has no member named ‘can_be_null’
../../../gcc-4.4.4/libiberty/regex.c:4593: error: ‘struct re_pattern_buffer’
has no member named ‘can_be_null’
../../../gcc-4.4.4/libiberty/regex.c:4618: error: ‘struct re_pattern_buffer’
has no member named ‘can_be_null’
../../../gcc-4.4.4/libiberty/regex.c:4696: error: ‘struct re_pattern_buffer’
has no member named ‘can_be_null’
../../../gcc-4.4.4/libiberty/regex.c:4790: warning: implicit declaration of
function ‘bcopy’
../../../gcc-4.4.4/libiberty/regex.c:4790: warning: incompatible implicit
declaration of built-in function ‘bcopy’
../../../gcc-4.4.4/libiberty/regex.c:4797: error: ‘struct re_pattern_buffer’
has no member named ‘can_be_null’
../../../gcc-4.4.4/libiberty/regex.c:4835: warning: implicit declaration of
function ‘abort’
../../../gcc-4.4.4/libiberty/regex.c:4835: warning: incompatible implicit
declaration of built-in function ‘abort’
../../../gcc-4.4.4/libiberty/regex.c:4850: error: ‘struct re_pattern_buffer’
has no member named ‘can_be_null’
../../../gcc-4.4.4/libiberty/regex.c: In function ‘byte_re_search_2’:
../../../gcc-4.4.4/libiberty/regex.c:5046: error: ‘struct re_pattern_buffer’
has no member named ‘newline_anchor’
../../../gcc-4.4.4/libiberty/regex.c:5066: error: ‘struct re_pattern_buffer’
has no member named ‘fastmap_accurate’
../../../gcc-4.4.4/libiberty/regex.c:5152: error: ‘struct re_pattern_buffer’
has no member named ‘can_be_null’
../../../gcc-4.4.4/libiberty/regex.c:5191: error: ‘struct re_pattern_buffer’
has no member named ‘can_be_null’
../../../gcc-4.4.4/libiberty/regex.c: In function ‘byte_re_match_2_internal’:
../../../gcc-4.4.4/libiberty/regex.c:5612: error: ‘size_t’ undeclared (first
use in this function)
../../../gcc-4.4.4/libiberty/regex.c:5612: error: expected ‘;’ before
‘num_regs’
../../../gcc-4.4.4/libiberty/regex.c:5615: warning: ISO C90 forbids mixed
declarations and code
../../../gcc-4.4.4/libiberty/regex.c:5691: error: ‘struct re_pattern_buffer’
has no member named ‘re_nsub’
../../../gcc-4.4.4/libiberty/regex.c:5693: error: ‘num_regs’ undeclared (first
use in this function)
../../../gcc-4.4.4/libiberty/regex.c:5975: error: ‘struct re_pattern_buffer’
has no member named ‘no_sub’
../../../gcc-4.4.4/libiberty/regex.c:5978: error: ‘struct re_pattern_buffer’
has no member named ‘regs_allocated’
../../../gcc-4.4.4/libiberty/regex.c:5990: error: ‘struct re_pattern_buffer’
has no member named ‘regs_allocated’
../../../gcc-4.4.4/libiberty/regex.c:5992: error: ‘struct re_pattern_buffer’
has no member named ‘regs_allocated’
../../../gcc-4.4.4/libiberty/regex.c:6747: warning: incompatible implicit
declaration of built-in function ‘bcopy’
../../../gcc-4.4.4/libiberty/regex.c:6812: warning: implicit declaration of
function ‘bcmp’
../../../gcc-4.4.4/libiberty/regex.c:6831: error: ‘struct re_pattern_buffer’
has no member named ‘not_bol’
../../../gcc-4.4.4/libiberty/regex.c:6833: error: ‘struct re_pattern_buffer’
has no member named ‘newline_anchor’
../../../gcc-4.4.4/libiberty/regex.c:6847: error: ‘struct re_pattern_buffer’
has no member named ‘not_eol’
../../../gcc-4.4.4/libiberty/regex.c:6852: error: ‘struct re_pattern_buffer’
has no member named ‘newline_anchor’
../../../gcc-4.4.4/libiberty/regex.c:6901: warning: incompatible implicit
declaration of built-in function ‘bcopy’
../../../gcc-4.4.4/libiberty/regex.c:6958: warning: incompatible implicit
declaration of built-in function ‘bcopy’
../../../gcc-4.4.4/libiberty/regex.c:7021: error: ‘struct re_pattern_buffer’
has no member named ‘newline_anchor’
../../../gcc-4.4.4/libiberty/regex.c:7187: warning: incompatible implicit
declaration of built-in function ‘bcopy’
../../../gcc-4.4.4/libiberty/regex.c:7200: warning: incompatible implicit
declaration of built-in function ‘bcopy’
../../../gcc-4.4.4/libiberty/regex.c:7421: warning: incompatible implicit
declaration of built-in function ‘abort’
../../../gcc-4.4.4/libiberty/regex.c: In function ‘xre_set_registers’:
../../../gcc-4.4.4/libiberty/regex.c:4894: error: ‘struct re_pattern_buffer’
has no member named ‘regs_allocated’
../../../gcc-4.4.4/libiberty/regex.c:4901: error: ‘struct re_pattern_buffer’
has no member named ‘regs_allocated’
../../../gcc-4.4.4/libiberty/regex.c: At top level:
../../../gcc-4.4.4/libiberty/regex.c:7765: error: expected declaration
specifiers or ‘...’ before ‘size_t’
../../../gcc-4.4.4/libiberty/regex.c: In function ‘xre_compile_pattern’:
../../../gcc-4.4.4/libiberty/regex.c:7772: error: ‘struct re_pattern_buffer’
has no member named ‘regs_allocated’
../../../gcc-4.4.4/libiberty/regex.c:7777: error: ‘struct re_pattern_buffer’
has no member named ‘no_sub’
../../../gcc-4.4.4/libiberty/regex.c:7780: error: ‘struct re_pattern_buffer’
has no member named ‘newline_anchor’
../../../gcc-4.4.4/libiberty/regex.c:7787: error: ‘length’ undeclared (first
use in this function)
../../../gcc-4.4.4/libiberty/regex.c:7787: warning: passing argument 3 of
‘byte_regex_compile’ makes pointer from integer without a cast
../../../gcc-4.4.4/libiberty/regex.c:2282: note: expected ‘struct
re_pattern_buffer *’ but argument is of type ‘reg_syntax_t’
../../../gcc-4.4.4/libiberty/regex.c:7787: error: too many arguments to
function ‘byte_regex_compile’
../../../gcc-4.4.4/libiberty/regex.c: In function ‘xre_comp’:
../../../gcc-4.4.4/libiberty/regex.c:7839: error: ‘struct re_pattern_buffer’
has no member named ‘newline_anchor’
../../../gcc-4.4.4/libiberty/regex.c:7846: warning: implicit declaration of
function ‘strlen’
../../../gcc-4.4.4/libiberty/regex.c:7846: warning: incompatible implicit
declaration of built-in function ‘strlen’
../../../gcc-4.4.4/libiberty/regex.c:7846: warning: passing argument 3 of
‘byte_regex_compile’ makes pointer from integer without a cast
../../../gcc-4.4.4/libiberty/regex.c:2282: note: expected ‘struct
re_pattern_buffer *’ but argument is of type ‘reg_syntax_t’
../../../gcc-4.4.4/libiberty/regex.c:7846: error: too many arguments to
function ‘byte_regex_compile’
../../../gcc-4.4.4/libiberty/regex.c: In function ‘xre_exec’:
../../../gcc-4.4.4/libiberty/regex.c:7862: warning: incompatible implicit
declaration of built-in function ‘strlen’
../../../gcc-4.4.4/libiberty/regex.c: In function ‘xregcomp’:
../../../gcc-4.4.4/libiberty/regex.c:7936: warning: implicit declaration of
function ‘tolower’
../../../gcc-4.4.4/libiberty/regex.c:7947: error: ‘regex_t’ has no member named
‘newline_anchor’
../../../gcc-4.4.4/libiberty/regex.c:7950: error: ‘regex_t’ has no member named
‘newline_anchor’
../../../gcc-4.4.4/libiberty/regex.c:7952: error: ‘regex_t’ has no member named
‘no_sub’
../../../gcc-4.4.4/libiberty/regex.c:7961: warning: incompatible implicit
declaration of built-in function ‘strlen’
../../../gcc-4.4.4/libiberty/regex.c:7961: warning: passing argument 3 of
‘byte_regex_compile’ makes pointer from integer without a cast
../../../gcc-4.4.4/libiberty/regex.c:2282: note: expected ‘struct
re_pattern_buffer *’ but argument is of type ‘reg_syntax_t’
../../../gcc-4.4.4/libiberty/regex.c:7961: error: too many arguments to
function ‘byte_regex_compile’
../../../gcc-4.4.4/libiberty/regex.c:7975: warning: incompatible implicit
declaration of built-in function ‘free’
../../../gcc-4.4.4/libiberty/regex.c: At top level:
../../../gcc-4.4.4/libiberty/regex.c:8002: error: expected declaration
specifiers or ‘...’ before ‘size_t’
../../../gcc-4.4.4/libiberty/regex.c: In function ‘xregexec’:
../../../gcc-4.4.4/libiberty/regex.c:8008: warning: incompatible implicit
declaration of built-in function ‘strlen’
../../../gcc-4.4.4/libiberty/regex.c:8009: error: ‘regex_t’ has no member named
‘no_sub’
../../../gcc-4.4.4/libiberty/regex.c:8009: error: ‘nmatch’ undeclared (first
use in this function)
../../../gcc-4.4.4/libiberty/regex.c:8013: error: ‘regex_t’ has no member named
‘not_bol’
../../../gcc-4.4.4/libiberty/regex.c:8014: error: ‘regex_t’ has no member named
‘not_eol’
../../../gcc-4.4.4/libiberty/regex.c:8019: error: ‘regex_t’ has no member named
‘regs_allocated’
../../../gcc-4.4.4/libiberty/regex.c:8050: warning: incompatible implicit
declaration of built-in function ‘free’
../../../gcc-4.4.4/libiberty/regex.c: At top level:
../../../gcc-4.4.4/libiberty/regex.c:8065: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘xregerror’
../../../gcc-4.4.4/libiberty/regex.c: In function ‘xregfree’:
../../../gcc-4.4.4/libiberty/regex.c:8112: warning: incompatible implicit
declaration of built-in function ‘free’
../../../gcc-4.4.4/libiberty/regex.c:8121: error: ‘regex_t’ has no member named
‘fastmap_accurate’
make[2]: *** [regex.o] Error 1
make[2]: Leaving directory
`/media/data/linux/sources/gcc-4.4.4-build/x86_64-unknown-linux-gnu/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/media/data/linux/sources/gcc-4.4.4-build'
make: *** [all] Error 2

I used full gcc sources, not gcc-core. I also managed to find a workaround to
this problem, that is, adding --disable-libgomp to the configure argument list.


-- 


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


  parent reply	other threads:[~2010-06-07 14:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-15  9:24 [Bug c/43073] New: building arm cross-compiler fails when attempting to build regex library eric at brouhaha dot com
2010-02-16 11:20 ` [Bug bootstrap/43073] " ramana at gcc dot gnu dot org
2010-02-20  2:25 ` pinskia at gcc dot gnu dot org
2010-03-19 23:22 ` pinskia at gcc dot gnu dot org
2010-03-19 23:23 ` pinskia at gcc dot gnu dot org
2010-06-07 14:36 ` zero at boolean-domain dot net [this message]
     [not found] <bug-43073-4@http.gcc.gnu.org/bugzilla/>
2011-02-06  7:22 ` [Bug bootstrap/43073] libiberty fails to build when using gcc-core laguest at archeia dot com
2021-07-19  6:04 ` pinskia at gcc dot gnu.org
2021-07-19 13:10 ` segher at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100607143557.17019.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).