[Issue 2182] Exceptions don't work on FreeBSD

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 5 20:40:49 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2182


dvdfrdmn at users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WONTFIX




------- Comment #7 from dvdfrdmn at users.sf.net  2008-08-05 22:40 -------
Yes.  The problem is that the ports gcc compilers do not have a patch that is
applied to the FreeBSD system compiler.  The resulting gdc links executables in
a way that is incompatible with the system startup routines.  I think the g++
compiler would have the same problem.

Adding the following to gcc/config/freebsd-spec.h may fix it.

#if defined(HAVE_LD_EH_FRAME_HDR)
#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
#endif

You should also remove both instances of --disable-shared from the configure
options.

Without making any changes to the build, a runtime workaround is to add
-Wl,--eh-frame-hdr to the link command line.

I am marking this issue as WONTFIX because it is a problem in the ports
library.


-- 



More information about the D.gnu mailing list