RTEMS Source Builder build error
ruizx
ruizx at qq.com
Thu Aug 29 07:28:47 UTC 2013
Thanks joel and Chris,
the error message is copy from the log file:l-powerpc.txt.
When this error occured, the build process hanged.
The source file examples/.libs/lt-elements.c and examples/.libs/lt-outline.c are not in the source file tar package.
In the files, there are notes like this:
/* examples/.libs/lt-elements.c - temporary wrapper executable for .libs/elements
Generated by libtool (GNU libtool) 2.4 Debian-2.4-2ubuntu1
The examples/elements program cannot be directly executed until all the libtool
libraries that it depends on are installed.
This wrapper executable should never be moved out of the build directory.
If it is, it will not operate correctly.
*/
It maybe the expat's build logical issue in Cygwin.
On Thursday, August 29, 2013 2:29 PM Joel Sherrill wrote:
> My guess is that expat is missing some conditional logic and is using something that is not available on cygwin.
>
> Can you look at the source at the indicated line and see if there are implementation choices there.
>
> --joel
>
> Chris Johns <chrisj at rtems.org> wrote:
>
>
> ruizx wrote:
>> Hi all,
>> I try to build 4.11 rtems-powerpc cross compiler in Cygwin.
>> When compiling expat, the error occoured.
>>
>> examples/.libs/lt-elements.c: In function 'main':
>> examples/.libs/lt-elements.c:315:3: warning: implicit declaration of function '_spawnv' [-Wimplicit-function-declaration]
>> examples/.libs/lt-elements.c:315:19: error: '_P_WAIT' undeclared (first use in this function)
>> examples/.libs/lt-elements.c:315:19: note: each undeclared identifier is reported only once for each function it appears in
>>
>> The compile command is
>> ../source-builder/sb-set-builder --log=l-powerpc.txt --prefix=$HOME/development/rtems/4.11 4.11/rtems-powerpc
>>
>> I find this mail form gnu described the same error, but the method is not usable.
>> http://lists.gnu.org/archive/html/libtool/2008-12/msg00056.html
>>
>> Anyone meet this error? How to solve it?
>>
>
> I have not seen this error. I have not been building in Cygwin for a
> while because I could not get it to be stable enough to build all the tools.
>
> As a test can you add '-nno-cygwin' to the optflags in
> source-builder/sb/defaults.mc ? I have no idea what effects this will
> have on the build.
optflags '-mno-cygwin' have no use:(
checking for i686-pc-mingw32-gcc... gcc -O2 -pipe -mno-cygwin -I/cygdrive/d/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-Administrator/4.11/rtems-powerpc/cygdrive/d/development/rtems/4.11/include -L/cygdrive/d/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-Administrator/4.11/rtems-powerpc/cygdrive/d/development/rtems/4.11/lib
checking whether the C compiler works... no
configure: error: in `/cygdrive/d/development/rtems/src/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
> Chris
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
> .
More information about the users
mailing list