gem install error: incompatible function pointer types passing
sugiarto

sugiarto @ugifractal

About: I am a Freelance ruby on rails developer. I help startup, professional and hobbyist solve problem.

Location:
Cimahi, Indonesia
Joined:
May 14, 2021

gem install error: incompatible function pointer types passing

Publish Date: Nov 6 '24
1 1

Few days ago, I bought second macbook pro m2, and need to setup rails projects on my mac.

One type of error that raised very often was:

error: incompatible function pointer types passing 'VALUE (VALUE)'
Enter fullscreen mode Exit fullscreen mode

And the fixed always by adding

--with-cflags=-Wno-error=incompatible-function-pointer-types
Enter fullscreen mode Exit fullscreen mode

Sample

gem install msgpack -v '1.4.2' -- --with-cflags=-Wno-error=incompatible-function-pointer-types
Enter fullscreen mode Exit fullscreen mode

I put here, so this will remind me in case I find similar issue.

Comments 1 total

  • ruwhan
    ruwhanFeb 11, 2025

    Thanks, this helps!

Add comment