RES: RES: Problem when trying to build hello_world_c: more info

Fabrício de Novaes Kucinskis fabricio at dea.inpe.br
Thu Sep 29 16:23:20 UTC 2005


Joel,


You were right. It's my mistake, this is a documented issue. I'm sorry for
ask so fool question!
Thank you very much,


Fabrício.




-----Mensagem original-----
De: Joel Sherrill <joel at OARcorp.com> [mailto:joel.sherrill at OARcorp.com]
Enviada em: quinta-feira, 29 de setembro de 2005 10:27
Para: Fabrício de Novaes Kucinskis
Cc: RTEMS - Mailing List
Assunto: Re: RES: Problem when trying to build hello_world_c: more info


Fabrício de Novaes Kucinskis wrote:
> Hi again,
>
>
> I have more information about the problem. I'm almost sure the problem is
in
> the RTEMS build process. After "configure", I ran a "gmake all install"
> command. The build process took some minutes, and ended with an error:
>
> 	gmake  install-data-hook
> 	gmake[6]: Entering directory
`/opt/tharsys/sparc-rtems/c/erc32/exec/wrapup'
> 	/usr/bin/install -c -m 644 ../../../../erc32/lib/librtemscpu.a
> /opt/tharsys/sparc-rtems/erc32/lib
> 	/usr/bin/install: `../../../../erc32/lib/librtemscpu.a' and
> 				`/opt/tharsys/sparc-rtems/erc32/lib/librtemscpu.a' are the same file
> 	gmake[6]: ** [install-data-hook] Error 1
> 	gmake[6]: Leaving directory
`/opt/tharsys/sparc-rtems/c/erc32/exec/wrapup'
> 	gmake[5]: ** [install-data-am] Error 2
> 	gmake[5]: Leaving directory
`/opt/tharsys/sparc-rtems/c/erc32/exec/wrapup'
> 	gmake[4]: ** [install-am] Error 2
> 	gmake[4]: Leaving directory
`/opt/tharsys/sparc-rtems/c/erc32/exec/wrapup'
> 	gmake[3]: ** [install-recursive] Error 1
> 	gmake[3]: Leaving directory `/opt/tharsys/sparc-rtems/c/erc32/exec'
> 	gmake[2]: ** [install-recursive] Error 1
> 	gmake[2]: Leaving directory `/opt/tharsys/sparc-rtems/c/erc32'
> 	gmake[1]: ** [install-recursive] Error 1
> 	gmake[1]: Leaving directory `/opt/tharsys/sparc-rtems/c'
> 	gmake: ** [install-recursive] Error 1

My guess is that you are building in the install point.  That will not
work for RTEMS or most other GNU autoconf packages.  Build somewhere
else in the filesystem.

> I didn't notice this error on the first time I installed RTEMS 4.6.4. When
> trying to make the hello_world_c example, the gmake complain that there's
no
> Makefile.inc under RTEMS_MAKEFILE_PATH, which is right. So, my problem
> appears to be on the RTEMS build, but I don't know where, or why.
>
> Does anybody know how can I solve this problem?
> Thanks again,
>
>
> Fabrício.
>
>
>
>
> -----Mensagem original-----
> De: Fabrício de Novaes Kucinskis [mailto:fabricio at dea.inpe.br]
> Enviada em: terça-feira, 27 de setembro de 2005 16:28
> Para: RTEMS - Mailing List
> Assunto: Problem when trying to build hello_world_c
>
>
> Hi all,
>
>
> I was using RTEMS 4.0.0, and just upgraded to the 4.6.4 release. In the
> 4.0.0 version, I built applications using sparc-rtems-gcc with the
"-rtems"
> switch.
>
> After install binutils, gcc, newlib, gdb, and build the RTEMS, I tried to
> build a sample program (hello_world_c) to test the instalation, but I the
> gcc compiler didn't recognized the "-rtems" switch. I found that it isn't
> suported anymore.
>
> So, I tried to use make, but got this error message:
>
> 	Makefile:33: /Makefile.inc: No such file or directory
> 	Makefile:35: no file name for `include'
> 	Makefile:36: /make/leaf.cfg: No such file or directory
> 	make: *** No rule to make target `/make/leaf.cfg'.  Stop.
>
> I'm sure that the RTEMS_MAKEFILE_PATH is pointing to the right directory.
> What can be happening?
> Thanks in advance,
>
>
> Fabrício de Novaes Kucinskis - DEA / INPE
> -----------------------------------------
> Divisão de Eletrônica Aeroespacial
> Instituto Nacional de Pesquisas Espaciais
>


--
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985




More information about the users mailing list