threadglobalconstruction.c compile error when POSIX is disabled

Joel Sherrill joel.sherrill at oarcorp.com
Wed Oct 29 20:54:10 UTC 2014


On 10/29/2014 3:49 PM, Hesham Moustafa wrote:
> Hi,
>
> Sorry for the false alarm, it seems to be due to some rebasing issues.
> I forked a vanilla repo and it builds fine with/without POSIX enabled.
>
Thanks for double checking.
> Regards,
> Hesham
>
> On Wed, Oct 29, 2014 at 8:37 PM, Joel Sherrill
> <joel.sherrill at oarcorp.com <mailto:joel.sherrill at oarcorp.com>> wrote:
>
>
>     On 10/25/2014 8:57 AM, Hesham Moustafa wrote:
>>     Hi,
>>
>>     The exact error occurs with or1k port, even with --enable-posix
>>     and after Sebastian's fix commit. Any idea how to fix this?
>>
>     Can you give me your configure command?
>
>     I tried with POSIX enabled and disabled and built all tests in both
>     cases. I don't see it on sparc/sis and this should be a generic issue.
>
>     --joel
>
>>     Regards,
>>     Hesham
>>
>>     On Thu, Oct 16, 2014 at 2:04 PM, Joel Sherrill
>>     <joel.sherrill at oarcorp.com <mailto:joel.sherrill at oarcorp.com>> wrote:
>>
>>
>>
>>         On October 16, 2014 1:05:54 AM CDT, Sebastian Huber
>>         <sebastian.huber at embedded-brains.de
>>         <mailto:sebastian.huber at embedded-brains.de>> wrote:
>>         >Hello Joel,
>>         >
>>         >sorry, I didn't test this with POSIX disabled.  I fixed it
>>         like this:
>>         >
>>         >http://git.rtems.org/rtems/commit/?id=cf51c3bfa0bbc50af6e162f22da385c7da113143
>>         >
>>         >Why is there a
>>         >
>>         >/*
>>         >  *  This is kind of kludgy but it allows targets to totally
>>         ignore the
>>         >  *  optional APIs like POSIX safely.
>>         >  */
>>         >
>>         >#ifdef RTEMS_POSIX_API
>>         >#include <rtems/posix/config.h>
>>         >#else
>>         >typedef void *posix_api_configuration_table;
>>         >#endif
>>         >
>>         >in <rtems/config.h>?
>>
>>         I honestly have no idea. Must have been referenced at point.
>>
>>         Thanks for fixing this. My tree has enough going on.
>>
>>         --joel
>>
>>         >On 15/10/14 18:13, Joel Sherrill wrote:
>>         >> Hi
>>         >>
>>         >> Tripped across this when POSIX is disabled
>>         >>
>>         >> sparc-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I..
>>         >> -I../../cpukit/../../../sis/lib/include   -mcpu=cypress -O2 -g
>>         >> -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes
>>         >> -Wimplicit-function-declaration -Wstrict-prototypes
>>         -Wnested-externs
>>         >-MT
>>         >> src/libscore_a-threadglobalconstruction.o -MD -MP -MF
>>         >> src/.deps/libscore_a-threadglobalconstruction.Tpo -c -o
>>         >> src/libscore_a-threadglobalconstruction.o `test -f
>>         >> 'src/threadglobalconstruction.c' || echo
>>         >>
>>         >'../../../../../../rtems/c/src/../../cpukit/score/'`src/threadglobalconstruction.c
>>         >> In file included from
>>         >>
>>         >../../../../../../rtems/c/src/../../cpukit/score/src/threadglobalconstruction.c:25:0:
>>         >>
>>         ../../cpukit/../../../sis/lib/include/rtems/posix/config.h:140:3:
>>         >error:
>>         >> conflicting types for 'posix_api_configuration_table'
>>         >>   } posix_api_configuration_table;
>>         >>     ^
>>         >> In file included from
>>         >>
>>         ../../cpukit/../../../sis/lib/include/rtems/score/threadimpl.h:33:0,
>>         >>                   from
>>         >>
>>         >../../../../../../rtems/c/src/../../cpukit/score/src/threadglobalconstruction.c:22:
>>         >>
>>         ../../cpukit/../../../sis/lib/include/rtems/config.h:54:15: note:
>>         >> previous declaration of 'posix_api_configuration_table'
>>         was here
>>         >>   typedef void *posix_api_configuration_table;
>>         >>                 ^
>>         >> gmake[6]: *** [src/libscore_a-threadglobalconstruction.o]
>>         Error 1
>>         >> gmake[6]: Leaving directory
>>         >>
>>         `/home/joel/rtems-4.11-work/b-sis/sparc-rtems4.11/c/sis/cpukit/score'
>>         >>
>>
>>         _______________________________________________
>>         devel mailing list
>>         devel at rtems.org <mailto:devel at rtems.org>
>>         http://lists.rtems.org/mailman/listinfo/devel
>>
>>
>
>     -- 
>     Joel Sherrill, Ph.D.             Director of Research & Development
>     joel.sherrill at OARcorp.com <mailto:joel.sherrill at OARcorp.com>        On-Line Applications Research
>     Ask me about RTEMS: a free RTOS  Huntsville AL 35805
>     Support Available                (256) 722-9985
>
>

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20141029/36670aed/attachment-0002.html>


More information about the devel mailing list