Dear checktestdata maintainer(s),
I tried installing checktestdata today on ubuntu 14.04.5, and noticed that the REGEX command is not properly functioning. Running make check reveals a failure in testcase 14, and manually running said testcase results in the following unfortunately rather unhelpfull message;
terminate called after throwing an instance of 'std::regex_error' what(): regex_error Aborted (core dumped)
Is this a known issue, or are there any obvious causes I could check?
Kind regards, David Venheok
Hi David,
On 25-08-16 06:54, David Venhoek wrote:
Dear checktestdata maintainer(s),
I tried installing checktestdata today on ubuntu 14.04.5, and noticed that the REGEX command is not properly functioning. Running make check reveals a failure in testcase 14, and manually running said testcase results in the following unfortunately rather unhelpfull message;
terminate called after throwing an instance of 'std::regex_error' what(): regex_error Aborted (core dumped)
Is this a known issue, or are there any obvious causes I could check?
This is a known issue: you need at least GCC version 4.9 to have complete C++11 regex support (see the README). Ubuntu 14.04 comes with 4.8.2.
You could see if there is a backport of GCC 4.9 available for 14.04 (doesn't look like it), upgrade to 16.04, or you could use an older version of checktestdata which uses libboost regexes. Anything before my commit of 3-6-2016 should work.
Jaap
Dear Jaap,
Thanks for the quick reply, my appologies for not reading the documentation properly.
I have attached a small patch (based on the master branch) that adds detection of a failing std::regex implementation to configure.ac.
Kind regards, David
On Thu, Aug 25, 2016 at 2:01 PM, Jaap Eldering jaap@jaapeldering.nl wrote:
Hi David,
On 25-08-16 06:54, David Venhoek wrote:
Dear checktestdata maintainer(s),
I tried installing checktestdata today on ubuntu 14.04.5, and noticed that the REGEX command is not properly functioning. Running make check reveals a failure in testcase 14, and manually running said testcase results in the following unfortunately rather unhelpfull message;
terminate called after throwing an instance of 'std::regex_error' what(): regex_error Aborted (core dumped)
Is this a known issue, or are there any obvious causes I could check?
This is a known issue: you need at least GCC version 4.9 to have complete C++11 regex support (see the README). Ubuntu 14.04 comes with 4.8.2.
You could see if there is a backport of GCC 4.9 available for 14.04 (doesn't look like it), upgrade to 16.04, or you could use an older version of checktestdata which uses libboost regexes. Anything before my commit of 3-6-2016 should work.
Jaap
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
On 25-08-16 15:00, David Venhoek wrote:
Dear Jaap,
Thanks for the quick reply, my appologies for not reading the documentation properly.
No worries.
I have attached a small patch (based on the master branch) that adds detection of a failing std::regex implementation to configure.ac http://configure.ac.
I applied it, but had to make some small fixes and also needed to add an extra M4 macro to test and set compiler C++11 support.
Could you check if the configure tests now correctly report a failure on Ubuntu 14.04?
Jaap
On Thu, Aug 25, 2016 at 2:01 PM, Jaap Eldering <jaap@jaapeldering.nl mailto:jaap@jaapeldering.nl> wrote:
Hi David, On 25-08-16 06:54, David Venhoek wrote: > Dear checktestdata maintainer(s), > > I tried installing checktestdata today on ubuntu 14.04.5, and noticed > that the REGEX command is not properly functioning. Running make check > reveals a failure in testcase 14, and manually running said testcase > results in the following unfortunately rather unhelpfull message; > > terminate called after throwing an instance of 'std::regex_error' > what(): regex_error > Aborted (core dumped) > > Is this a known issue, or are there any obvious causes I could check? This is a known issue: you need at least GCC version 4.9 to have complete C++11 regex support (see the README). Ubuntu 14.04 comes with 4.8.2. You could see if there is a backport of GCC 4.9 available for 14.04 (doesn't look like it), upgrade to 16.04, or you could use an older version of checktestdata which uses libboost regexes. Anything before my commit of 3-6-2016 should work. Jaap _______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org <mailto:DOMjudge-devel@domjudge.org> https://www.domjudge.org/mailman/listinfo/domjudge-devel <https://www.domjudge.org/mailman/listinfo/domjudge-devel>
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
FYI: you can obtain GCC 4.9 for Ubuntu 14.04 by adding the following repository:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
This is also what we use on the Ubuntu 14.04 Travis-CI build system.
Jaap
On 26-08-16 11:23, Jaap Eldering wrote:
On 25-08-16 15:00, David Venhoek wrote:
Dear Jaap,
Thanks for the quick reply, my appologies for not reading the documentation properly.
No worries.
I have attached a small patch (based on the master branch) that adds detection of a failing std::regex implementation to configure.ac http://configure.ac.
I applied it, but had to make some small fixes and also needed to add an extra M4 macro to test and set compiler C++11 support.
Could you check if the configure tests now correctly report a failure on Ubuntu 14.04?
Jaap
On Thu, Aug 25, 2016 at 2:01 PM, Jaap Eldering <jaap@jaapeldering.nl mailto:jaap@jaapeldering.nl> wrote:
Hi David, On 25-08-16 06:54, David Venhoek wrote: > Dear checktestdata maintainer(s), > > I tried installing checktestdata today on ubuntu 14.04.5, and noticed > that the REGEX command is not properly functioning. Running make check > reveals a failure in testcase 14, and manually running said testcase > results in the following unfortunately rather unhelpfull message; > > terminate called after throwing an instance of 'std::regex_error' > what(): regex_error > Aborted (core dumped) > > Is this a known issue, or are there any obvious causes I could check? This is a known issue: you need at least GCC version 4.9 to have complete C++11 regex support (see the README). Ubuntu 14.04 comes with 4.8.2. You could see if there is a backport of GCC 4.9 available for 14.04 (doesn't look like it), upgrade to 16.04, or you could use an older version of checktestdata which uses libboost regexes. Anything before my commit of 3-6-2016 should work. Jaap _______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org <mailto:DOMjudge-devel@domjudge.org> https://www.domjudge.org/mailman/listinfo/domjudge-devel <https://www.domjudge.org/mailman/listinfo/domjudge-devel>
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel