Opened 10 years ago

Closed 10 years ago

Last modified 7 weeks ago

#41004 closed defect (fixed)

Failed to build uhd on Mavericks

Reported by: carlesfernandez (Carles Fernandez) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc: ken@…, venkyne1984@…
Port: uhd

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Installing the uhd port fails during the build stage on a fresh install of MacPorts 2.2.1 on OS X 10.9

$ sudo port install uhd
--->  Computing dependencies for uhd
--->  Fetching archive for uhd
--->  Attempting to fetch uhd-release_003_005_004_0+docs+examples+full+libusb+manual+python27+test.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/uhd
--->  Attempting to fetch uhd-release_003_005_004_0+docs+examples+full+libusb+manual+python27+test.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/uhd
--->  Attempting to fetch uhd-release_003_005_004_0+docs+examples+full+libusb+manual+python27+test.darwin_13.x86_64.tbz2 from http://packages.macports.org/uhd
--->  Fetching distfiles for uhd
--->  Verifying checksums for uhd
--->  Extracting uhd
--->  Configuring uhd
--->  Building uhd
Error: org.macports.build for port uhd returned: command execution failed
Please see the log file for port uhd for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_uhd/uhd/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port uhd failed

Attachments (1)

main.log (253.2 KB) - added by carlesfernandez (Carles Fernandez) 10 years ago.
log file

Download all attachments as: .zip

Change History (20)

Changed 10 years ago by carlesfernandez (Carles Fernandez)

Attachment: main.log added

log file

comment:1 Changed 10 years ago by carlesfernandez (Carles Fernandez)

Cc: carles.fernandez@… added

Cc Me!

comment:2 Changed 10 years ago by michaelld (Michael Dickens)

So ... why did you -have- to update, Carles? :)

Thanks for reporting the issue. I'll look into this issue ASAP, but be patient since I won't be updating my primary work computer to 10.9 until Qt4 works with it (getting closer, from what I hear) so I have to create an external 10.9 boot disk to handle this.

comment:3 Changed 10 years ago by mf2k (Frank Schima)

Cc: michaelld@… carles.fernandez@… removed
Description: modified (diff)
Keywords: mavericks added
Owner: changed from macports-tickets@… to michaelld@…

In the future, please use WikiFormatting.

comment:4 Changed 10 years ago by carlesfernandez (Carles Fernandez)

Hi Michael,

obviously, it is GNU Radio what I have to update :)

I've found problems with Qt4 (there is already a ticket for that, #40852) and UHD, I see that you are aware of both problems and working on them. Thanks for everything!

Best regards, Carles

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 10 years ago by ken@…

Cc: ken@… added

Cc Me!

comment:6 Changed 10 years ago by ken@…

I got q4 working on Mavericks with the latest run of patches. But gnr-companion stop working after Mavericks :\ Is there an eta on this fix?

Last edited 10 years ago by ken@… (previous) (diff)

comment:7 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:8 Changed 10 years ago by venkyne1984@…

Cc venkyne1984@…

can you please put me in the loop? I too am facing issues while installing uhd for gnu radio. In case any of you have found a different way of getting gnu radio working on mavericks with hardware support please let me know.

comment:9 Changed 10 years ago by michaelld (Michael Dickens)

Should be fixed in r112869, which should be live by 11:45 PM/US/ET ~30 minutes from now. You'll want to do:

sudo port clean uhd uhd-devel
sudo port selfupdate

before installing uhd or uhd-devel. The patches should work for both ports, and are only used if building for libc++, regardless of compiler.

I'm going to leave this ticket open until I hear some positive feedback or a few weeks pass.

comment:10 in reply to:  8 Changed 10 years ago by larryv (Lawrence Velázquez)

Replying to venkyne1984@…:

Cc venkyne1984@…

can you please put me in the loop?

You need to click the “CcMe!” button above to be Cc’d on tickets.

comment:11 Changed 10 years ago by ken@…

Ken$ sudo port install uhd

Error: Port uhd not found

???

