discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Error when build GNU Radio using cywin64


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Error when build GNU Radio using cywin64
Date: Wed, 29 Jul 2015 13:15:54 -0400

On Wed, Jul 29, 2015 at 1:03 PM, Tian Alvin <address@hidden> wrote:
Hi Tom,

Thanks for your help! I am very new to GNU Radio and these linux like stuff. I tried your suggestion of adding "#include <sched.h>" to thread.cc file, it still has the same error.

I checked the Cygwin website for glibc, and I found the following explanations:

6.7.

Where is glibc?

Cygwin does not provide glibc. It uses newlib instead, which provides much (but not all) of the same functionality. Porting glibc to Cygwin would be difficult.

It seems that Cygwin doesn't have glibc. For gcc version, it is: 4.9.3-1.

Totally lost and stucked at this step.... Any other suggestions to solve this error?

Thank you very much in advance!

Best,
Juan


Yeah, I didn't think sched.h would fix anything. I had a look and confirmed that pthread.h already pulls that in.

So the problem must be related to making glibc-specific calls that are not ported to newlib.

You can go into thread.cc and make that last #else into a #elif 0 to turn that section off. Then make another section under #else and put all of those functions as either nop's or that return NULL/0. See the OSX section of that file for some inspiration.

Another route would be to install a VM running Linux and forget about Cygwin...

Tom


 
On Wed, Jul 29, 2015 at 3:30 PM, Tom Rondeau <address@hidden> wrote:
On Mon, Jul 27, 2015 at 6:28 AM, Tian Alvin <address@hidden> wrote:
Dear list,

I have met some errors when I installed GNU Radio, I have followed the below instructions to installed GNU Radio:

I installed all the packages that needed, then I start to build GNU Radio, I have no problem to run the below commands:
$ cd gnuradio-3.7.2
$ mkdir build
$ cd 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 ../

But when I do the next: "make", I encountered the below error:

内嵌图片
            1
内嵌图片
            2

 Could you please help? 


Best,
A

What version of glibc and gcc are you using? Those macros like CPU_ZERO were added over 10 years ago, but, well, Cygwin... Might be something to do with portability issues of the affinity stuff having problems on that platform.

One quick thing to try is to add "#include <sched.h>" to gnuradio-runtime/lib/thread/thread.cc on line 246 to see if that helps.

Tom





reply via email to

[Prev in Thread] Current Thread [Next in Thread]