[RTEMS Project] #2205: RTEMS tools don't build on MinGW due to missing <sys/queue.h>

RTEMS trac trac at rtems.org
Sat Mar 7 04:55:13 UTC 2015


#2205: RTEMS tools don't build on MinGW due to missing <sys/queue.h>
-----------------------------+---------------------
 Reporter:  sebastian.huber  |       Owner:  chrisj
     Type:  defect           |      Status:  new
 Priority:  normal           |   Milestone:  4.11
Component:  tools            |     Version:  4.11
 Severity:  blocker          |  Resolution:
 Keywords:                   |
-----------------------------+---------------------

Old description:

> Sebastian Huber at PC ~
> $ cd git-rtems-tools/
>
> Sebastian Huber at PC ~/git-rtems-tools
> $ python waf configure --prefix=/opt/rtems-4.11
> Setting top to                           : c:\MinGW\home\git-rtems-tools
> Setting out to                           : c:\MinGW\home\git-rtems-
> tools\build
> Checking for program g++,c++             : c:\mingw\bin\g++.exe
> Checking for program ar                  : c:\mingw\bin\ar.exe
> Checking for program gcc,cc              : c:\mingw\bin\gcc.exe
> Checking for header alloca.h             : not found
> Checking for header fcntl.h              : yes
> Checking for header process.h            : yes
> Checking for header stdlib.h             : yes
> Checking for header string.h             : yes
> Checking for header strings.h            : yes
> Checking for header sys/file.h           : yes
> Checking for header sys/stat.h           : yes
> Checking for header sys/time.h           : yes
> Checking for header sys/types.h          : yes
> Checking for header sys/wait.h           : not found
> Checking for header unistd.h             : yes
> Checking for header vfork.h              : not found
> Checking for function getrusage          : not found
> Checking for header sys/wait.h           : not found
> Checking for function kill               : not found
> Checking for 'msvc' (c++ compiler)       : not found
> Checking for 'g++' (c++ compiler)        : c:\mingw\bin\g++.exe
> Checking for function open64             : not found
> Checking for function stat64             : not found
> Checking for program python              : c:\Python34\python.exe
> 'configure' finished successfully (13.156s)
>
> Sebastian Huber at PC ~/git-rtems-tools
> $ python waf build install
> Waf: Entering directory `c:\MinGW\home\git-rtems-tools\build'
> [  1/142] libelf_convert.c:
> rtemstoolkit\elftoolchain\libelf\libelf_convert.m4 -
> > build\rtemstoolkit\libelf_convert.c
> [  2/142] libelf_fsize.c:
> rtemstoolkit\elftoolchain\libelf\libelf_fsize.m4 -> bu
> ild\rtemstoolkit\libelf_fsize.c
> [  3/142] libelf_msize.c:
> rtemstoolkit\elftoolchain\libelf\libelf_msize.m4 -> bu
> ild\rtemstoolkit\libelf_msize.c
> [  4/142] c: rtemstoolkit\elftoolchain\libelf\elf.c ->
> build\rtemstoolkit\elftoo
> lchain\libelf\elf.c.4.o
> In file included from ..\rtemstoolkit\elftoolchain\libelf\elf.c:27:0:
> c:\MinGW\home\git-rtems-
> tools\rtemstoolkit\elftoolchain\libelf/libelf.h:33:23: f
> atal error: sys/queue.h: No such file or directory
>  #include <sys/queue.h>
>                        ^
> compilation terminated.
> Waf: Leaving directory `c:\MinGW\home\git-rtems-tools\build'
> Build failed
>  -> task in 'elf' failed (exit status 1):
>         {task 51155184: c elf.c -> elf.c.4.o}
> ['c:\\mingw\\bin\\gcc.exe', '-pipe', '-g', '-O2', '-Ic:\\MinGW\\home
> \\git-rtems-
> tools\\build', '-Ic:\\MinGW\\home\\git-rtems-
> tools\\build\\rtemstoolkit\\elftool
> chain\\libelf', '-Ic:\\MinGW\\home\\git-rtems-
> tools\\rtemstoolkit\\elftoolchain\
> \libelf', '-Ic:\\MinGW\\home\\git-rtems-
> tools\\build\\rtemstoolkit\\elftoolchain
> \\common', '-Ic:\\MinGW\\home\\git-rtems-
> tools\\rtemstoolkit\\elftoolchain\\comm
> on', '-Ic:\\MinGW\\home\\git-rtems-tools\\build\\rtemstoolkit\\win32',
> '-Ic:\\Mi
> nGW\\home\\git-rtems-tools\\rtemstoolkit\\win32',
> '..\\rtemstoolkit\\elftoolchai
> n\\libelf\\elf.c', '-c', '-o',
> 'rtemstoolkit\\elftoolchain\\libelf\\elf.c.4.o']
>
> Sebastian Huber at PC ~/git-rtems-tools
> $

