[MacPorts] #38732: gcc48 is broken by configure-timespec.patch
MacPorts
noreply at macports.org
Tue Apr 9 14:13:52 PDT 2013
#38732: gcc48 is broken by configure-timespec.patch
------------------------+-------------------
Reporter: howarth@… | Owner: mww@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Resolution: | Keywords:
Port: gcc48 |
------------------------+-------------------
Changes (by larryv@…):
* cc: jeremyhu@… (added)
* owner: macports-tickets@… => mww@…
Old description:
> Please see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56835. It appears
> that the unnecessary patch...[[BR]]
> [[BR]]
> https://trac.macports.org/browser/trunk/dports/lang/gcc48/files/libstdc%2B
> %2B-configure-timespec.patch [[BR]]
> [[BR]]
> is breaking std::promise on darwin.[[BR]]
> [[BR]]
>
> The alternative fix of
> http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=192335 was checked
> in to achieve the goal of using[[BR]]
> nanosleep in c++11.[[BR]]
> [[BR]]
> Note that the fix I checked in for gcc 4.8.0 defaults darwin to --enable-
> libstdcxx-time so neither that option nor your hack needs to be
> applied.[[BR]]
> The g++-fsf-4.8 compiler on fink doesn't fail the test case reported in
> PR56835 but has nanosleep declared in the object file...[[BR]]
> [[BR]]
> % cd /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-
> darwin12.3.0/libstdc++-v3/src/c++11[[BR]]
> % nm thread.o | grep nanosleep[[BR]]
> U _nanosleep[[BR]]
New description:
Please see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56835. It appears
that the unnecessary patch [[source:trunk/dports/lang/gcc48/files/libstdc
++-configure-timespec.patch|libstdc++-configure-timespec.patch]] is
breaking std::promise on darwin.
The alternative fix of
http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=192335 was checked
in to achieve the goal of using nanosleep in c++11.
Note that the fix I checked in for gcc 4.8.0 defaults darwin to --enable-
libstdcxx-time so neither that option nor your hack needs to be applied.
The g++-fsf-4.8 compiler on fink doesn't fail the test case reported in
PR56835 but has nanosleep declared in the object file...
{{{
% cd /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-
darwin12.3.0/libstdc++-v3/src/c++11[[BR]]
% nm thread.o | grep nanosleep[[BR]]
U _nanosleep[[BR]]
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/38732#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list