RTEMS build problems

Joel Sherrill joel.sherrill at OARcorp.com
Mon Dec 22 16:45:19 UTC 2003


Ralf Corsepius wrote:

>On Mon, 2003-12-22 at 00:55, Paul Cadaret wrote:
>  
>
>>Joel,
>>The bootstrap process took a very long time to complete  -- seemed like
>>well over an hour.
>>    
>>
>Yes, running bootstrap is slow. One hour however indicates you using a
>"not necessarily fast" machine.
>
>  
>
I clocked it at about 10 minutes on the 2.4 Ghz P4 box I use.  Can grow 
higher if the
machine is under load.

>>I'm trying to build the 'host-based' version on Solaris 7 now with the
>>2.59 autoconf & 1.8 automake
>>in place.  I'm seeing the same error as I saw before.  Here's an extract:
>>
>>     a - o-optimize/watchdogremove.o
>>     a - o-optimize/watchdogtickle.o
>>     a - o-optimize/wkspace.o
>>     ranlib o-optimize/libscore.a
>>     Making all in cpu
>>     Making all in unix
>>     gcc --pipe -DHAVE_CONFIG_H   -I../../../../../.././posix/lib/include
>>     -DCPU_SYNC_IO      -Dsolaris2  -O2 -g -Wall  -o o-optimize/cpu.o -c
>>     ../../../../../../../c/src/../../cpukit/score/cpu/unix/cpu.c
>>     ../../../../../../../c/src/../../cpukit/score/cpu/unix/cpu.c:62:
>>     `FD_SETSIZE' undeclared here (not in a function)
>>     ../../../../../../../c/src/../../cpukit/score/cpu/unix/cpu.c:64:
>>     parse error before `sync_io_readfds'
>>
>>This error is caused by the fact that <sys/types.h> needs to see a
>>definition of '__EXTENTIONS__' which will
>>cause it to include <sys/select.h> where `FD_SETSIZE' lives.  However, I
>>am seeing a behavior I dont understand.
>>Here's an exerpt from the script I created to run 'configure' in the
>>'build' subdir I createed.
>>
>>       ${SHELL}  ../configure                                \
>>             --prefix=$LOCAL                                 \
>>             --enable-rtemsbsp=""                            \
>>             CFLAGS_FOR_BUILD=-D__EXTENSIONS__               \
>>             CXXFLAGS_FOR_BUILD=-D__EXTENSIONS__             \
>>             #
>>
>>I specified this definition for the top-level configure, but it doesn't
>>seem to be trickling down to the lower
>>level makefile in 
>>    
>>
>Use CFLAGS_FOR_TARGET instead of CFLAGS_FOR_BUILD or add
>-D__EXTENSIONS__ to CPU_CFLAGS in make/custom/Solaris-posix.cfg.
>
>  
>
>>Am I correct in my understanding that I should be able to build a
>>'host-based' version on Solaris-7?
>>    
>>
>Theoretically yes, but you won't get far .. 
>
>Building unix/posix for Solaris2.7 rsp. SunOS5.7 is known to be broken
>for quite a while and fixing it doesn't have a high priority.
>
>For lucky circumstances, building unix/posix under Linux is not
>affected, building under Cygwin is affected for some versions of Cygwin,
>but not all.
>
>Ralf
>
>
>  
>






More information about the users mailing list