public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Marcio de Oliveira Buss <ra990898@ic.unicamp.br>
To: gcc-help@gcc.gnu.org
Subject: Re: Another crash trying to build gcc as cross compiler
Date: Wed, 16 Aug 2000 18:10:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.10.10008162134470.1415-100000@pinheiros.dcc.unicamp.br> (raw)
In-Reply-To: <Pine.GSO.4.10.10008161945010.343-100000@pinheiros.dcc.unicamp.br>

On Wed, 16 Aug 2000, Marcio de Oliveira Buss wrote:
> 
> 
> 	Dear,
> 	After many errors (most of them caused by myself while
>  trying to configure the sources) I tried to build again the
>  gcc starting by the first pass.
> 
> 	cd /home/mbuss/Compilers/GCC/sources/Gnu/src
> 	make distclean
> 
> 	cd /home/mbuss/Compilers/GCC/sources/Gnu/gcc
> 	make distclean
> 
> 	(being src and gcc cvs -z co gcc and cvs -z 9 src,
>  respectively).
> 	After that, I have tried to build the gcc from the
>  pretty principle :) but a diferent error has appeared. 
>  I belive I had already passed this pass before, but I can't 
>  now.
> 	It seems like the system crash while trying to 
>  build the binutils.
> 	I have many links from the gcc directory to the src
>  directory ( bfd, binutils, gas, gprof, intl, ld, libgloss,
>  newlib, opcodes, sim), for the purpose to asure that these
>  ones will be build, too.
> 	The comand sequence is below:
> 
>    cd /home/mbuss/Compilers/GCC/sources/Gnu/gcc
>    ls -l | grep ">"
> 
>         ... 10 Aug 15 12:11 bfd -> ../src/bfd
>         ... 15 Aug 15 12:10 binutils -> ../src/binutils
>         ... 10 Aug 15 12:09 gas-> ../src/gas
>         ... 12 Aug 16 17:33 gprof -> ../src/gprof
>         ... 11 Aug 16 17:32 intl -> ../src/intl
>         ...  9 Aug 15 12:10 ld -> ../src/ld
>         ... 15 Aug 16 17:33 libgloss -> ../src/libgloss
>         ... 13 Aug 16 17:31 newlib -> ../src/newlib
>         ... 14 Aug 15 17:34 opcodes -> ../src/opcodes
>         ... 10 Aug 16 20:46 sim -> ../src/sim
> 
>    
>   ./configure --target=mips-elf
>               --prefix=~/Compilers/GCC/gcc-mips/usr/local
>               --with-gnu-as
>               --with-gnu-ld
>               --with-headers=~/Compilers/GCC/sources/src/newlib/include
>               --with-newlib
> 
>   make
> 
> 
> 	And the following error has appeared, while trying to make
>   binutils:
> 
> make[3]: Entering directory
> `/home/mbuss/Compilers/GCC/sources/Gnu/src/binutils'
> gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd
> -I./../bfd -I./../include  -I./../intl -I../intl
> -DLOCALEDIR   ="\"/home/mbuss/Compilers/GCC/gcc-mips/usr/local/share/locale\$-W
> -Wall -g -O2 -c size.c 
> gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd
> -I./../bfd -I./../include  -I./../intl -I../intl
> -DLOCALEDIR="\"/home/mbuss/Compilers/GCC/gcc-mips/usr/local/share/locale\$-W
> -Wall -g -O2 -c bucomm.c
> gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd
> -I./../bfd -I./../include  -I./../intl -I../intl
> -DLOCALEDIR="\"/home/mbuss/Compilers/GCC/gcc-mips/usr/local/share/locale\$-W
> -Wall -g -O2 -c version.c
> gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd
> -I./../bfd -I./../include  -I./../intl -I../intl
> -DLOCALEDIR="\"/home/mbuss/Compilers/GCC/gcc-mips/usr/local/share/locale\$-W
> -Wall -g -O2 -c filemode.c
> 
> make[3]: *** No rule to make target `../libiberty/libiberty.a',
> needed by `size'.  Stop.
> make[3]: Leaving directory
> `/home/mbuss/Compilers/GCC/sources/Gnu/src/binutils'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/mbuss/Compilers/GCC/sources/Gnu/src/binutils'
> make[1]: *** [all-recursive-am] Error 2
> make[1]: Leaving directory 
> `/home/mbuss/Compilers/GCC/sources/Gnu/src/binutils'
> make: *** [all-binutils] Error 2
> 
> 
> 
> 	Thanks.
> 	Buss.	



	Ok, I have discovered the problem. I have to build
 things in this order in order everything works fine:

	cd ......./src/libiberty
	make
	cd ......./src/bfd
	make
	cd ......./src/opcodes
	make
	cd ......./src/binutils
	make
	cd ......./gcc
	make


	And finally I get the compiler!

	But now, an error has been occuring when I am trying
 to use the cross-compiler.
	The error message I received every time I invoke the
 compiler is below:


[mbuss@moderno]:$ mips-elf-gcc -b mips-elf -mcpu=r3000 -o
test1 test1.c -I

 
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/
2.96/../../../../mips-elf/lib/crt0.o:
In function `zerobss':
crt0.S:132: undefined reference to `get_mem_info'
crt0.S:136: undefined reference to `__stack'
crt0.S:136: undefined reference to `__stack'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/
2.96/../../../../mips-elf/lib/crt0.o:
In function `init':
crt0.S:172: undefined reference to `hardware_init_hook'
crt0.S:172: undefined reference to `hardware_init_hook'
crt0.S:178: undefined reference to `software_init_hook'
crt0.S:178: undefined reference to `software_init_hook'
crt0.S:185: undefined reference to `atexit'
crt0.S:202: undefined reference to `exit'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/
2.96/libgcc.a(__main.o):
In function `no symbol':
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./libgcc2.c(.text+0x130):
undefined reference to `atexit'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/
2.96/libgcc.a(frame-dwarf2.o):
In function `no symbol':
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0x1c4):
undefined reference to `abort'
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0x328):
undefined reference to `abort'
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0x534):
undefined reference to `free'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/
2.96/libgcc.a(frame-dwarf2.o):
In function `__register_frame':
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0x788):
undefined reference to `malloc'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/2.96/libgcc.a(frame-dwarf2.o):
In function `__register_frame_table':
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0x7e8):
undefined reference to `malloc'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/2.96/libgcc.a(frame-dwarf2.o):
In function `__deregister_frame_info':
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0x85c):
undefined reference to `free'
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0x88c):
undefined reference to `abort'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/2.96/libgcc.a(frame-dwarf2.o):
In function `__deregister_frame':
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0x8a4):
undefined reference to `free'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/2.96/libgcc.a(frame-dwarf2.o):
In function `frame_init':
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0xac4):
undefined reference to `malloc'
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0xae8):
undefined reference to `malloc'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/2.96/libgcc.a(frame-dwarf2.o):
In function `extract_cie_info':
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0xd94):
undefined reference to `strcmp'
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0xda8):
undefined reference to `strcmp'
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0xdd4):
undefined reference to `strlen'
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c(.text+0xde8):
undefined reference to `strcmp'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/2.96/libgcc.a(frame-dwarf2.o):
In function `decode_stack_op':
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c:480:
undefined reference to `abort'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/2.96/libgcc.a(frame-dwarf2.o):
In function `execute_cfa_insn':
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c:609:
undefined reference to `malloc'
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c:609:
undefined reference to `free'
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c:609:
undefined reference to `abort'
/home/mbuss/Compilers/GCC/gcc-mips/usr/local/lib/gcc-lib/mips-elf/2.96/libgcc.a(frame-dwarf2.o):
In function `__frame_state_for':
/home/mbuss/Compilers/GCC/sources/Gnu/gcc/gcc/./frame-dwarf2.c:609:
undefined reference to `memset'
collect2: ld returned 1 exit status



	Could someone please help me?

	Thanks.

	M.Buss.

	


  reply	other threads:[~2000-08-16 18:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-16 16:13 Marcio de Oliveira Buss
2000-08-16 18:10 ` Marcio de Oliveira Buss [this message]
2000-08-16 18:59   ` Alexandre Oliva
2000-08-17 10:52     ` Marcio de Oliveira Buss
2000-08-17 11:06       ` Alexandre Oliva
2000-08-16 21:11 Mahadev Cholachagudda

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=Pine.GSO.4.10.10008162134470.1415-100000@pinheiros.dcc.unicamp.br \
    --to=ra990898@ic.unicamp.br \
    --cc=gcc-help@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).