Conversation
src/common/ceph_time.cc
Outdated
| // documentation. | ||
| #warning Falling back to CLOCK_REALTIME, may be slow. | ||
| clock_gettime(CLOCK_REALTIME, &ts); | ||
| #endif |
There was a problem hiding this comment.
@wjwithagen FYI, #7466 by @adamemerson also addresses this issue.
There was a problem hiding this comment.
On 4-2-2016 17:15, Kefu Chai wrote:
In src/common/ceph_time.cc
#7515 (comment):@@ -49,7 +49,18 @@ namespace ceph {
coarse_real_clock::time_point coarse_real_clock::now(
const CephContext* cct) noexcept {
struct timespec ts;
+#if defined(CLOCK_REALTIME_COARSE)clock_gettime(CLOCK_REALTIME_COARSE, &ts);// Linux systems have _COARSE clocks. +#elif defined(CLOCK_REALTIME_FAST)clock_gettime(CLOCK_REALTIME_COARSE, &ts);// BSD systems have _FAST clocks. +#elseclock_gettime(CLOCK_REALTIME_FAST, &ts);// And if we find neither, you may wish to consult your system's +#warning Falling back to CLOCK_REALTIME, may be slow.// documentation. +#endifclock_gettime(CLOCK_REALTIME, &ts);@wjwithagen https://github.com/wjwithagen FYI, #7466
#7466 by @adamemerson
https://github.com/adamemerson also addresses this issue.
I know, but I "need" it to actually make any progress in getting things
compiling....
If there is an other way of doing this, just let me know...
This is a thing to consider anyways since quite a few people are
creating fixes for FreeBSD compiling. And several of the outstanding
pulls are conflicting and/or fixing the smae problem
And I'm not sure on how this will be handled when importing any of the
pulls. I sort of expect to rebase and fix merges once any of the
FreeBSD/Darwin/other pulls gets accepted.
--WjW
|
@liewegas |
|
'mmm FAIL: test/mon/mon-created-time.sh ../test-driver: line 95: ./test/mon/mon-created-time.sh: Permission denied Lets see if a rebase will help |
64342dc to
fd23298
Compare
it's fixed just now. |
|
@tchaikov |
6e8b98b to
c2c5aad
Compare
|
@tchaikov As far as I can tell, I'm up with HEAD. So that should not be the cause. |
|
@wjwithagen this error does look suspicious. @dachary i guess it might be a bug. i posted a pull request to address it at #7549. |
|
@tchaikov |
|
@wjwithagen sorry for the confusion, i meant it was very likely a bug. and there are two other issues in testing got fixed recently. you might want to rebase against master to pick up them. BTW, you might need to drop 82cda01 from your pull request. |
|
@tchaikov |
|
git rebase -i 82cda01^ On Mon, 8 Feb 2016, Willem Jan Withagen wrote:
|
|
Some more errors which I cannot place: I guess that a watchdog kills things after 2 hours of running? I see that the script will not run on FreeBSD due to missing RBD, but I have not yet come to that. |
|
make check -j1 and ps xf might help narrow down which test gets hung... On Mon, 8 Feb 2016, Willem Jan Withagen wrote:
|
|
@liewegas I would expect ./run-make-check.sh to be the cullpit, but then again I cannot run that here since has RBD. |
52e303b to
382422a
Compare
3b31e53 to
d91e126
Compare
d91e126 to
53d8781
Compare
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
But the code seems to compile even without it. Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
We currently do not build Bluestore on FreeBSD due to incompatible AIO Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
…onstexpr Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Clang refuses to promote an address to int64_t by itself Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
As long as FreeBSD has nog RBD device, all tests for RBD will not work. run-cli-tests needs to be passed before any of the other tests are build/run, so ATM we exclude the RBD tests and complete with success under FreeBSD Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
This is not available under FreeBSD, where the Posix variant -E is. Rewritten the tests to accept any whitespace type, instead of just TAB Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
…ockets.h> Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
…ndle MAP_ANONYMOUS The mapping is not backed by any file; its contents are initialized to zero. The fd and offset arguments are ignored; however, some implementations require fd to be -1 if MAP_ANONYMOUS (or MAP_ANON) is specified, and portable applications should ensure this. Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
If certain properties of the disks are essential to test here, new tests need to be written specific for the FreeBSD situation. For now tests are run on a ZFS only system. Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
* Could use 'df -T' for that, if really needed.
* /proc/mounts is only available in linux emulation, and is found in
/compat/linux
* Also wrapped some long lines.
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
… m are const. This is a GCC extention that is not available in Clang Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
This require mounting the linprocfs system:
- kldload linprocfs
- in /etc/fstab:
linproc /compat/linux/proc linprocfs rw 0 0
Cannot mount in /proc, since that is taken bij FreeBSD itself
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
FreeBSD does not have PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP defined So we need to create the mutex ourselves. This is copied from older code in previous commits. Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
stat -c '%T' does not give fstype Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
So do not use a hardcode struct to initialize. Instead assign all the required fields individually Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
_check_disk_write_cache is #ifdef to be for Linux only. FreeBSD does not have hdparm tool to check disk setting. Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
This is hard to test from the program itself, and would need to be tested from a script/program that actually calls this test. Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
53d8781 to
2ab6bf8
Compare
Enough changes to get ceph to compile on FreeBSD.
On FreeBSD the code now halts after testing runc-cli-tests
The next step will be to get the tests running....