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

Make fails on Cenots 7.2 #167

Closed
apepojken opened this issue Aug 22, 2016 · 21 comments
Closed

Make fails on Cenots 7.2 #167

apepojken opened this issue Aug 22, 2016 · 21 comments

Comments

@apepojken
Copy link

apepojken commented Aug 22, 2016

Trying to build fbthrift on centos 7 fails.
I have copied the output of the commands to: https://github.com/apepojken/Fails/blob/master/fbthrift-fail

I don't get why it's failing. According to ./configure output mstch is working
checking mstch/mstch.hpp usability... yes checking mstch/mstch.hpp presence... yes checking for mstch/mstch.hpp... yes
But all the build errors seems to stem from something called "t_mstch_swift_generator.cc"

Any help apprecieated!

@lukenels
Copy link

Hey @apepojken, I'm the author of the diff that introduces this issue, I'm investigating the cause right now and will get back to you soon.

@apepojken
Copy link
Author

Great! Thank you.

@lukenels
Copy link

@apepojken Would you mind updating to the latest commit and trying to build again? I believe the problem should be fixed now.

@apepojken
Copy link
Author

I tried building it the same way. Still didn't work.
I updated the output in the link above. It still fails on something with "t_mstch_swift_generator.cc" but it's not the same error.

@lukenels
Copy link

@apepojken Thanks for the update, investigating it now.

@lukenels
Copy link

Could you try rebuilding and installing the mstch library? I've had issues before that arise from compiling thrift and mstch with different compiler versions resulting in symbol lookup errors. What was the process you used to install mstch?

@apepojken
Copy link
Author

I tried rebuilding mstch, this is how I did it: https://github.com/apepojken/Fails/blob/master/mstch-build
It still fails but with another error this time: PYTHONPATH=../../.python-local/lib/python /usr/bin/python -mthrift_compiler.main --gen cpp2 Sasl.thrift /usr/bin/python: /root/build/fbthrift/thrift/.python-local/lib/python/thrift_py-0.9.0-py2.7.egg/thrift_compiler/frontend.so: undefined symbol: _ZN5folly6detail11formatOctalE

Once again i updated the link above with the output from make.

@zleho
Copy link

zleho commented Aug 23, 2016

I experience the same issue as apepojken in his last comment. It seems like frontend.so does not have a reference to libfolly.so.

$ ldd fbthrift/thrift/.python-local/lib/python/thrift_py-0.9.0-py2.7.egg/thrift_compiler/frontend.so | grep folly | wc -l
0

@byronwwang
Copy link

me too

@lukenels
Copy link

Thanks for the update. I was hitting this build error as well and had to rebuild and install Folly, which fixed the issue. Could you try rebuilding and installing Folly and trying again?

(NB: If you encounter errors related to MEMBARRIER_CMD_QUERY when building folly, check out this issue )

@apepojken
Copy link
Author

I rebuilt/installed Folly, no errors. Tried rebuilding Thrift but got to the same point as earlier. Did the same thing again but this time rebuilt/installed mstch before Thrift. Still the same result.

@lukenels
Copy link

@apepojken Thanks for keeping me posted. I'm fixing some other build errors with fbthrift right now, and I'm trying to reproduce the exact error you're getting. Would you mine telling me your compiler version and boost version?

@apepojken
Copy link
Author

Boost 1.60 and gcc version 4.8.5

@byronwwang
Copy link

I rebuild everything, and still got the same error as @apepojken last mentioned. I'm with boost 1.54 and gcc 4.8.5 and Centos 7.2.
BTW, I still got another error related to the generated Makefile (in 'compiler/py' fold) in Line 'frontend_la_LDFLAGS...'. Since BOOST_PYTHON_LIB is empty, during the compiling, It's says '/usr/bin/ld: cannot find -l-L/home/byron/utils/python2/lib'

@zleho
Copy link

zleho commented Aug 24, 2016

I managed to get it compile and link correctly with the attached patch. I am using folly 2016.08.22 tag.
fbthrift.zip

@byronwwang
Copy link

@zleho Great!It works!

@byronwwang
Copy link

I got a new error during compiling thpp.
image

@apepojken
Copy link
Author

@zleho's patch worked for me too. Thank you, great job!

@byronwwang
Copy link

I manually and copying the thrift_compiler directory to my python site_packages. It fixed the error.

@byronwwang
Copy link

An new error again.

fatal error: thrift/lib/cpp2/util/MapCopy.h: No such file or directory

I manually copied the file to solve the problem.

Finally, everything is OK.

@apepojken
Copy link
Author

This patch from @zleho fixes my issue.
Thanks for the help!

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

4 participants