Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to build with with compilation error on Folly #360

Closed
viirya opened this issue Oct 1, 2021 · 4 comments
Closed

Fail to build with with compilation error on Folly #360

viirya opened this issue Oct 1, 2021 · 4 comments
Labels
good first issue Good for newcomers stale

Comments

@viirya
Copy link

viirya commented Oct 1, 2021

I tried to build this on Mac OS, but saw the error as follows:

/usr/local/include/folly/Conv.h:744:41: error: no matching function for call to 'estimateSpaceNeeded'
  return estimateSpaceToReserve(sofar + estimateSpaceNeeded(v), vs...);                                                                                                                        
                                        ^~~~~~~~~~~~~~~~~~~

I looked at Conv.h quickly, there are some candidate templates. But based on the message of compiler, seems these templates are not suitable for unsigned __int128 so the compiler cannot find a matching function of estimateSpaceNeeded.

@viirya
Copy link
Author

viirya commented Oct 4, 2021

This can be fixed by Homebrew/homebrew-core#86451

@pedroerp
Copy link
Contributor

pedroerp commented Oct 4, 2021

I remember seeing this problem in Ubuntu as well, so I had to add this flag:

https://github.com/facebookincubator/velox/blob/main/scripts/setup-ubuntu.sh#L73

does this help in your case as well (adding the flag to setup-macos.sh)?

@viirya
Copy link
Author

viirya commented Oct 4, 2021

Yes, I added the flag to homebrew folly Formula to fix it. You can see the above PR.

For Velox, it is harder for us to directly contribute for now, so I leave setup-macos.sh to others who can simply add it.

@pedroerp pedroerp added the good first issue Good for newcomers label Oct 4, 2021
viirya added a commit to viirya/homebrew-core that referenced this issue Oct 6, 2021
FOLLY_HAVE_INT128_T is a build option for Folly. On Mac OS, we need add this option to enable certain templates.
In particular, currently Formula cannot work with Velox (facebookincubator/velox#360).
Because the compiler cannot find correspond function for type unsigned __int128.
@stale
Copy link

stale bot commented Sep 14, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Sep 14, 2022
@stale stale bot closed this as completed Sep 28, 2022
rui-mo added a commit to rui-mo/velox that referenced this issue Mar 17, 2023
liujiayi771 pushed a commit to liujiayi771/velox that referenced this issue Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers stale
Projects
None yet
Development

No branches or pull requests

2 participants