# Demo\_GCC build fails on Centos 8

**URL:** <https://forums.freertos.org/t/demo-gcc-build-fails-on-centos-8/12846>\
**Category:** Kernel\
**Created:** [June 14, 2021, 3:45pm UTC](https://forums.freertos.org/t/demo-gcc-build-fails-on-centos-8/12846 "2021-06-14T15:45:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![radlyeel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/radlyeel/32/1306_2.png) [@radlyeel](https://forums.freertos.org/u/radlyeel)\
**Post date:** [June 14, 2021, 3:45pm UTC](https://forums.freertos.org/t/demo-gcc-build-fails-on-centos-8/12846/1 "2021-06-14T15:45:57Z")

</div>

I would like to create an emulator for an existing product, and have chosen CentOS 8.3 as the emulator host (running in a Docker image, FWIW). I downloaded FreeRTOSv202104.00 and when I run ‘make’ on the Demo/Posix\_GCC, make fails with

```auto
/wxsat/FreeRTOSv202104.00/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c: In function 'prvSetupSignalsAndSchedulerPolicy':
/wxsat/FreeRTOSv202104.00/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c:528:28: error: incompatible type for argument 3 of 'pthread_sigmask'
                            *&xSchedulerOriginalSignalMask );
                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/signal.h:359,
                 from /wxsat/FreeRTOSv202104.00/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c:53:
/usr/include/bits/sigthread.h:33:31: note: expected '__sigset_t * restrict' {aka 'struct <anonymous> * restrict'} but argument is of type 'sigset_t' {aka 'struct <anonymous>'}
        __sigset_t *__ restrict __oldmask)__THROW;
        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
make: *** [Makefile:79: build//wxsat/FreeRTOSv202104.00/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.o] Error 1

```

While I am digging into this, I wonder if it’s a known problem with a known solution?

I have gcc v8.4.1, make 4.2.1, and libpcap-devel 1.9.1 (which the startup documentation says should be satisfactory).

---

<div class="post-metadata">

**Author:** ![radlyeel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/radlyeel/32/1306_2.png) [@radlyeel](https://forums.freertos.org/u/radlyeel)\
**Post date:** [June 14, 2021, 3:59pm UTC](https://forums.freertos.org/t/demo-gcc-build-fails-on-centos-8/12846/2 "2021-06-14T15:59:04Z")

</div>

Okay, that was too easy. Line 528 of `Source/portable/ThirdParty/GCC/Posix/port.c` had an extraneous \* in front of `&xSchedulerOriginalSignalMask`. I removed that, re-ran make, ran ./posix\_demo and all is well. I don’t know who wants to change that in the repository; I don’t. 🙂

---

<div class="post-metadata">

**Author:** ![hs2](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@hs2](https://forums.freertos.org/u/hs2)\
**Post date:** [June 14, 2021, 4:23pm UTC](https://forums.freertos.org/t/demo-gcc-build-fails-on-centos-8/12846/3 "2021-06-14T16:23:17Z")

</div>

Thanks ! It’s already fixed in the repo since Jan 8, 2021 / FreeRTOS V10.4.4

---

<div class="post-metadata">

**Author:** ![radlyeel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/radlyeel/32/1306_2.png) [@radlyeel](https://forums.freertos.org/u/radlyeel)\
**Post date:** [June 14, 2021, 9:43pm UTC](https://forums.freertos.org/t/demo-gcc-build-fails-on-centos-8/12846/4 "2021-06-14T21:43:59Z")

</div>

Great| Interesting filenaming–one would expect “FreeRTOSv202104.00” to contain changes from January 2021. I didn’t think about looking for a Git url.
