[AWS] Building for VxWorks target problem

Antoine Heijde, van der aheijde at gmail.com
Wed Aug 18 13:58:20 CEST 2010


Hello Pascal,
Thanks for the quick response!

See for my answers below:

Best regards,
Antoine


2010/8/18 Pascal Obry <pascal.obry at gmail.com>
>
> Antoine,
>
> > I first used the latest (2010) downloadable version but I have the same
> > problem with the SVN repository.
> >
> > Command to build:
> > $ make TARGET=powerpc-wrs-vxworks setup build
>
> Looks correct.
>
> > Problems during the build:
> > - Error about the style checks "-gnaty3abBcefhiIklmnoprstx" as suggested
> > in an other mail in this list I removed this.
>
> Right.

Good!

>
> > - Problems about missing /string.h, stdlib.h, errno.h/ and others. Found
> > that this was a problem for the zlib. So I modified the file/
> > /aws/include/zlib/zlib.gpr/ to have the source directories point to the
> > correct location in the VxWorks directory.
>
> It should also be possible to fix that by using proper VxWorks
> environment variable. Looks at the C VxWorks compiler setting.

I will have a look to that as well. That should be the better solution.

>
> > - Missing ws2tcpip.h, this is a little bit strange because it is a file
> > for the windows build (well, the build machine is a windows XP machine).
>
> Hum, probably a confusion between host/target! This should not be needed
> when the target is VxWorks.
>

Well actually this is the problem because the build will halt on this:

Here is a part of my build output:
powerpc-wrs-vxworks-gcc -c -gnat05 -O2 -gnatws -gnatn memory_streams.adb
ccppc -c -O2 gai_strerror.c
D:/aws/src/win32/gai_strerror.c:32:22: warning: ws2tcpip.h: No such
file ordirectory
D:/aws/src/win32/gai_strerror.c: In function `AWS_gai_strerror':
D:/aws/src/win32/gai_strerror.c:38: error: `EAI_AGAIN' undeclared
(first use in this function)
D:/aws/src/win32/gai_strerror.c:38: error: (Each undeclared identifier
is reported only once
D:/aws/src/win32/gai_strerror.c:38: error: for each function it appears in.)
D:/aws/src/win32/gai_strerror.c:40: error: `EAI_BADFLAGS' undeclared
(firstuse in this function)
D:/aws/src/win32/gai_strerror.c:42: error: `EAI_FAIL' undeclared
(first usein this function)
D:/aws/src/win32/gai_strerror.c:44: error: `EAI_FAMILY' undeclared
(first use in this function)
D:/aws/src/win32/gai_strerror.c:46: error: `EAI_MEMORY' undeclared
(first use in this function)
D:/aws/src/win32/gai_strerror.c:48: error: `EAI_NODATA' undeclared
(first use in this function)
D:/aws/src/win32/gai_strerror.c:52: error: `EAI_NONAME' undeclared
(first use in this function)
D:/aws/src/win32/gai_strerror.c:55: error: `EAI_SERVICE' undeclared
(first use in this function)
D:/aws/src/win32/gai_strerror.c:57: error: `EAI_SOCKTYPE' undeclared
(firstuse in this function)
D:/aws/src/win32/gai_strerror.c: In function `socket_strerror':

Is there a way to prevent compiling gai_strerror.c?

In /aws/src/src.gpr I noticed:
 case Shared.OS is
      when "Windows_NT" =>
         for Source_Dirs use Project'Source_Dirs & ("poll", "win32");
      when others =>
         null;
   end case;

So is there a way to stop this build path? Instead of disabling it here?

> > Also modified the file /makefile.conf/ to set the TARGET
> > = powerpc-wrs-vxworks and DEFAULT_TARGET = vxworks. But still have the
> > some problems.
>
> Should not be needed. The makefile.setup generated during the setup is
> taking precedence.

Good to know!

>
> > Does anyone have a clue what can be wrong? Or does have anyone some
> > experience in building AWS for VxWorks?
>
> Don't know... You did not described the problem! What is going wrong?
>
> Pascal.
>
> --
>
> --|------------------------------------------------------
> --| Pascal Obry                           Team-Ada Member
> --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
> --|------------------------------------------------------
> --|    http://www.obry.net  -  http://v2p.fr.eu.org
> --| "The best way to travel is by means of imagination"
> --|
> --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
>
> _______________________________________________
> AWS mailing list
> AWS at lists.adacore.com
> /no-more-mailman.html


More information about the AWS mailing list