[Top][All Lists]

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

Re: [Discuss-gnuradio] fusb_darwin.cc compile fails on Mac OS X Snow Le

From: Thomas Tsou
Subject: Re: [Discuss-gnuradio] fusb_darwin.cc compile fails on Mac OS X Snow Leopard with -arch x86_64
Date: Thu, 8 Oct 2009 19:59:37 -0400

On Thu, Oct 8, 2009 at 5:19 PM, Jonathan P Jacky <address@hidden> wrote:
> I am building from gnuradio-3.2.2.tar from Trac on an iMac9,1 with an
> Intel Core 2 Duo running Mac OS X 10.6.1 (Snow Leopard), XCode version
> 3.2, gcc version 4.2.1.
> I am following the directions at
> https://radioware.nd.edu/documentation/install-guides/mac-os-x
> and just got all the prerequisites from macports for this build.
> I am building one component at a time.  I built gnuradio-core (but
> with one wrinkle - see PPS below).
> The build for usrp failed, in particular the compile for
> fusb_darwin.cc failed with these error messages, among others (full
> compile command with output appears in PPPS below):
>  fusb_darwin.cc:348: error: cast from s_both<s_buffer*>* to unsigned int
> loses precision
>  fusb_darwin.cc:391: error: cast from void* to UInt32 loses precision
>  ... etc. ...

Both errors are coming from pointer casts to int types. Pointers and
long types go to 8-bytes on 64-bit builds while int stays at 4-bytes
on most systems. Using long rather than int types should fix things
though I have no way test it out. Michael may be aware of other


reply via email to

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