Also, as a side note: for some reason I can't compile UHD drivers from source. Compilation fails with undefined reference in call to boost library function. Any ideas on how to tackle this? I've reinstalled the boost library from macports and tried other compilers.

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:12 Changed 10 years ago by slarew

Cc: stephen@… added

Cc Me!

comment:13 Changed 10 years ago by carlesfernandez (Carles Fernandez)

$ sudo port selfupdate
$ sudo port upgrade outdated
$ sudo port clean uhd
$ sudo port install uhd
--->  Computing dependencies for uhd
--->  Fetching archive for uhd
--->  Attempting to fetch uhd-release_003_005_004_0+docs+examples+full+libusb+manual+python27+test.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/uhd
--->  Attempting to fetch uhd-release_003_005_004_0+docs+examples+full+libusb+manual+python27+test.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/uhd
--->  Attempting to fetch uhd-release_003_005_004_0+docs+examples+full+libusb+manual+python27+test.darwin_13.x86_64.tbz2 from http://packages.macports.org/uhd
--->  Fetching distfiles for uhd
--->  Verifying checksums for uhd
--->  Extracting uhd
--->  Configuring uhd
--->  Building uhd
Error: org.macports.build for port uhd returned: command execution failed
Please see the log file for port uhd for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_uhd/uhd/main.log

Checking the log:

:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_uhd/uhd/work/uhd-release_003_005_004/host/lib/usrp/dboard_id.cpp:19:
:info:build /opt/local/include/boost/lexical_cast.hpp:2347:34: error: excess elements in scalar initializer
:info:build                 interpreter_type interpreter(buf, buf + stream_trait::len_t::value + 1);
:info:build                                  ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/include/boost/lexical_cast.hpp:2519:29: note: in instantiation of member function 'boost::detail::lexical_cast_do_cast<to_hex<unsigned short>, std::__1::basic_string<char> >::lexical_cast_impl' requested here
:info:build         return caster_type::lexical_cast_impl(arg);
:info:build                             ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_uhd/uhd/work/uhd-release_003_005_004/host/lib/usrp/dboard_id.cpp:54:41: note: in instantiation of function template specialization 'boost::lexical_cast<to_hex<unsigned short>, std::__1::basic_string<char> >' requested here
:info:build         return dboard_id_t::from_uint16(boost::lexical_cast<to_hex<boost::uint16_t> >(string));
:info:build                                         ^
:info:build 2 errors generated.

It seems that the patch has not been applied ... :-(

When applied manually to the source, I can build uhd using cmake ../ -DCMAKE_CXX_COMPILER=/usr/bin/clang++

comment:14 Changed 10 years ago by michaelld (Michael Dickens)

There has been some work on the CMake PortGroup, which uhd uses for building, over the weekend. And, my fix from last night works with the MacPorts SVN trunk, not the release. I just committed r112886, which should work for everyone; it just patches this issue no matter the c++ runtime being used (libc++ or libstdc++). I will work on a more robust solution which just removes the issue altogether, but for now this should do. It should be live by about 8:20 AM/US/ET ("new" time), after which do:

sudo port clean uhd uhd-devel
sudo port selfupdate

and then install uhd or uhd-devel as you see fit. Hopefully the uhd port will be found now, too! I will be working on GNU Radio on 10.9 tomorrow, but as far as I hear it has no major issues.

comment:15 Changed 10 years ago by carlesfernandez (Carles Fernandez)

Now uhd-devel works fine. Thank you Michael for your time!

comment:16 Changed 10 years ago by venkyne1984@…

Cc: venkyne1984@… added

Cc Me!

comment:17 Changed 10 years ago by venkyne1984@…

Works for me as well, thanks Michael! On a related note, I continued installing gnu radio after uhd-devel, but am again facing an issue. I have raised a new ticket for that (#41158) but was wondering if any of you (Carles?) faced a similar issue. Thanks!

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:18 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

Closing as fixed per above.

comment:19 Changed 7 weeks ago by slarew

Cc: slarew removed
Note: See TracTickets for help on using tickets.