public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Another crash trying to build gcc as cross compiler
@ 2000-08-16 21:11 Mahadev Cholachagudda
  0 siblings, 0 replies; 6+ messages in thread
From: Mahadev Cholachagudda @ 2000-08-16 21:11 UTC (permalink / raw)
  To: Marcio de Oliveira Buss; +Cc: gcc-help

For the similar problem, what i did was to write a linker scripts. U can
find these linker scripts in mips-elf directory.

For '__stack' problem, if you are using linker script, you need to enter as
below.

__stack = <end of ram address >. If the stack grows downword.


For 'hardware_init_hook' problems, you need to provide as below.

PROVIDE (hardware_init_hook = 0);
PROVIDE (_hardware_init_hook = 0);
PROVIDE (software_init_hook = 0);
PROVIDE (_software_init_hook = 0);

above statements should be entered into the linker script.

For other problems, u should link with the library files such as libc.a,
libg.a, libm.a etc.


Hope this would help u
with regards
mahadev

>
> 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/libg
cc.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/libg
cc.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/libg
cc.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/libg
cc.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/libg
cc.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/libg
cc.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/libg
cc.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/libg
cc.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.
>
>
>


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

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

* Re: Another crash trying to build gcc as cross compiler
  2000-08-17 10:52     ` Marcio de Oliveira Buss
@ 2000-08-17 11:06       ` Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2000-08-17 11:06 UTC (permalink / raw)
  To: Marcio de Oliveira Buss; +Cc: gcc-help

On Aug 17, 2000, Marcio de Oliveira Buss <ra990898@ic.unicamp.br> wrote:

>  But, in this case, ../libiberty is the ../src/libiberty
>  directory, and not the ../gcc/libiberty directory (remember that
>  I have invoked 'make' from gcc top level, therefore, this is the
>  hoped libiberty).

You shouldn't have run `configure' in the source tree.  This kind of
soft-linking will only work if you use a separate build tree.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: Another crash trying to build gcc as cross compiler
  2000-08-16 18:59   ` Alexandre Oliva
@ 2000-08-17 10:52     ` Marcio de Oliveira Buss
  2000-08-17 11:06       ` Alexandre Oliva
  0 siblings, 1 reply; 6+ messages in thread
From: Marcio de Oliveira Buss @ 2000-08-17 10:52 UTC (permalink / raw)
  To: gcc-help

On 16 Aug 2000, Alexandre Oliva wrote:
>
> On Aug 16, 2000, Marcio de Oliveira Buss <ra990898@ic.unicamp.br> wrote:
> >
> > 	Ok, I have discovered the problem. I have to build
> >  things in this order in order everything works fine:
> 
> Actually, `make all' in the top-level directory of the build tree
> should build everything in the right order.



	Hmmm...
	I think I have the right links from the gcc top level
 directory:


	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


	Therefore, when I invoke the 'make all' command in the
 gcc top level directory it follows those links in the make
 process. The problem appears, for example, in the case of the
 ../src/binutils directory: when 'make' enters in this directory,
 it is looking for the libiberty directory that is located in 
 ../libiberty. But, in this case, ../libiberty is the ../src/libiberty
 directory, and not the ../gcc/libiberty directory (remember that
 I have invoked 'make' from gcc top level, therefore, this is the
 hoped libiberty).
	In suma, I can build the entire gcc system only if I make
 a copy of the ../src/binutils, ../src/gas, ../src/ld,  etc.
 instead of making links. :)
	Am I right??



make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/mbuss/Compilers/GCC/sources/Gnu/src/binutils/po'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




> > 	But now, an error has been occuring when I am trying
> >  to use the cross-compiler.
> 
> Are you linking with libc, from newlib?



	Yes.


	Thanks.

	M.Buss

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

* Re: Another crash trying to build gcc as cross compiler
  2000-08-16 18:10 ` Marcio de Oliveira Buss
@ 2000-08-16 18:59   ` Alexandre Oliva
  2000-08-17 10:52     ` Marcio de Oliveira Buss
  0 siblings, 1 reply; 6+ messages in thread
From: Alexandre Oliva @ 2000-08-16 18:59 UTC (permalink / raw)
  To: Marcio de Oliveira Buss; +Cc: gcc-help

On Aug 16, 2000, Marcio de Oliveira Buss <ra990898@ic.unicamp.br> wrote:

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

Actually, `make all' in the top-level directory of the build tree
should build everything in the right order.

> 	But now, an error has been occuring when I am trying
>  to use the cross-compiler.

Are you linking with libc, from newlib?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: Another crash trying to build gcc as cross compiler
  2000-08-16 16:13 Marcio de Oliveira Buss
@ 2000-08-16 18:10 ` Marcio de Oliveira Buss
  2000-08-16 18:59   ` Alexandre Oliva
  0 siblings, 1 reply; 6+ messages in thread
From: Marcio de Oliveira Buss @ 2000-08-16 18:10 UTC (permalink / raw)
  To: gcc-help

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.

	


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

* Another crash trying to build gcc as cross compiler
@ 2000-08-16 16:13 Marcio de Oliveira Buss
  2000-08-16 18:10 ` Marcio de Oliveira Buss
  0 siblings, 1 reply; 6+ messages in thread
From: Marcio de Oliveira Buss @ 2000-08-16 16:13 UTC (permalink / raw)
  To: gcc-help

	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.	


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

end of thread, other threads:[~2000-08-17 11:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-16 21:11 Another crash trying to build gcc as cross compiler Mahadev Cholachagudda
  -- strict thread matches above, loose matches on Subject: below --
2000-08-16 16:13 Marcio de Oliveira Buss
2000-08-16 18:10 ` Marcio de Oliveira Buss
2000-08-16 18:59   ` Alexandre Oliva
2000-08-17 10:52     ` Marcio de Oliveira Buss
2000-08-17 11:06       ` Alexandre Oliva

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