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

2017.11.27.00 OS X 10.11 build failure: conversion function from 'folly::dynamic::ObjectMaker' to 'folly::dynamic' invokes a deleted function #718

Closed
ilovezfs opened this issue Nov 30, 2017 · 4 comments

Comments

@ilovezfs
Copy link

CC @Orvid @wez

libtool: compile:  /usr/bin/clang++ -std=c++11 -stdlib=libc++ -DHAVE_CONFIG_H -I../../.. -pthread -I/usr/local/include -I/usr/local/Cellar/openssl/1.0.2m/include -I/usr/local/opt/openssl/include -F/usr/local/Frameworks -std=gnu++1y -Os -w -pipe -march=native -mmacosx-version-min=10.11 -c LogConfigParser.cpp  -fno-common -DPIC -o .libs/LogConfigParser.o
LogConfigParser.cpp:548:10: error: conversion function from 'folly::dynamic::ObjectMaker' to 'folly::dynamic' invokes a deleted function
  return value;
         ^~~~~
../../../folly/dynamic.h:164:18: note: 'dynamic' has been explicitly marked deleted here
  /* implicit */ dynamic(ObjectMaker const&) = delete;
                 ^
1 error generated.
make[4]: *** [LogConfigParser.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Ref Homebrew/homebrew-core#21091
https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/13723/
https://gist.github.com/ilovezfs/9dffb1c2b7a1294fa3a2f1ec6150a1b7

@wez
Copy link
Contributor

wez commented Nov 30, 2017

cc: @simpkins

@simpkins
Copy link
Contributor

simpkins commented Dec 2, 2017

This appears to be an issue with older C++ compilers. Old versions of the C++ standard required an explicit std::move() around value here. This was addressed by DR 1579, and g++ no longer requires this starting in version 5.x+
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1579

I'll land a fix for this.

@ilovezfs
Copy link
Author

ilovezfs commented Dec 4, 2017

@simpkins looks like this was fixed in 2017.12.04.00, yes?

@simpkins
Copy link
Contributor

simpkins commented Dec 5, 2017

Yes, this was fixed by commit ad993b9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants