discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] GR standard UHD options parser module (was UHD de


From: LRK
Subject: Re: [Discuss-gnuradio] GR standard UHD options parser module (was UHD default subdevice.)
Date: Fri, 30 Dec 2011 21:59:25 -0600
User-agent: Mutt/1.4.2.3i

On Fri, Dec 30, 2011 at 07:05:41PM -0800, Josh Blum wrote:
> 
> 
> On 12/30/2011 05:20 PM, LRK wrote:
> > On Fri, Dec 30, 2011 at 12:41:48PM -0800, Josh Blum wrote:
> >>
> >> And please, tell us the errors you get on FreeBSD. They may be simple or
> >> easily fixable. Let us know!
> > 
> > 
> > This is where the UHD build stops. I have not run this down yet.
> > FreeBSD 8.0+ has it's own USB 2.0 code which works with the 3.2.2
> > build.
> > 
> > 
> > uhd/host/build/lib/convert/convert_orc.c: In function '_backup__co
> > nvert_fc32_1_to_item32_1_bswap_orc':
> > uhd/host/build/lib/convert/convert_orc.c:432: warning: comparison
> > between signed and unsigned
> > uhd/host/build/lib/convert/convert_orc.c:438: warning: comparison
> > between signed and unsigned
> > [ 20%] Building CXX object 
> > lib/CMakeFiles/uhd.dir/convert/convert_with_orc.cpp.o
> > 
> > In file included from uhd/host/include/uhd/utils/byteswap.hpp:54,
> >                  from uhd/host/lib/convert/convert_with_orc.cpp:19
> > :
> > uhd/host/include/uhd/utils/byteswap.ipp: In function 'uint32_t uhd
> > ::byteswap(uint32_t)':
> > uhd/host/include/uhd/utils/byteswap.ipp:46: error: '__builtin_bswa
> > p32' was not declared in this scope
> > uhd/host/include/uhd/utils/byteswap.ipp: In function 'uint64_t uhd
> > ::byteswap(uint64_t)':
> > uhd/host/include/uhd/utils/byteswap.ipp:50: error: '__builtin_bswa
> > p64' was not declared in this scope
> > gmake[2]: *** [lib/CMakeFiles/uhd.dir/convert/convert_with_orc.cpp.o] Error 
> > 1
> > gmake[1]: *** [lib/CMakeFiles/uhd.dir/all] Error 2
> > gmake: *** [all] Error 2
> > exit 1
> > 
> > 
> 
> What version of gcc do you have?

gcc (GCC) 4.2.2 20070831 prerelease [FreeBSD]

is installed in /usr/bin/gcc and the default.

gcc46 (FreeBSD Ports Collection) 4.6.3 20111209 (prerelease)

is installed in /usr/local/bin/gcc46 and used by some of the "ports".


I had to do the patch by hand but it does not look like the build is
checking the version or trying to use gcc before this error. The dump
is slightly different.


> The compat check may have the wrong
> version. Try this little diff if you can: http://pastebin.com/gvRkAMPe

In file included from /log/gr/gr341/uhd/host/include/uhd/utils/byteswap.hpp:54,
                 from /log/gr/gr341/uhd/host/lib/convert/convert_with_orc.cpp:19
:
/log/gr/gr341/uhd/host/include/uhd/utils/byteswap.ipp:54:37: error: libkern/OSBy
teOrder.h: No such file or directory
In file included from /log/gr/gr341/uhd/host/include/uhd/utils/byteswap.hpp:54,
                 from /log/gr/gr341/uhd/host/lib/convert/convert_with_orc.cpp:19
:
/log/gr/gr341/uhd/host/include/uhd/utils/byteswap.ipp: In function 'uint16_t uhd
::byteswap(uint16_t)':
/log/gr/gr341/uhd/host/include/uhd/utils/byteswap.ipp:57: error: 'OSSwapInt16' w
as not declared in this scope
/log/gr/gr341/uhd/host/include/uhd/utils/byteswap.ipp: In function 'uint32_t uhd
::byteswap(uint32_t)':
/log/gr/gr341/uhd/host/include/uhd/utils/byteswap.ipp:61: error: 'OSSwapInt32' w
as not declared in this scope
/log/gr/gr341/uhd/host/include/uhd/utils/byteswap.ipp: In function 'uint64_t uhd
::byteswap(uint64_t)':
/log/gr/gr341/uhd/host/include/uhd/utils/byteswap.ipp:65: error: 'OSSwapInt64' w
as not declared in this scope
gmake[2]: *** [lib/CMakeFiles/uhd.dir/convert/convert_with_orc.cpp.o] Error 1
gmake[1]: *** [lib/CMakeFiles/uhd.dir/all] Error 2
gmake: *** [all] Error 2


-- 
LRK
gr-user . ovillatx.sytes.net



reply via email to

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