On Mon, Apr 16 2018, <s_g...@telus.net> wrote:
> I tried to continue the build of php with the ports snapshot of today and ran 
> into another gcc problem:

[...]

> /usr/ports/pobj/gcc-4.9.4/gcc-4.9.4/gcc/config/arm/arm.md:97:16: warning: 
> equality comparison with
>       extraneous parentheses [-Wparentheses-equality]
> (thumb1_code)) == (
> ~~~~~~~~~~~~~~~^~~~
> /usr/ports/pobj/gcc-4.9.4/gcc-4.9.4/gcc/config/arm/arm.md:97:16: note: remove 
> extraneous parentheses
>       around the comparison to silence this warning
> (thumb1_code)) == (
>                ^
> /usr/ports/pobj/gcc-4.9.4/gcc-4.9.4/gcc/config/arm/arm.md:97:16: note: use 
> '=' to turn this equality
>       comparison into an assignment
> (thumb1_code)) == (
>                ^~
>                =
> /usr/ports/pobj/gcc-4.9.4/gcc-4.9.4/gcc/config/arm/neon.md:3486:10917: fatal 
> error: bracket nesting
>       level exceeded maximum of 256
> /usr/ports/pobj/gcc-4.9.4/gcc-4.9.4/gcc/config/arm/neon.md:3486:10917: note: 
> use -fbracket-depth=N to
>       increase maximum nesting level
> 33 warnings and 1 error generated.
> gmake[3]: *** [Makefile:1058: insn-attrtab.o] Error 1

Well this seems to be handled by the diff in my previous mail, attached
again for convenience.  gcc (FLAVOR='no_java no_ada') packages, install,
and seems to run.  dpb ongoing.

Technically a clang-specific fix but it already happened with clang-5.0.


Index: patches/patch-gcc_configure
===================================================================
RCS file: /cvs/ports/lang/gcc/4.9/patches/patch-gcc_configure,v
retrieving revision 1.5
diff -u -p -r1.5 patch-gcc_configure
--- patches/patch-gcc_configure 1 Sep 2016 17:30:33 -0000       1.5
+++ patches/patch-gcc_configure 15 Apr 2018 23:47:01 -0000
@@ -1,7 +1,20 @@
 $OpenBSD: patch-gcc_configure,v 1.5 2016/09/01 17:30:33 pascal Exp $
---- gcc/configure.orig Sun May 22 10:53:32 2016
-+++ gcc/configure      Sat Aug  6 19:19:05 2016
-@@ -17367,7 +17367,7 @@ openbsd*)
+Index: gcc/configure
+--- gcc/configure.orig
++++ gcc/configure
+@@ -6597,6 +6597,11 @@ $as_echo "$ac_res" >&6; }
+ fi
+   done
+ CFLAGS="$save_CFLAGS"
++if [[ `uname -m` == armv7 ]] ; then
++  if $CC --version 2>&1 | grep clang; then
++    noexception_flags="$noexception_flags -fbracket-depth=512"
++  fi
++fi
+ 
+ 
+ # Enable expensive internal checks
+@@ -17367,7 +17372,7 @@ openbsd*)
      *)                                need_version=no  ;;
    esac
    library_names_spec='${libname}${release}${shared_ext}$versuffix 
${libname}${shared_ext}$versuffix'
@@ -10,7 +23,7 @@ $OpenBSD: patch-gcc_configure,v 1.5 2016
    shlibpath_var=LD_LIBRARY_PATH
    if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test 
"$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
      case $host_os in
-@@ -21027,7 +21027,7 @@ openbsd*)
+@@ -21027,7 +21032,7 @@ openbsd*)
      *)                                need_version=no  ;;
    esac
    library_names_spec='${libname}${release}${shared_ext}$versuffix 
${libname}${shared_ext}$versuffix'
@@ -19,7 +32,7 @@ $OpenBSD: patch-gcc_configure,v 1.5 2016
    shlibpath_var=LD_LIBRARY_PATH
    if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test 
"$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
      case $host_os in
-@@ -27522,6 +27522,7 @@ else
+@@ -27522,6 +27527,7 @@ else
  fi
  
          ;;


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to