Can't build 10.0-STABLE on amd64

Milan Obuch freebsd-stable at dino.sk
Tue Feb 18 08:49:09 UTC 2014


On Tue, 18 Feb 2014 00:09:48 +0100
Dimitry Andric <dim at FreeBSD.org> wrote:

> On 17 Feb 2014, at 16:09, Milan Obuch <freebsd-stable at dino.sk> wrote:
> > I have trouble build world from 10.0-STABLE sources on freshly
> > rebuilt 9.2-STABLE machine, amd64 arch. I want to upgrade it. The
> > error shown is (lines edited into paragraphs to mitigate line
> > wrapping effect)
> ...
> > building shared library libproc.so.2
> > 
> > /usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lsupc++
> ...
> > There are following build options used:
> > 
> > WITHOUT_ATM=YES
> > WITHOUT_AUDIT=YES
> > WITHOUT_AUTHPF=YES
> > WITHOUT_BLUETOOTH=YES
> > WITHOUT_CALENDAR=YES
> > WITHOUT_CDDL=YES
> > WITHOUT_CLANG=YES
> > WITHOUT_CLANG_FULL=YES
> > WITHOUT_CLANG_IS_CC=YES
> > WITHOUT_CTM=YES
> > WITHOUT_DICT=YES
> > WITHOUT_FDT=YES
> > WITHOUT_FLOPPY=YES
> > WITHOUT_FREEBSD_UPDATE=YES
> > WITHOUT_GAMES=YES
> > WITHOUT_GCOV=YES
> > WITHOUT_GNUCXX=YES
> > WITHOUT_GPIB=YES
> > WITHOUT_GPIO=YES
> > WITHOUT_HTML=YES
> > WITHOUT_INET6=YES
> > WITHOUT_INET6_SUPPORT=YES
> > WITHOUT_INFO=YES
> > WITHOUT_IPFILTER=YES
> > WITHOUT_IPFW=YES
> > WITHOUT_IPX=YES
> > WITHOUT_IPX_SUPPORT=YES
> > WITHOUT_KERBEROS=YES
> > WITHOUT_KERBEROS_SUPPORT=YES
> > WITHOUT_LIBCPLUSPLUS=YES
> > WITHOUT_LOCATE=YES
> > WITHOUT_LPR=YES
> > WITHOUT_NAND=YES
> > WITHOUT_NCP=YES
> > WITHOUT_NDIS=YES
> > WITHOUT_NETCAT=YES
> > WITHOUT_NIS=YES
> > WITHOUT_PC_SYSINSTALL=YES
> > WITHOUT_PORTSNAP=YES
> > WITHOUT_PROFILE=YES
> > WITHOUT_QUOTAS=YES
> > WITHOUT_RCMDS=YES
> > WITHOUT_ROUTED=YES
> > WITHOUT_SENDMAIL=YES
> > WITHOUT_SYSINSTALL=YES
> > WITHOUT_WIRELESS=YES
> > WITHOUT_WIRELESS_SUPPORT=YES
> > WITHOUT_WPA_SUPPLICANT_EAPOL=YES
> > WITHOUT_ZFS=YES
> > 
> > WITHOUT_GNUCXX and WITHOUT_LIBCPLUSPLUS were added as an attempt
> > because error message mensions libsupc++. It does not matter, with
> > our without them the failure is the same
> 
> You need either libcxxrt or libsupc++ to build libproc.  It looks like
> you are forcing the build with gcc, so you need to enable libstdc++,
> otherwise you will not get libsupc++.
> 
> E.g., try removing WITHOUT_GNUCXX, and adding WITH_GNUCXX.  Adding
> WITH_GCC is probably also wise.
> 
> -Dimitry
> 

In theory, you should be right. However, WITHOUT_GNUCXX and
WITHOUT_LIBCPLUSPLUS were added as an attempt to workaround the failure
(incorrect one, but hey, nobody is perfect), which was still the same.
As an accidental notice, exactly the same operation on i386 arch went
through flawlessly. Adding WITH_GCC could make a change, thanks for
reminder.

However, I did an upgrade with removed /etc/src.conf - or, to be exact,
did a buildworld, but buildkernel failed - when trying to build my
somehow minimized kernel with some strange error compiling some .S
file, trying to build GENERIC kernel with failure to run ctfconvert. I
had to install it per hand before building kernel and then the rest was
done.

What the original failure actually was, seems to be somehow mystic to
me, but as I was able to do the desired 9 -> 10 upgrade, even if a bit
strange way, is enough for me now. If normal 10-STABLE build fails
again, I will report, but that's for now.

Regards,
Milan


More information about the freebsd-stable mailing list