New description:

 {{{

 Sebastian Huber at PC ~
 $ cd git-rtems-tools/

 Sebastian Huber at PC ~/git-rtems-tools
 $ python waf configure --prefix=/opt/rtems-4.11
 Setting top to                           : c:\MinGW\home\git-rtems-tools
 Setting out to                           : c:\MinGW\home\git-rtems-
 tools\build
 Checking for program g++,c++             : c:\mingw\bin\g++.exe
 Checking for program ar                  : c:\mingw\bin\ar.exe
 Checking for program gcc,cc              : c:\mingw\bin\gcc.exe
 Checking for header alloca.h             : not found
 Checking for header fcntl.h              : yes
 Checking for header process.h            : yes
 Checking for header stdlib.h             : yes
 Checking for header string.h             : yes
 Checking for header strings.h            : yes
 Checking for header sys/file.h           : yes
 Checking for header sys/stat.h           : yes
 Checking for header sys/time.h           : yes
 Checking for header sys/types.h          : yes
 Checking for header sys/wait.h           : not found
 Checking for header unistd.h             : yes
 Checking for header vfork.h              : not found
 Checking for function getrusage          : not found
 Checking for header sys/wait.h           : not found
 Checking for function kill               : not found
 Checking for 'msvc' (c++ compiler)       : not found
 Checking for 'g++' (c++ compiler)        : c:\mingw\bin\g++.exe
 Checking for function open64             : not found
 Checking for function stat64             : not found
 Checking for program python              : c:\Python34\python.exe
 'configure' finished successfully (13.156s)

 Sebastian Huber at PC ~/git-rtems-tools
 $ python waf build install
 Waf: Entering directory `c:\MinGW\home\git-rtems-tools\build'
 [  1/142] libelf_convert.c:
 rtemstoolkit\elftoolchain\libelf\libelf_convert.m4 -
 > build\rtemstoolkit\libelf_convert.c
 [  2/142] libelf_fsize.c: rtemstoolkit\elftoolchain\libelf\libelf_fsize.m4
 -> bu
 ild\rtemstoolkit\libelf_fsize.c
 [  3/142] libelf_msize.c: rtemstoolkit\elftoolchain\libelf\libelf_msize.m4
 -> bu
 ild\rtemstoolkit\libelf_msize.c
 [  4/142] c: rtemstoolkit\elftoolchain\libelf\elf.c ->
 build\rtemstoolkit\elftoo
 lchain\libelf\elf.c.4.o
 In file included from ..\rtemstoolkit\elftoolchain\libelf\elf.c:27:0:
 c:\MinGW\home\git-rtems-
 tools\rtemstoolkit\elftoolchain\libelf/libelf.h:33:23: f
 atal error: sys/queue.h: No such file or directory
  #include <sys/queue.h>
                        ^
 compilation terminated.
 Waf: Leaving directory `c:\MinGW\home\git-rtems-tools\build'
 Build failed
  -> task in 'elf' failed (exit status 1):
         {task 51155184: c elf.c -> elf.c.4.o}
 ['c:\\mingw\\bin\\gcc.exe', '-pipe', '-g', '-O2', '-Ic:\\MinGW\\home\\git-
 rtems-
 tools\\build', '-Ic:\\MinGW\\home\\git-rtems-
 tools\\build\\rtemstoolkit\\elftool
 chain\\libelf', '-Ic:\\MinGW\\home\\git-rtems-
 tools\\rtemstoolkit\\elftoolchain\
 \libelf', '-Ic:\\MinGW\\home\\git-rtems-
 tools\\build\\rtemstoolkit\\elftoolchain
 \\common', '-Ic:\\MinGW\\home\\git-rtems-
 tools\\rtemstoolkit\\elftoolchain\\comm
 on', '-Ic:\\MinGW\\home\\git-rtems-tools\\build\\rtemstoolkit\\win32',
 '-Ic:\\Mi
 nGW\\home\\git-rtems-tools\\rtemstoolkit\\win32',
 '..\\rtemstoolkit\\elftoolchai
 n\\libelf\\elf.c', '-c', '-o',
 'rtemstoolkit\\elftoolchain\\libelf\\elf.c.4.o']

 Sebastian Huber at PC ~/git-rtems-tools
 $
 }}}

--

Comment (by amar):

 Formatting.

--
Ticket URL: <http://devel.rtems.org/ticket/2205#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list