Skip to contentSkip to conversation

Has rgw recently switched to deque usuage??

DISCUSSION Willem Jan Withagen 2 participants 9 messages Feb 20, 2016 – Feb 22, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

With the last rebase I'm getting compilation errors on rgw stuff. So I was wondering if deque usuage got included recently, or that I'm running into a case where Clang doesn't like the way some code is used. And GCC just compiles fine...

Any answer would be appriciated

--WjW

#1 lore raw

Hi Willem,

A number of new features have merged, sure, and they make use of new primitives. I haven't compiled with clang recently, mainly due to issues linking with gcc-compiled leveldb and rocksdb on Linux platforms. For now, maybe you can send more specific info.

(I'll be able to try-build on FreeBSD at some point, probably, but not in the next day or so due to travel.)

Matt

----- Original Message -----

Quoted 20 lines

From: "Willem Jan Withagen" <[email protected]>
To: "Ceph Development" <[email protected]>
Sent: Saturday, February 20, 2016 9:41:45 AM
Subject: Has rgw recently switched to deque usuage??

Hi,

With the last rebase I'm getting compilation errors on rgw stuff. So I was wondering if deque usuage got included recently, or that I'm running into a case where Clang doesn't like the way some code is used. And GCC just compiles fine...

Any answer would be appriciated

--WjW
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 11 lines
-- 
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-707-0660
fax.  734-769-8938
cel.  734-216-5309
#2 lore raw
Quoted 9 lines · Matt Benjamin

Hi Willem,

A number of new features have merged, sure, and they make use of new primitives. I haven't compiled with clang recently, mainly due to issues linking with gcc-compiled leveldb and rocksdb on Linux platforms. For now, maybe you can send more specific info.

(I'll be able to try-build on FreeBSD at some point, probably, but not in the next day or so due to travel.)

Hi Matt,

It turns out to be all about the order of includes and that Clang not always sees eye to eye with GCC.
Right now I'm sort of reordering a lot includes rados/rgw headers in the rgw/*cc files.
Probably too much reordering but first I want it to get it to compile. :) After that lets see what was really needed.

Save travels,
--WjW

Quoted 22 lines

Matt

----- Original Message -----

Quoted 18 lines

From: "Willem Jan Withagen" <[email protected]> To: "Ceph Development" <[email protected]> Sent: Saturday, February 20, 2016 9:41:45 AM Subject: Has rgw recently switched to deque usuage??

Hi,

With the last rebase I'm getting compilation errors on rgw stuff. So I was wondering if deque usuage got included recently, or that I'm running into a case where Clang doesn't like the way some code is used. And GCC just compiles fine...

Any answer would be appriciated

--WjW -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Hi Willem,

That's good news, but massive header re-ordering sounds suspicious. Likely, there are just missing unix headers.

Matt

----- Original Message -----

Quoted 53 lines

From: "Willem Jan Withagen" <[email protected]>
To: "Matt Benjamin" <[email protected]>
Cc: "Ceph Development" <[email protected]>
Sent: Saturday, February 20, 2016 5:15:44 PM
Subject: Re: Has rgw recently switched to deque usuage??

Quoted 9 lines · Matt Benjamin

Hi Willem,

A number of new features have merged, sure, and they make use of new primitives. I haven't compiled with clang recently, mainly due to issues linking with gcc-compiled leveldb and rocksdb on Linux platforms. For now, maybe you can send more specific info.

(I'll be able to try-build on FreeBSD at some point, probably, but not in the next day or so due to travel.)

Hi Matt,

It turns out to be all about the order of includes and that Clang not always sees eye to eye with GCC.
Right now I'm sort of reordering a lot includes rados/rgw headers in the rgw/*cc files.
Probably too much reordering but first I want it to get it to compile. :) After that lets see what was really needed.

Save travels,
--WjW

Quoted 22 lines

Matt

----- Original Message -----

Quoted 18 lines

From: "Willem Jan Withagen" <[email protected]> To: "Ceph Development" <[email protected]> Sent: Saturday, February 20, 2016 9:41:45 AM Subject: Has rgw recently switched to deque usuage??

Hi,

With the last rebase I'm getting compilation errors on rgw stuff. So I was wondering if deque usuage got included recently, or that I'm running into a case where Clang doesn't like the way some code is used. And GCC just compiles fine...

Any answer would be appriciated

--WjW -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 11 lines
-- 
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-707-0660
fax.  734-769-8938
cel.  734-216-5309
#4 lore raw
Quoted 3 lines · Matt Benjamin

Hi Willem,

That's good news, but massive header re-ordering sounds suspicious. Likely, there are just missing unix headers.

Well perhaps massive is the wrong word. And Clang is a lot more picky than GCC....

Major problem is that compiling rgw modules complains with just about all modules:
In file included from test/rgw/test_rgw_period_history.cc:14:
./rgw/rgw_period_history.h:24:16: error: use of undeclared identifier 'RGWPeriod'

    std::deque<RGWPeriod> periods;
               ^

Which is relieved by including:
#include "rgw_rados.h"
#include "rgw_period_puller.h"
#include "rgw_period_history.h"
#include "rgw_metadata.h"
In all complaining modules.
And needed to fix including ordering, where std::queue was called on things not yet fully defined.

same for the modules in src/test....

--WjW

Quoted 58 lines

Matt

----- Original Message -----

Quoted 53 lines

From: "Willem Jan Withagen" <[email protected]>
To: "Matt Benjamin" <[email protected]>
Cc: "Ceph Development" <[email protected]>
Sent: Saturday, February 20, 2016 5:15:44 PM
Subject: Re: Has rgw recently switched to deque usuage??

Quoted 9 lines · Matt Benjamin

Hi Willem,

A number of new features have merged, sure, and they make use of new primitives. I haven't compiled with clang recently, mainly due to issues linking with gcc-compiled leveldb and rocksdb on Linux platforms. For now, maybe you can send more specific info.

(I'll be able to try-build on FreeBSD at some point, probably, but not in the next day or so due to travel.)

Hi Matt,

It turns out to be all about the order of includes and that Clang not always sees eye to eye with GCC.
Right now I'm sort of reordering a lot includes rados/rgw headers in the rgw/*cc files.
Probably too much reordering but first I want it to get it to compile. :) After that lets see what was really needed.

Save travels,
--WjW

Quoted 22 lines

Matt

----- Original Message -----

Quoted 18 lines

From: "Willem Jan Withagen" <[email protected]> To: "Ceph Development" <[email protected]> Sent: Saturday, February 20, 2016 9:41:45 AM Subject: Has rgw recently switched to deque usuage??

Hi,

With the last rebase I'm getting compilation errors on rgw stuff. So I was wondering if deque usuage got included recently, or that I'm running into a case where Clang doesn't like the way some code is used. And GCC just compiles fine...

Any answer would be appriciated

--WjW -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
In reply to Willem Jan Withagen

sure, send github pull request tagged "rgw" when ready

Matt

----- Original Message -----

Quoted 21 lines

From: "Willem Jan Withagen" <[email protected]>
To: "Matt Benjamin" <[email protected]>
Cc: "Ceph Development" <[email protected]>
Sent: Sunday, February 21, 2016 5:46:38 AM
Subject: Re: Has rgw recently switched to deque usuage??

Quoted 4 lines · Matt Benjamin

Hi Willem,

That's good news, but massive header re-ordering sounds suspicious. Likely, there are just missing unix headers.

Overnight the build completed.
Now running gmake check.
If that gets to my normal level of PASSED of around 110 of 133 than I commit the rgw changes and you can find that in my pull to comment about and we take it from there.

--WjW

Signature · 11 lines
-- 
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-707-0660
fax.  734-769-8938
cel.  734-216-5309
#5 lore raw
In reply to Matt Benjamin
Quoted 3 lines · Matt Benjamin

Hi Willem,

That's good news, but massive header re-ordering sounds suspicious. Likely, there are just missing unix headers.

Overnight the build completed.
Now running gmake check.
If that gets to my normal level of PASSED of around 110 of 133 than I commit the rgw changes and you can find that in my pull to comment about and we take it from there.

--WjW

#8 lore raw

Re: RGW include modifications to compile with Clang

In reply to Matt Benjamin
Quoted 2 lines · Matt Benjamin

sure, send github pull request tagged "rgw" when ready

Hi,

It needed some hair pulling....

But the last for commits of #7730 generate a compilable version, for both FreeBSD/Clang and Linux/GCC, for as far as I can see.

--WjW