Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-408

wxe_impl.cpp does not compile on FreeBSD

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 19.3
    • Fix Version/s: 20.0
    • Component/s: wx
    • Labels:
      None

      Description

      On FreeBSD amd64 11.0-STABLE r317623, compiling OTP 19.3.2 generated the following fatal errors:

      clang -c -Werror=return-type  -g -Wall -O2 -fPIC -O3 -fstack-protector-strong -Wno-deprecated-declarations -fomit-frame-pointer -fno-strict-aliasing -isystem /usr/X11R6/include  -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -D_THREAD_SAFE   -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DHAVE_GL_SUPPORT=1 -DHAVE_GLINTPTR=1 -DHAVE_GLINTPTRARB=1 -DHAVE_GLCHAR=1 -DHAVE_GLCHARARB=1 -DHAVE_GLHALFARB=1 -DHAVE_GLINT64EXT=1 -DHAVE_WX_STC_STC_H=1 -I/home/kenji/.kerl/builds/19.3.2-dtrace/otp_src_git/erts/emulator/beam -I/home/kenji/.kerl/builds/19.3.2-dtrace/otp_src_git/erts/include -I/home/kenji/.kerl/builds/19.3.2-dtrace/otp_src_git/erts/include/x86_64-unknown-freebsd11.0 -I/home/kenji/.kerl/builds/19.3.2-dtrace/otp_src_git/erts/include/internal -I/home/kenji/.kerl/builds/19.3.2-dtrace/otp_src_git/erts/include/internal/x86_64-unknown-freebsd11.0 -I/home/kenji/.kerl/builds/19.3.2-dtrace/otp_src_git/erts/emulator/sys/unix -I/home/kenji/.kerl/builds/19.3.2-dtrace/otp_src_git/erts/emulator/sys/common  wxe_helpers.cpp -o x86_64-unknown-freebsd11.0/wxe_helpers.o
      wxe_impl.cpp:669:55: error: ordered comparison between pointer and zero ('void *' and 'long')
        if((index < memenv->next) && ((index == 0) || (temp > NULL)))
                                                       ~~~~ ^ ~~~~
      wxe_impl.cpp:681:55: error: ordered comparison between pointer and zero ('void *' and 'long')
        if((index < memenv->next) && ((index == 0) || (temp > NULL))) {
                                                       ~~~~ ^ ~~~~
      2 errors generated.
      gmake[3]: *** [Makefile:145: x86_64-unknown-freebsd11.0/wxe_impl.o] Error 1
      

      Note that this bug exists at least since 19.3 and 19.3.1.

      The version of clang is:

      clang --version
      FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
      Target: x86_64-unknown-freebsd11.0
      Thread model: posix
      InstalledDir: /usr/bin
      

        Issue Links

          Activity

          Hide
          jj1bdx jj1bdx added a comment -
          Show
          jj1bdx jj1bdx added a comment - Fix proposed at GitHub OTP Repository PR #1425 .

            People

            • Assignee:
              Unassigned
              Reporter:
              jj1bdx jj1bdx
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development