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

FreeBSD: do_freebsd.sh #12090

Merged
merged 1 commit into from Nov 29, 2016
Merged

Conversation

wjwithagen
Copy link
Contributor

  • rearrange and and more checks before building
  • introduce CEPH_DEV to add test/code/debugging when DEVeloping

Signed-off-by: Willem Jan Withagen wjw@digiware.nl

if ! grep -q ENODATA /usr/include/errno.h; then
echo Need ENODATA in /usr/include/errno.h for cython compilations
echo Please add it manually after ENOATTR with value 87
echo '#define ENOATTR 87'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought we've hidden these sort of things with compat.h...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tchaikov
Yup, but there is one tiny snag, called cython, that requires it to be in the include files.
All I have tried thusfar does not get me to include compat.h, I asked a bit around but got nothing that worked.
If you know a way to do this without serious post processing, I'm all up for it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will try in another boring week-end.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wjwithagen could you provide more details on where or in which source file we need to include "compat.h" to enable cython to do the right thing on FreeBSD?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is one example of the final compilation that fails.
I can mail you the rados.c file if you want.

[ 54%] Built target rados
running build
running build_ext
building 'rados' extension
/usr/bin/cc -DNDEBUG -iquote/home/wjw/wip/src/include -w -fPIC -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -c /home/wjw/wip/build/src/pybind/rados/rados.c -o /home/wjw/wip/build/lib/cython_modules/temp.freebsd-12.0-CURRENT-amd64-2.7/home/wjw/wip/build/src/pybind/rados/rados.o -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -DNDEBUG -lpython2.7 -lintl -lutil -lm -Wl,--export-dynamic
/home/wjw/wip/build/src/pybind/rados/rados.c:50847:36: error: use of undeclared identifier 'ENODATA'
  __pyx_t_2 = __Pyx_PyInt_From_int(ENODATA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 386, __pyx_L1_error)
                                   ^
1 error generated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wjwithagen, hope #12198 could address this issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tchaikov
Given the fact that we need an upstream accept from Cython (Which I already submitted) and again downstream into the FreeBSD ports, is it wise to keep the warning for the time being.

@tchaikov tchaikov self-assigned this Nov 21, 2016
 - rearrange and and more checks before building
 - introduce CEPH_DEV to add test/code/debugging when DEVeloping

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
@tchaikov tchaikov merged commit 6a155a8 into ceph:master Nov 29, 2016
@wjwithagen
Copy link
Contributor Author

@tchaikov
Thanx

@wjwithagen
Copy link
Contributor Author

@tchaikov
The commit in Cython got merged:
cython/cython#1535

So now I'm going to harass the cython maintainer, to see when he will make an update for the port.

@wjwithagen wjwithagen deleted the wip-wjw-do_freebsd.sh branch April 28, 2017 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants