RTEMS Source Builder build error

Chris Johns chrisj at rtems.org
Sat Aug 31 02:17:52 UTC 2013


Rui Zhengxin wrote:
> Hi Chris,
>
> I find if I run the sb-set-builder  command with the option "--build=i686-pc-cygwin",
> the issue not occur.
> If not set this option, the default value is --build=i686-pc-mingw32.

This seems to be correct. I am not sure why I did this. I suppose I felt 
no one would want to use cygwin native binaries when you can have native 
windows binaries. If this is wrong I am happy to remove and have cygwin 
build cygwin executables.

> The build process in Cygwin is too long.

Yes it is. This is the overhead of the cygwin POSIX emulation. As stated 
before the number sh execs adds up.

>  From the MinGW preinstalled cross compiler set, I find that the powerpc-rtems4.11-gcc configuration is
> --build=i386-pc-linux-gnu --host=i686-pc-mingw32

My tools are built on FreeBSD and not Linux. I am not sure which tools 
you are referencing.

> It seems that the cross compiler is not build by Cygwin or MinGW32, may by a Linux PC.

RSB built binaries Alan mentioned are built on FreeBSD.

> I try to run sb-set-builder on my Centos with the option "--host=i686-pc-mingw32",
> but this error occurs,
>
> checking for i686-pc-mingw32-gcc... i686-pc-mingw32-gcc -O2 -pipe -I/home/ruizx/mpc8309/rtems/rtems-builder/rtems-source-builder/rtems/build/tmp/sb-ruizx/4.11/rtems-powerpc/home/ruizx/development/rtems/4.11/include -L/home/ruizx/mpc8309/rtems/rtems-builder/rtems-source-builder/rtems/build/tmp/sb-ruizx/4.11/rtems-powerpc/home/ruizx/development/rtems/4.11/lib
> checking whether the C compiler works... no
> configure: error: in `/home/ruizx/mpc8309/rtems/rtems-builder/rtems-source-builder/rtems/build/expat-2.1.0-i686-pc-mingw32-1/expat-2.1.0-i686-pc-mingw32-1-2.1.0/expat-2.1.0':
> configure: error: C compiler cannot create executables
>
> How to use Centos instead of Cygwin to build the cross compiler runing on MinGW?
>

I reviewed the documentation and there is nothing on doing this so I 
have updated the documentation here ...

http://www.rtems.org/ftp/pub/rtems/people/chrisj/source-builder/source-builder.html#_cross_building

I hope this will help.

Chris





More information about the users mailing list