Re: [Yade-dev] [Yade-users] [Question #665387]: Compile error JointedCohesiveFrictionalPM

2018-03-09 Thread William Chèvremont
In fact, for the git rebase, I updade py computer and forget to run this 
command again. Now fixed.


For the compile error, my linux and compiler are following:

>$ gcc --version
gcc (Ubuntu 7.2.0-8ubuntu3.2) 7.2.0

>$ lsb_release -a
LSB Version: 
core-9.20160110ubuntu5-amd64:core-9.20160110ubuntu5-noarch:security-9.20160110ubuntu5-amd64:security-9.20160110ubuntu5-noarch

Distributor ID: Ubuntu
Description:    Ubuntu 17.10
Release:    17.10
Codename:   artful

I also get the same error on the cluster with this compiler: gcc (Debian 
5.4.1-3) 5.4.1 20161019


William.


Le 09/03/2018 à 18:42, Bruno Chareyre a écrit :
This being said I don't think the merge can be the cause of William's 
compile error.

The question is why gcc can't find std::random_device.
Just weird.
B
/
/
On 03/09/2018 06:35 PM, Bruno Chareyre wrote:

Let us continue the discussion here on yade-dev, William is member.
Merge commits are painful, as you suggest Robert it applies the 
upstream changes on the local trunk then it commits the merged code.
In the log it looks like reapplying the same changes, the problem is 
if it's not reapplying exactly the same thing it can go unnoticed.

This is known as "merge bubble" on the git forums.

It can be avoided manually or, more simply, by changing the default 
behavior of git once for all (on a given machine):|

git config branch.autosetuprebase always|

Please always consider the above command before any commit to yade trunk.

Cheers

Bruno



On 03/09/2018 06:08 PM, Robert Caulk wrote:

Question #665387 on Yade changed:
https://answers.launchpad.net/yade/+question/665387

 Status: Open => Answered

Robert Caulk proposed the following answer:
Hello William,

Which linux distribution are you running? Which compiler are you using
(gcc --version)?

As Bruno mentions on yade-dev, your most recent build passes the
buildbot [1] - so it may be a local problem. (I think Bruno's message
[2] was not posted here as intended. He suggests you join yade-dev list
serv [3] and send compiler questions there).

Although it seems unlikely - is it possible this has something to do
with this unusual merge of master with itself [4]? Is that a merge into
your local repository? Perhaps you are you working off a read-only
clone? Do you have duplicated commits on your local machine? I can't
quite figure out what is going on there, the "merge" seems to simply add
commits that are already committed to the repository.

Cheers,

Robert

[1]https://yade-dem.org/buildbot/builders/yade-full/builds/4507
[2]https://lists.launchpad.net/yade-dev/msg13755.html
[3]https://launchpad.net/~yade-dev
[4]https://github.com/yade/trunk/commit/921bb17079fea51385fe620526f9bc48c055918e





___
Mailing list:https://launchpad.net/~yade-dev
Post to :yade-dev@lists.launchpad.net
Unsubscribe :https://launchpad.net/~yade-dev
More help   :https://help.launchpad.net/ListHelp




___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] [Yade-users] [Question #665387]: Compile error JointedCohesiveFrictionalPM

2018-03-09 Thread Bruno Chareyre
This being said I don't think the merge can be the cause of William's 
compile error.

The question is why gcc can't find std::random_device.
Just weird.
B
/
/
On 03/09/2018 06:35 PM, Bruno Chareyre wrote:

Let us continue the discussion here on yade-dev, William is member.
Merge commits are painful, as you suggest Robert it applies the 
upstream changes on the local trunk then it commits the merged code.
In the log it looks like reapplying the same changes, the problem is 
if it's not reapplying exactly the same thing it can go unnoticed.

This is known as "merge bubble" on the git forums.

It can be avoided manually or, more simply, by changing the default 
behavior of git once for all (on a given machine):|

git config branch.autosetuprebase always|

Please always consider the above command before any commit to yade trunk.

Cheers

Bruno



On 03/09/2018 06:08 PM, Robert Caulk wrote:

Question #665387 on Yade changed:
https://answers.launchpad.net/yade/+question/665387

 Status: Open => Answered

Robert Caulk proposed the following answer:
Hello William,

Which linux distribution are you running? Which compiler are you using
(gcc --version)?

As Bruno mentions on yade-dev, your most recent build passes the
buildbot [1] - so it may be a local problem. (I think Bruno's message
[2] was not posted here as intended. He suggests you join yade-dev list
serv [3] and send compiler questions there).

Although it seems unlikely - is it possible this has something to do
with this unusual merge of master with itself [4]? Is that a merge into
your local repository? Perhaps you are you working off a read-only
clone? Do you have duplicated commits on your local machine? I can't
quite figure out what is going on there, the "merge" seems to simply add
commits that are already committed to the repository.

Cheers,

Robert

[1]https://yade-dem.org/buildbot/builders/yade-full/builds/4507
[2]https://lists.launchpad.net/yade-dev/msg13755.html
[3]https://launchpad.net/~yade-dev
[4]https://github.com/yade/trunk/commit/921bb17079fea51385fe620526f9bc48c055918e





___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] [Yade-users] [Question #665387]: Compile error JointedCohesiveFrictionalPM

2018-03-09 Thread Bruno Chareyre

Hi William,
Thanks for mentioning.
You can send compiler errors to yade-dev (are you member of yade-dev? 
else I suggest you join) or even better to a bug report.

It is better to specificy revision numbers, to.

Your last revision [1] made it through the buildbot.
Do you still have the problem localy? It would be specific to your 
system maybe.


Bruno

[1] https://yade-dem.org/buildbot/builders/yade-full/builds/4507


On 03/08/2018 07:52 PM, Chevremont William wrote:

New question #665387 on Yade:
https://answers.launchpad.net/yade/+question/665387

Hi,

I've just updated the source code of yade using git pull and I get this compile 
error, comming from code added 2 days ago:

/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp: In member function 
‘void 
Ip2_JCFpmMat_JCFpmMat_JCFpmPhys::distributeCrossSectionsWeibull(boost::shared_ptr,
 Real, Real)’:
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:600:7: error: 
‘random_device’ is not a member of ‘std’
   std::random_device rd;
^
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:600:7: note: 
suggested alternative: ‘random_shuffle’
   std::random_device rd;
^
random_shuffle
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:601:7: error: 
‘mt19937’ is not a member of ‘std’
   std::mt19937 e2(rd());
^~~
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:7: error: 
‘weibull_distribution’ is not a member of ‘std’
   std::weibull_distribution 
weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter);
^~~~
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:7: note: 
suggested alternative: ‘uniform_int_distribution’
   std::weibull_distribution 
weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter);
^~~~
uniform_int_distribution
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:32: error: 
expected primary-expression before ‘>’ token
   std::weibull_distribution 
weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter);
 ^
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:34: error: 
‘weibullDistribution’ was not declared in this scope
   std::weibull_distribution 
weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter);
   ^~~
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:34: note: 
suggested alternative: ‘weibullCutOffMin’
   std::weibull_distribution 
weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter);
   ^~~
   weibullCutOffMin
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:603:40: error: 
‘e2’ was not declared in this scope
   Real correction = weibullDistribution(e2);
 ^~
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:603:40: note: 
suggested alternative: ‘R2’
   Real correction = weibullDistribution(e2);
 ^~
 R2





___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp