GNU bug report logs - #63572
htmlcxx-0.87 fails to build

Previous Next

Package: guix;

Reported by: Arne Babenhauserheide <Arne_Bab <at> web.de>

Date: Thu, 18 May 2023 15:18:04 UTC

Severity: normal

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63572 in the body.
You can then email your comments to 63572 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#63572; Package guix. (Thu, 18 May 2023 15:18:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arne Babenhauserheide <Arne_Bab <at> web.de>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 18 May 2023 15:18:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arne Babenhauserheide <Arne_Bab <at> web.de>
To: bug-guix <at> gnu.org
Subject: htmlcxx-0.87 fails to build
Date: Thu, 18 May 2023 17:17:48 +0200
[Message part 1 (text/plain, inline)]
Hi,

To reproduce: guix build htmlcxx — it blocks several dependents.

The relevant part of the error:

In file included from CharsetConverter.cc:5:
CharsetConverter.h:20:90: error: ISO C++17 does not allow dynamic exception specifications
   20 |                         CharsetConverter(const std::string &from, const std::string &to) throw (Exception);

These were deprecated in C++11 and removed in C++17: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0003r5.html

So this may just need compiler parameters to set C++11 instead of C++17
as target.

A first step towards the fix might be

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 6e79fe99b8..9c1319f3af 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -8130,6 +8130,9 @@ (define-public htmlcxx
        (sha256
         (base32 "1j3mzjlczjrk4ahc43s6kzpvzypzjmqz4sillnca5yadrwwgjf2x"))))
     (build-system gnu-build-system)
