# Cygwin compile of 3.7.8

**URL:** <https://www.ruby-forum.com/t/cygwin-compile-of-3-7-8/243123>\
**Category:** GNU Radio\
**Created:** [August 24, 2015, 4:56pm UTC](https://www.ruby-forum.com/t/cygwin-compile-of-3-7-8/243123 "2015-08-24T16:56:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [August 24, 2015, 4:56pm UTC](https://www.ruby-forum.com/t/cygwin-compile-of-3-7-8/243123/1 "2015-08-24T16:56:01Z")

</div>

Has anyone had any luck compiling the latest 3.7.8 on cygwin? I’m  
running  
into the following:

[14%] Built target pygen\_python\_volk\_modtool\_95e3e  
[14%] Built target pmt\_generated  
[15%] Built target gnuradio-pmt  
Scanning dependencies of target gnuradio-runtime  
[15%] Building CXX object  
gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/thread/thread.cc.o  
/home/matt/src/gnuradio-3.7.8/gnuradio-runtime/lib/thread/thread.cc:245:23:  
fatal error: sys/prctl.h: No such file or directory  
#include \<sys/prctl.h\>  
^  
compilation terminated.

I don’t believe sys/prctl.h exists in cygwin (or even all flavors of  
unix). Am I missing something obvious?

---

<div class="post-metadata">

**Author:** ![Matt\_Dunford](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@Matt\_Dunford](https://www.ruby-forum.com/u/Matt_Dunford)\
**Post date:** [August 28, 2015, 6:38am UTC](https://www.ruby-forum.com/t/cygwin-compile-of-3-7-8/243123/2 "2015-08-28T06:38:11Z")

</div>

I got it compiled (if anyone is interested) with the attached rough  
patch.  
Here are the steps I took:

# compile latest Cheetah

wget  
[https://pypi.python.org/packages/source/C/Cheetah/Cheetah-2.4.4.tar.gz](https://pypi.python.org/packages/source/C/Cheetah/Cheetah-2.4.4.tar.gz)  
tar -zxf Cheetah-2.4.4.tar.gz  
cd Cheetah-2.4.4  
python setup.py build  
python setup.py install

# compile gnuradio

GNUR=gnuradio-3.7.8  
wget [http://gnuradio.org/releases/gnuradio/$GNUR.tar.gz](http://gnuradio.org/releases/gnuradio/$GNUR.tar.gz)  
tar -zxf $GNUR.tar.gz

# apply patch

[-d $GNUR/build] || mkdir $GNUR/build  
cd $GNUR/build

cmake   
-DENABLE\_DEFAULT=False   
-DENABLE\_VOLK=True   
-DENABLE\_GNURADIO\_RUNTIME=True   
-DENABLE\_GR\_BLOCKS=True   
-DENABLE\_GR\_FFT=True   
-DENABLE\_GR\_FILTER=True   
-DENABLE\_GR\_ANALOG=True   
-DENABLE\_GR\_AUDIO=True   
-DENABLE\_GR\_CHANNELS=True   
-DENABLE\_GR\_CTRLPORT=True   
-DENABLE\_GR\_DIGITAL=True   
-DENABLE\_GR\_FCD=False   
-DENABLE\_GR\_FEC=True   
-DENABLE\_GR\_NOAA=True   
-DENABLE\_GR\_PAGER=True   
-DENABLE\_GR\_VOCODER=True   
-DENABLE\_GR\_WAVELET=True   
-DENABLE\_GR\_UTILS=True   
-DENABLE\_GRC=True   
-DENABLE\_GR\_DTV=True   
-DENABLE\_GR\_ATSC=True   
-DENABLE\_GR\_VIDEO\_SDL=True   
-DENABLE\_PYTHON=True   
..  
make  
make install  
export PYTHONPATH=/usr/local/lib/python2.7/site-packages  
gnuradio-companion
