Page MenuHomeFreeBSD

Fix build on MIPS and powerpc.

Authored by jhb on Aug 31 2017, 4:22 PM.


  • Commit 0335ac6d12 fixes a build breakage on big-endian 64-bit platforms including MIPS and powerpc.
  • Restore a cast in the powerpc kgdb code incorrectly removed in r446852.

Diff Detail

rP FreeBSD ports repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Andreas also has another change to force the use of GCC 6 since GCC 5 apparently isn't sufficient. I'm happy to add that in once I get more details back from Andreas (so this isn't commit-ready yet). Andreas is also still testing 32-bit powerpc (so far he has only built 64-bit powerpc).

Tested on both, 32-bit and 64-bit powerpc. With the below addition to the Makefile.

The error I had was this one:

./common/common-utils.h:101:12: error: 'std::to_string' has not been

using std::to_string;

The snippet I added to the Makefile:

  • devel/gdb/Makefile (revision 449048)

+++ devel/gdb/Makefile (working copy)
@@ -93,6 +93,10 @@
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}

+.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 60
.if ${COMPILER_TYPE} == "clang"
CFLAGS+= -Wno-extended-offsetof

Gerald Pfeifer has recently changed the default for USE_GCC to GCC 6 and will soon fix Uses/ to use GCC 6 (instead of 5) for the C++14 case. At that point I think this patch can be committed as is.

This revision is now accepted and ready to land.Sep 13 2017, 9:32 AM

I'll commit this patch as soon as possible

This revision was automatically updated to reflect the committed changes.