public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Trying to build MIPS-ELF-GCC based on 4.6.0 GCC (Error)
@ 2011-06-03 21:20 sweinberger
  0 siblings, 0 replies; only message in thread
From: sweinberger @ 2011-06-03 21:20 UTC (permalink / raw)
  To: gcc-help


Hi All,

I am trying to build mips-elf-gcc from the latest gcc, 4.6.0.  I obtained
the procedure based on the 3.4.6 version of gcc and the procedure works like
a charm.

bash$ ./configure --target=mips-elf --disable-nls
--with-stabs --disable-install-libiberty --disable-install-libbfd
--disable-dependency-tracking --enable-64-bit-bfd --enable-languages=c
--with-gnu-as --with-gnu-ld --disable-libssp --disable-libiberty
bash$ make

When I first tried, I wound up with an error message that it cannot build
libiberty.  I took out the --disable-libiberty from the configure line
deleting the contents of the build folder and configuring again.  I then
issued the make command and over two hours later got an error message that
gcc cannot find sys/types.h.  I added the C_INCLUDE_PATH environment
variable pointing to the /usr/include and then I received error and warning
messages.

Checking multilib configuration for libiberty...
make[2]: Entering directory
`/usr/local/build-mips-elf-gcc/mips-elf/libiberty'
if [ x"" != x ]; then \
          /usr/local/build-mips-elf-gcc/./gcc/xgcc
-B/usr/local/build-mips-elf-gcc/./gcc/ -B/usr/local/mips-elf/bin/
-B/usr/local/mips-elf/lib/ -isystem /usr/local/mips-elf/include -isystem
/usr/local/mips-elf/sys-include    -c -DHAVE_CONFIG_H -g -O2
  -I. -I/usr/local/gcc-4.6.0/libiberty/../include  -W -Wall -Wwrite-strings
-Wc++-compat -Wstrict-prototypes -pedantic  
/usr/local/gcc-4.6.0/libiberty/regex.c -o pic/regex.o; \
        else true; fi
/usr/local/build-mips-elf-gcc/./gcc/xgcc
-B/usr/local/build-mips-elf-gcc/./gcc/ -B/usr/local/mips-elf/bin/
-B/usr/local/mips-elf/lib/ -isystem /usr/local/mips-elf/include -isystem
/usr/local/mips-elf/sys-include    -c -DHAVE_CONFIG_H -g -O2  -I. -I/u
sr/local/gcc-4.6.0/libiberty/../include  -W -Wall -Wwrite-strings
-Wc++-compat -Wstrict-prototypes -pedantic 
/usr/local/gcc-4.6.0/libiberty/regex.c -o regex.o
In file included from /usr/local/gcc-4.6.0/libiberty/regex.c:51:0:
/usr/include/sys/types.h:166:13: error: two or more data types in
declaration specifiers
/usr/include/sys/types.h:170:18: error: two or more data types in
declaration specifiers
/usr/local/gcc-4.6.0/libiberty/regex.c:130:1: warning: function declaration
isn't a prototype [-Wstrict-prototypes]
/usr/local/gcc-4.6.0/libiberty/regex.c:130:7: warning: conflicting types for
built-in function 'malloc' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c:131:1: warning: function declaration
isn't a prototype [-Wstrict-prototypes]
/usr/local/gcc-4.6.0/libiberty/regex.c:131:7: warning: conflicting types for
built-in function 'realloc' [enabled by default]
In file included from /usr/local/gcc-4.6.0/libiberty/regex.c:638:0:
/usr/local/gcc-4.6.0/libiberty/regex.c: In function 'byte_regex_compile':
/usr/local/gcc-4.6.0/libiberty/regex.c:2439:7: warning: implicit declaration
of function 'free' [-Wimplicit-function-declaration]
/usr/local/gcc-4.6.0/libiberty/regex.c:2439:33: warning: incompatible
implicit declaration of built-in function 'free' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c:2500:17: warning: incompatible
implicit declaration of built-in function 'free' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c:2533:36: warning: incompatible
implicit declaration of built-in function 'free' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c:2640:28: warning: incompatible
implicit declaration of built-in function 'free' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c:3643:26: warning: incompatible
implicit declaration of built-in function 'free' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c:4150:5: warning: incompatible
implicit declaration of built-in function 'free' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c: In function
'byte_re_compile_fastmap':
/usr/local/gcc-4.6.0/libiberty/regex.c:4835:11: warning: implicit
declaration of function 'abort' [-Wimplicit-function-declaration]
/usr/local/gcc-4.6.0/libiberty/regex.c:4835:11: warning: incompatible
implicit declaration of built-in function 'abort' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c: In function
'byte_re_match_2_internal':
/usr/local/gcc-4.6.0/libiberty/regex.c:7424:11: warning: incompatible
implicit declaration of built-in function 'abort' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c: In function 'xregcomp':
/usr/local/gcc-4.6.0/libiberty/regex.c:7978:4: warning: incompatible
implicit declaration of built-in function 'free' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c: In function 'xregexec':
/usr/local/gcc-4.6.0/libiberty/regex.c:8053:7: warning: incompatible
implicit declaration of built-in function 'free' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c: In function 'xregerror':
/usr/local/gcc-4.6.0/libiberty/regex.c:8081:5: warning: incompatible
implicit declaration of built-in function 'abort' [enabled by default]
/usr/local/gcc-4.6.0/libiberty/regex.c: In function 'xregfree':
/usr/local/gcc-4.6.0/libiberty/regex.c:8115:5: warning: incompatible
implicit declaration of built-in function 'free' [enabled by default]
make[2]: *** [regex.o] Error 1
make[2]: Leaving directory
`/usr/local/build-mips-elf-gcc/mips-elf/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/usr/local/build-mips-elf-gcc'
make: *** [all] Error 2

What is the problem now?

Thanks in advance,

Sarah
-- 
View this message in context: http://old.nabble.com/Trying-to-build-MIPS-ELF-GCC-based-on-4.6.0-GCC-%28Error%29-tp31768872p31768872.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-03 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-03 21:20 Trying to build MIPS-ELF-GCC based on 4.6.0 GCC (Error) sweinberger

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