[Bug 246488] gcc-built binary crashes in std::ios_base::Init::Init()

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 18 20:48:49 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246488

--- Comment #9 from Mark Millard <marklmi26-fbsd at yahoo.com> ---
(In reply to Mark Millard from comment #8)

I've never made a FreeBSD port force a gcc to be
libc++ based but I have done such in Makefiles
of my own software on FreeBSD. I used (extracted
examples):

CXX=            g++9 -v -std=c++17 -Wno-psabi -nostdinc -nostdinc++
-I/usr/include/c++/v1 -I/usr/include

and for use in linking:

LDCXX=          -nodefaultlibs -lc++ -lcxxrt -lthr -lm -lc -lgcc_s

This gives a hint at the options I'd expect to
be in use (other than -v and -std=...).

When I looked around it did not appear to me that the
FreeBSD ports infrastructure was set up to deal with
g++*'s using libc++ --only with clang++ dealing with
either libc++ or libstdc++ .

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-toolchain mailing list