+    (arguments
+     ;; ISO C++17 does not allow dynamic exception specifications
+     `(#:configure-flags '("CXXFLAGS=-std=c++11")))
     (home-page "https://htmlcxx.sourceforge.net/")
     (synopsis "Simple non-validating CSS1 and HTML parser for C++")
     (description "htmlcxx is a simple non-validating CSS1 and HTML parser for


The complete log is attached.

Best wishes,
Arne

-- 
unpolitisch sein
heißt politisch sein, 
ohne es zu merken. 
- ArneBab
[a9zh5fn26ds9jzq80c9x9rrxzfkmi9-htmlcxx-0.87.log (text/x-log, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#63572; Package guix. (Thu, 18 May 2023 17:52:02 GMT) Full text and rfc822 format available.

Message #8 received at 63572 <at> debbugs.gnu.org (full text, mbox):

From: Bruno Victal <mirai <at> makinata.eu>
To: Arne Babenhauserheide <Arne_Bab <at> web.de>
Cc: 63572 <at> debbugs.gnu.org
Subject: Re: bug#63572: htmlcxx-0.87 fails to build
Date: Thu, 18 May 2023 18:51:56 +0100
Hi Arne,

On 2023-05-18 16:17, Arne Babenhauserheide wrote:
> Hi,
> 
> To reproduce: guix build htmlcxx — it blocks several dependents.
> 
> The relevant part of the error:
> 
> In file included from CharsetConverter.cc:5:
> CharsetConverter.h:20:90: error: ISO C++17 does not allow dynamic exception specifications
>    20 |                         CharsetConverter(const std::string &from, const std::string &to) throw (Exception);
> 
> These were deprecated in C++11 and removed in C++17: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0003r5.html
> 
> So this may just need compiler parameters to set C++11 instead of C++17
> as target.

Looking at the README file from <https://sourceforge.net/p/htmlcxx/code/ci/master/tree/>,
it looks to me that upstream has moved to <https://github.com/bonitao/htmlcxx>. (judging by the name of the repo owner)
Can you try asking upstream for a new release? The last commit (<https://github.com/bonitao/htmlcxx/commit/0ffa3e90b7dc3944f199fd80ab47c2a82589209a>)
has the message 'Fix c+11 compilation'.


Cheers,
Bruno




Information forwarded to bug-guix <at> gnu.org:
bug#63572; Package guix. (Sat, 20 May 2023 21:50:02 GMT) Full text and rfc822 format available.

Message #11 received at 63572 <at> debbugs.gnu.org (full text, mbox):

From: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>
To: Bruno Victal <mirai <at> makinata.eu>
Cc: 63572 <at> debbugs.gnu.org
Subject: [PATCH] Re: bug#63572: htmlcxx-0.87 fails to build
Date: Sat, 20 May 2023 23:43:46 +0200
[Message part 1 (text/plain, inline)]
Hi Bruno,

Bruno Victal <mirai <at> makinata.eu> writes:
>> So this may just need compiler parameters to set C++11 instead of C++17
>> as target.
>
> Looking at the README file from <https://sourceforge.net/p/htmlcxx/code/ci/master/tree/>,
> it looks to me that upstream has moved to <https://github.com/bonitao/htmlcxx>. (judging by the name of the repo owner)
> Can you try asking upstream for a new release? The last commit (<https://github.com/bonitao/htmlcxx/commit/0ffa3e90b7dc3944f199fd80ab47c2a82589209a>)
> has the message 'Fix c+11 compilation'.

I tried to build from the latest commit, but it did not build.

But I could now test adding the std argument and that works.

$ ./pre-inst-env guix build htmlcxx
/gnu/store/3bqrqs2zzx1gy4xc1g9i59z8nnhwv2rs-htmlcxx-0.87

A patch is attached.

[0001-gnu-htmlcxx-add-std-c-11-to-configure-flags.patch (text/x-patch, inline)]
From 0a5478a83129efa07fc366c01f793c809a42ce99 Mon Sep 17 00:00:00 2001
Message-Id: <0a5478a83129efa07fc366c01f793c809a42ce99.1684619285.git.arne_bab <at> web.de>
From: Arne Babenhauserheide <arne_bab <at> web.de>
Date: Sat, 20 May 2023 23:45:43 +0200
Subject: [PATCH] gnu: htmlcxx: add --std=c++11 to configure flags.

* gnu/packages/web.scm (htmlcxx): add CXXFLAGS to configure-flag. C++17
  removed dynamic exception specifications.
---
 gnu/packages/web.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index fe52f673e2..aa9d23f19c 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -8248,6 +8248,9 @@ (define-public htmlcxx
        (sha256
         (base32 "1j3mzjlczjrk4ahc43s6kzpvzypzjmqz4sillnca5yadrwwgjf2x"))))
     (build-system gnu-build-system)
+    (arguments
+     ;; ISO C++17 does not allow dynamic exception specifications
+     `(#:configure-flags '("CXXFLAGS=-std=c++11")))
     (home-page "https://htmlcxx.sourceforge.net/")
     (synopsis "Simple non-validating CSS1 and HTML parser for C++")
     (description "htmlcxx is a simple non-validating CSS1 and HTML parser for

base-commit: bd7b795aeb9d35ac7b825ad4d0cf0088f18e1167
-- 
2.40.1

[Message part 3 (text/plain, inline)]
Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
[signature.asc (application/pgp-signature, inline)]

Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Wed, 24 May 2023 08:44:05 GMT) Full text and rfc822 format available.

Notification sent to Arne Babenhauserheide <Arne_Bab <at> web.de>:
bug acknowledged by developer. (Wed, 24 May 2023 08:44:05 GMT) Full text and rfc822 format available.

Message #16 received at 63572-done <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>
Cc: 63572-done <at> debbugs.gnu.org, Bruno Victal <mirai <at> makinata.eu>
Subject: Re: bug#63572: [PATCH] Re: bug#63572: htmlcxx-0.87 fails to build
Date: Wed, 24 May 2023 11:43:33 +0300
[Message part 1 (text/plain, inline)]
On Sat, May 20, 2023 at 11:43:46PM +0200, Dr. Arne Babenhauserheide wrote:
> Hi Bruno,
> 
> Bruno Victal <mirai <at> makinata.eu> writes:
> >> So this may just need compiler parameters to set C++11 instead of C++17
> >> as target.
> >
> > Looking at the README file from <https://sourceforge.net/p/htmlcxx/code/ci/master/tree/>,
> > it looks to me that upstream has moved to <https://github.com/bonitao/htmlcxx>. (judging by the name of the repo owner)
> > Can you try asking upstream for a new release? The last commit (<https://github.com/bonitao/htmlcxx/commit/0ffa3e90b7dc3944f199fd80ab47c2a82589209a>)
> > has the message 'Fix c+11 compilation'.
> 
> I tried to build from the latest commit, but it did not build.
> 
> But I could now test adding the std argument and that works.

Thanks for checking.

> $ ./pre-inst-env guix build htmlcxx
> /gnu/store/3bqrqs2zzx1gy4xc1g9i59z8nnhwv2rs-htmlcxx-0.87
> 
> A patch is attached.

I didn't see any dependant packages. Patch pushed! Thanks.


-- 
Efraim Flashner   <efraim <at> flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 21 Jun 2023 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 308 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.