Dear all,
After an upgrade of debian testing (yesterday) I have been unable to compile dynare. The culprit seems to be the new version of flex (2.6.0-11). Houtan can you check if this is a bug in flex or if we have to change something on our side? I suppose you may have the same issue with homebrew...
For those who upgraded flex to 2.6.0-11 you will need to downgrade flex:
~$ sudo apt-get remove flex libfl-dev ~$ sudo apt-get install libfl-dev=2.5.39-8+b1 ~$ sudo apt-get install flex=2.5.39-8+b1
You should also (temporarily) prevent future upgrades for these packages :
~$ sudo apt-mark hold libfl-dev flex
If you did not upgrade debian, you may also want to apply the last step (until we understand the problem).
Best, Stéphane.
We have to change something on our side as 2.6 was a major change in flex. Following our procedure for such changes in the past, we won't change Dynare until flex 2.6 becomes the default in Debian stable, so for two years or so.
As you note, the flex update broke the Homebrew build of Dynare, which I am in the process of fixing to work with flex 2.5.39.
Best, Houtan
On 03/09/2016 04:19 PM, Stéphane Adjemian wrote:
Dear all,
After an upgrade of debian testing (yesterday) I have been unable to compile dynare. The culprit seems to be the new version of flex (2.6.0-11). Houtan can you check if this is a bug in flex or if we have to change something on our side? I suppose you may have the same issue with homebrew...
For those who upgraded flex to 2.6.0-11 you will need to downgrade flex:
~$ sudo apt-get remove flex libfl-dev ~$ sudo apt-get install libfl-dev=2.5.39-8+b1 ~$ sudo apt-get install flex=2.5.39-8+b1
You should also (temporarily) prevent future upgrades for these packages :
~$ sudo apt-mark hold libfl-dev flex
If you did not upgrade debian, you may also want to apply the last step (until we understand the problem).
Best, Stéphane.
Dev mailing list Dev@dynare.org https://www.dynare.org/cgi-bin/mailman/listinfo/dev
Le mercredi 09 mars 2016 à 16:28 +0100, Houtan Bastani a écrit :
We have to change something on our side as 2.6 was a major change in flex. Following our procedure for such changes in the past, we won't change Dynare until flex 2.6 becomes the default in Debian stable, so for two years or so.
Procedures may have changed without me noticing, but in the past the rule was to support both stable and unstable.
Anyways, I have pushed a commit (2643bfa) that fixes the issue. The code should work with both old Flex 2.5 and new Flex 2.6, thanks to a few C preprocessor conditionals.
I let you decide whether this should be backported to 4.4.
Best,
Thanks Sébastien, It works like a charm! I think that we do not need to backport your fix to 4.4.
Best, Stéphane.
Le 14/03/2016 16:32, Sébastien Villemot a écrit :
Le mercredi 09 mars 2016 à 16:28 +0100, Houtan Bastani a écrit :
We have to change something on our side as 2.6 was a major change in flex. Following our procedure for such changes in the past, we won't change Dynare until flex 2.6 becomes the default in Debian stable, so for two years or so.
Procedures may have changed without me noticing, but in the past the rule was to support both stable and unstable.
Anyways, I have pushed a commit (2643bfa) that fixes the issue. The code should work with both old Flex 2.5 and new Flex 2.6, thanks to a few C preprocessor conditionals.
I let you decide whether this should be backported to 4.4.
Best,