External toolchain build failing due to missing --sysroot

2015-03-20 Thread Craig Rodrigues
Warner, I can't get the external toolchain build of CURRENT to work, because --sysroot seems to be missing in some places. See: https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-March/001452.html gnn@ said you might know where this can be fixed. Any idea of a patch that can fix this?

powerpc64 11.0-CURRENT CROSS_TOOLSCHAIN=powerpc64-gcc: -pg compile gets ../libcxxrt/terminate.cc:36:7: internal compiler error: Segmentation fault

2015-03-20 Thread Mark Millard
It turns out that I had to rebuild powerpc64-gcc after booting into the powerpc64-gcc based installed world (and kernel). The below notes start from before that rebuild of powerpc64-gcc. Basic context (more detail later): > # dmesg | head > ... > FreeBSD 11.0-CURRENT #0 r279514M: Wed Mar 18 20

powerpc64 11.0-CURRENT CROSS_TOOLSCHAIN=powerpc64-gcc when building with WITH_CLANG= defined: include/c++/v1/ problems...

2015-03-20 Thread Mark Millard
CROSS_TOOLCHAIN=powerpc64-gcc will not automatically use /usr/include/c++/v1/ paths or /usr/lib/ paths. And those paths are only appropriate sometimes. Other times paths such as /usr/obj/usr/srcC/tmp/usr/include/c++/v1 and /usr/obj/usr/srcC/lib/libc++ are appropriate. The later material conclu

CROSS_TOOLCHAIN=powerpc64-gcc mishandles "Substitution Failure Is Not An Error" when compiling clang and stops the build

2015-03-20 Thread Mark Millard
Basic context: > # dmesg | head > ... > FreeBSD 11.0-CURRENT #0 r279514M: Wed Mar 18 20:11:15 PDT 2015 > root@FBSDG5C0:/usr/obj/usr/srcC/sys/GENERIC64vtsc-NODEBUG powerpc > gcc version 4.9.1 (FreeBSD Ports Collection for powerpc64) > ... > # freebsd-version -ku; uname -apKU > 11.0-CURRENT >