Opened 10 years ago

Closed 10 years ago

#42809 closed defect (worksforme)

uhd: error: no matching constructor for initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')

Reported by: harand20@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: uhd

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

New bee here. Sorry if it is duplicated. I just change my HDD to SSD and reinstall my system, yet When I typed sudo port install gnuradio +full and I cannot install UHD, thus it cannot install gnuradio. I searched on line and it seems quite similar to this ticket: #41004. Yet I found no result about it. I attached the log. Thanks for any help.

Attachments (1)

main.log (198.8 KB) - added by harand20@… 10 years ago.

Download all attachments as: .zip

Change History (9)

Changed 10 years ago by harand20@…

Attachment: main.log added

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

Description: modified (diff)
Keywords: gnuradio removed
Owner: changed from macports-tickets@… to michaelld@…
Port: uhd added
Summary: Fail to install gnuradio bacause of UHD on Marvericksuhd: error: no matching constructor for initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')

The relevant error in the log seems to be:

:info:build /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:961:64: error: no matching constructor for initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')
:info:build     explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
:info:build                                                                ^  ~

#41004 was also an error about boost, but a different error, so this will probably require a different fix.

comment:2 in reply to:  1 Changed 10 years ago by harand20@…

Replying to ryandesign@…: Thank you for your help. Well Today I uninstalled Xcode 5.1 and command lint tool 5.1 since it is the newest update released yesterday . When I installed UHD and gnuradio in HDD in the old day, I came across no problem. So I reinstalled Xcode and command line to 5.0.2 and it works now. I guess the problem might be caused the update of Xcode and command line tool since yesterday(March 10). I hope this could give you guys some hint about how to solve this problem. I will not upgrade Xcode until this problem solved.

The relevant error in the log seems to be:

:info:build /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:961:64: error: no matching constructor for initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')
:info:build     explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
:info:build                                                                ^  ~

#41004 was also an error about boost, but a different error, so this will probably require a different fix.

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

I just installed Xcode 5.1 (on 10.8); I'll try building UHD now & see if I get any errors.

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

Yes; I get the same error. Looking into it.

comment:5 in reply to:  4 Changed 10 years ago by harand20@…

Replying to michaelld@…:

Yes; I get the same error. Looking into it.

My system is 10.9, however I guess the problem is not the system. BTW, if I have uhd and gnuradio on, dos it have any impact if I upgrade the xcode? Is it gonna function well ?

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

It's a general problem with the new Xcode and Boost. UHD and GNU Radio make extensive use of Boost, and thus none of them compile using the new Xcode.

If you already have these installed and you upgrade Xcode, everything should continue working. It's just that you won't be able to upgrade to newer versions until we figure out this issue and get it fixed.

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

Actually, it looks like a fix was added to boost in r117769 ... so, do:

sudo port selfupdate
sudo port upgrade outdated

and you should be able to install GNU Radio (and UHD).

BTW> You no longer need the +full variant; it is integrated into the default install.

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

Resolution: worksforme
Status: newclosed

UHD works for me now with r117769, on both 10.8 and 10.9, when using Xcode 5.1. So, I'm closing this ticket as "works for me now" ;)

Note: See TracTickets for help on using tickets.