Coder Social home page Coder Social logo

Comments (4)

rurban avatar rurban commented on May 27, 2024

Oh, so apple bumped the clang version without supporting the overflow builtins?
What is your __clang_minor__ version on this?

clang -dM -E -x c /dev/null | grep __clang_

I assumed 3.4 added this, as documented in http://llvm.org/releases/3.4/tools/clang/docs/LanguageExtensions.html#builtin-functions
but apparently apple has a different idea how to number their clang.

$ /usr/bin/clang -dM -E -x c /dev/null | grep __clang_
#define __clang__ 1
#define __clang_major__ 7
#define __clang_minor__ 0
#define __clang_patchlevel__ 0
#define __clang_version__ "7.0.0 (clang-700.0.72)"

from potion.

wollmers avatar wollmers commented on May 27, 2024

Now upgraded Xcode command line tools to 6.2, but the same compile errors. Didn't manage to upgrade Xcode, still 5.0.2. Seems you have Yosemite and Xcode 7.

$ clang -dM -E -x c /dev/null | grep __clang_
#define __clang__ 1
#define __clang_major__ 5
#define __clang_minor__ 0
#define __clang_patchlevel__ 0
#define __clang_version__ "5.0 (clang-500.2.79)"

Thx, your patch works, just throws warnings now:

  CC       src/unix/libuv_la-stream.lo
src/unix/stream.c:1054:19: warning: variable length array folded to constant array as an extension
      [-Wpedantic]
  char cmsg_space[CMSG_SPACE(UV__CMSG_FD_SIZE)];
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/socket.h:517:24: note: expanded from macro 'CMSG_SPACE'
#define CMSG_SPACE(l)           (__DARWIN_ALIGN32(sizeof(struct cmsghdr)) + __DARWIN_ALIGN32(l))
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/unix/stream.c:1054:19: note: cast which performs the conversions of a reinterpret_cast is not allowed in
      a constant expression
/usr/include/sys/socket.h:517:25: note: expanded from macro 'CMSG_SPACE'
#define CMSG_SPACE(l)           (__DARWIN_ALIGN32(sizeof(struct cmsghdr)) + __DARWIN_ALIGN32(l))
                                 ^
/usr/include/i386/_param.h:43:42: note: expanded from macro '__DARWIN_ALIGN32'
#define       __DARWIN_ALIGN32(p)       ((__darwin_size_t)((char *)(__darwin_size_t)(p) + __DARWIN_AL...
                                         ^
1 warning generated.

from potion.

wollmers avatar wollmers commented on May 27, 2024

I close this issue, hope you agree.

BTW: It's really, really fast.

from potion.

rurban avatar rurban commented on May 27, 2024

Great so 7 is the right number then. Have to fix cperl now also

from potion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.