unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#63572: htmlcxx-0.87 fails to build
@ 2023-05-18 15:17 Arne Babenhauserheide
  2023-05-18 17:51 ` Bruno Victal
  0 siblings, 1 reply; 4+ messages in thread
From: Arne Babenhauserheide @ 2023-05-18 15:17 UTC (permalink / raw)
  To: 63572

[-- Attachment #1: Type: text/plain, Size: 1442 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: a9zh5fn26ds9jzq80c9x9rrxzfkmi9-htmlcxx-0.87.log --]
[-- Type: text/x-log, Size: 23866 bytes --]

starting phase `set-SOURCE-DATE-EPOCH'
phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds
starting phase `set-paths'
environment variable `PATH' set to `/gnu/store/sxx22f98vfbavcqmdksm6as8fvskpxiw-tar-1.34/bin:/gnu/store/x24bm49ag5dvki72mjdz195bfb89nrnb-gzip-1.12/bin:/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/bin:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin:/gnu/store/zmcf5kpqiighkbh7wslf91qdjwj06yr1-diffutils-3.8/bin:/gnu/store/210yfax18r2g2inxrml9435ikhfcca6m-patch-2.7.6/bin:/gnu/store/c8jyph2lxw0m9na34fg8h70n4nnnz7is-findutils-4.9.0/bin:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/bin:/gnu/store/xxcfsimvxz7z4dj593gnqbkzc6picwzq-sed-4.8/bin:/gnu/store/yrv5f70mn83a876b78i5s79dd2hsh0zf-grep-3.8/bin:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/bin:/gnu/store/a5i8avx826brw5grn3n4qv40g514505c-coreutils-9.1/bin:/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/bin:/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin:/gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/bin:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/bin:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/sbin'
environment variable `BASH_LOADABLES_PATH' unset
environment variable `C_INCLUDE_PATH' set to `/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/include:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/include:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/include:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/include:/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/include:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/include:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/include:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/include:/gnu/store/5iklcps70c0sfkxvlrhg8jhf3q4h18bj-linux-libre-headers-5.15.49/include'
environment variable `CPLUS_INCLUDE_PATH' set to `/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/include:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/include:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/include:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/include:/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/include:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/include:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/include/c++:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/include:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/include:/gnu/store/5iklcps70c0sfkxvlrhg8jhf3q4h18bj-linux-libre-headers-5.15.49/include'
environment variable `LIBRARY_PATH' set to `/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/lib:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/lib:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/lib:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/lib:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/lib:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib:/gnu/store/l0yryi5jsa1grnvw01c9nkz9c81cv224-glibc-2.35-static/lib:/gnu/store/visfdda934gvivwihwhlm63fdqhhcc8a-glibc-utf8-locales-2.35/lib'
environment variable `GUIX_LOCPATH' set to `/gnu/store/visfdda934gvivwihwhlm63fdqhhcc8a-glibc-utf8-locales-2.35/lib/locale'
phase `set-paths' succeeded after 0.0 seconds
starting phase `install-locale'
using 'en_US.utf8' locale for category "LC_ALL"
phase `install-locale' succeeded after 0.0 seconds
starting phase `unpack'
htmlcxx-0.87/
htmlcxx-0.87/install-sh
htmlcxx-0.87/configure.ac
htmlcxx-0.87/INSTALL
htmlcxx-0.87/ltmain.sh
htmlcxx-0.87/ASF-2.0
htmlcxx-0.87/wingetopt.h
htmlcxx-0.87/configure
htmlcxx-0.87/ylwrap
htmlcxx-0.87/css/
htmlcxx-0.87/ChangeLog
htmlcxx-0.87/AUTHORS
htmlcxx-0.87/htmlcxx.spec
htmlcxx-0.87/config.h.in
htmlcxx-0.87/config.guess
htmlcxx-0.87/html/
htmlcxx-0.87/depcomp
htmlcxx-0.87/missing
htmlcxx-0.87/README
htmlcxx-0.87/htmlcxx.pc.in
htmlcxx-0.87/Makefile.am
htmlcxx-0.87/config.sub
htmlcxx-0.87/htmlcxxapp.vcproj
htmlcxx-0.87/COPYING
htmlcxx-0.87/compile
htmlcxx-0.87/NEWS
htmlcxx-0.87/wingetopt.c
htmlcxx-0.87/htmlcxx.vcproj
htmlcxx-0.87/test-driver
htmlcxx-0.87/m4/
htmlcxx-0.87/LGPL_V2
htmlcxx-0.87/htmlcxx.cc
htmlcxx-0.87/Makefile.in
htmlcxx-0.87/aclocal.m4
htmlcxx-0.87/m4/ltversion.m4
htmlcxx-0.87/m4/libtool.m4
htmlcxx-0.87/m4/._ltoptions.m4
htmlcxx-0.87/m4/ltoptions.m4
htmlcxx-0.87/m4/spoon.m4
htmlcxx-0.87/m4/._ltsugar.m4
htmlcxx-0.87/m4/ltsugar.m4
htmlcxx-0.87/m4/._lt~obsolete.m4
htmlcxx-0.87/m4/lt~obsolete.m4
htmlcxx-0.87/html/tests.cc
htmlcxx-0.87/html/utils.h
htmlcxx-0.87/html/ParserSax.cc
htmlcxx-0.87/html/Node.cc
htmlcxx-0.87/html/debug.h
htmlcxx-0.87/html/CharsetConverter.h
htmlcxx-0.87/html/Uri.h
htmlcxx-0.87/html/utils.cc
htmlcxx-0.87/html/ParserSax.h
htmlcxx-0.87/html/Extensions.cc
htmlcxx-0.87/html/tree.h
htmlcxx-0.87/html/Node.h
htmlcxx-0.87/html/Uri.cc
htmlcxx-0.87/html/ParserDom.h
htmlcxx-0.87/html/wincstring.h
htmlcxx-0.87/html/Makefile.am
htmlcxx-0.87/html/ParserDom.cc
htmlcxx-0.87/html/gen_tld.pl
htmlcxx-0.87/html/uriTests.cc
htmlcxx-0.87/html/ci_string.h
htmlcxx-0.87/html/tld.h
htmlcxx-0.87/html/tld.list
htmlcxx-0.87/html/ParserSax.tcc
htmlcxx-0.87/html/CharsetConverter.cc
htmlcxx-0.87/html/Makefile.in
htmlcxx-0.87/html/Extensions.h
htmlcxx-0.87/css/css_syntax.h
htmlcxx-0.87/css/parser.h
htmlcxx-0.87/css/parser_pp.cc
htmlcxx-0.87/css/css_lex.c
htmlcxx-0.87/css/css_lex.l
htmlcxx-0.87/css/Makefile.am
htmlcxx-0.87/css/default.css
htmlcxx-0.87/css/css_syntax.c
htmlcxx-0.87/css/css_syntax.y
htmlcxx-0.87/css/parser_pp.h
htmlcxx-0.87/css/parser.c
htmlcxx-0.87/css/Makefile.in
htmlcxx-0.87/css/css_lex.h
phase `unpack' succeeded after 0.0 seconds
starting phase `bootstrap'
GNU build system bootstrapping not needed
phase `bootstrap' succeeded after 0.0 seconds
starting phase `patch-usr-bin-file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
patch-/usr/bin/file: ./configure: changing `/usr/bin/file' to `/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin/file'
phase `patch-usr-bin-file' succeeded after 0.0 seconds
starting phase `patch-source-shebangs'
patch-shebang: ./compile: changing `/bin/sh' to `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh'
patch-shebang: ./config.guess: changing `/bin/sh' to `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh'
patch-shebang: ./config.sub: changing `/bin/sh' to `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh'
patch-shebang: ./configure: changing `/bin/sh' to `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh'
patch-shebang: ./depcomp: changing `/bin/sh' to `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh'
patch-shebang: ./html/gen_tld.pl: warning: no binary for interpreter `perl' found in $PATH
patch-shebang: ./install-sh: changing `/bin/sh' to `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh'
patch-shebang: ./ltmain.sh: changing `/bin/sh' to `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh'
patch-shebang: ./missing: changing `/bin/sh' to `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh'
patch-shebang: ./test-driver: changing `/bin/sh' to `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh'
patch-shebang: ./ylwrap: changing `/bin/sh' to `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh'
phase `patch-source-shebangs' succeeded after 0.0 seconds
starting phase `configure'
source directory: "/tmp/guix-build-htmlcxx-0.87.drv-0/htmlcxx-0.87" (relative from build: ".")
build directory: "/tmp/guix-build-htmlcxx-0.87.drv-0/htmlcxx-0.87"
configure flags: ("CONFIG_SHELL=/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash" "SHELL=/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash" "--prefix=/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu")
checking for a BSD-compatible install... /gnu/store/a5i8avx826brw5grn3n4qv40g514505c-coreutils-9.1/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /gnu/store/a5i8avx826brw5grn3n4qv40g514505c-coreutils-9.1/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for flex... no
checking for lex... no
checking for bison... no
checking for byacc... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /gnu/store/xxcfsimvxz7z4dj593gnqbkzc6picwzq-sed-4.8/bin/sed
checking for grep that handles long lines and -e... /gnu/store/yrv5f70mn83a876b78i5s79dd2hsh0zf-grep-3.8/bin/grep
checking for egrep... /gnu/store/yrv5f70mn83a876b78i5s79dd2hsh0zf-grep-3.8/bin/grep -E
checking for fgrep... /gnu/store/yrv5f70mn83a876b78i5s79dd2hsh0zf-grep-3.8/bin/grep -F
checking for ld used by gcc... /gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin/ld
checking if the linker (/gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/bin/nm -B
checking the name lister (/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /gnu/store/a5i8avx826brw5grn3n4qv40g514505c-coreutils-9.1/bin/dd
checking how to truncate binary pipes... /gnu/store/a5i8avx826brw5grn3n4qv40g514505c-coreutils-9.1/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin/ld -m elf_x86_64
checking if the linker (/gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for main in -lfl... no
checking for iconv_open in -liconv... no
checking for ANSI C header files... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking if there is spoon... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating html/Makefile
config.status: creating css/Makefile
config.status: creating htmlcxx.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
phase `configure' succeeded after 1.4 seconds
starting phase `patch-generated-file-shebangs'
patch-shebang: ./html/gen_tld.pl: warning: no binary for interpreter `perl' found in $PATH
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
make  all-recursive
make[1]: Entering directory '/tmp/guix-build-htmlcxx-0.87.drv-0/htmlcxx-0.87'
Making all in html
make[2]: Entering directory '/tmp/guix-build-htmlcxx-0.87.drv-0/htmlcxx-0.87/html'
g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -DDEFAULT_CSS="\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\"" -MT tests.o -MD -MP -MF .deps/tests.Tpo -c -o tests.o tests.cc
/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -DDEFAULT_CSS="\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\"" -MT libhtmlcxx_la-ParserSax.lo -MD -MP -MF .deps/libhtmlcxx_la-ParserSax.Tpo -c -o libhtmlcxx_la-ParserSax.lo `test -f 'ParserSax.cc' || echo './'`ParserSax.cc
/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -DDEFAULT_CSS="\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\"" -MT libhtmlcxx_la-ParserDom.lo -MD -MP -MF .deps/libhtmlcxx_la-ParserDom.Tpo -c -o libhtmlcxx_la-ParserDom.lo `test -f 'ParserDom.cc' || echo './'`ParserDom.cc
/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -DDEFAULT_CSS="\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\"" -MT libhtmlcxx_la-Extensions.lo -MD -MP -MF .deps/libhtmlcxx_la-Extensions.Tpo -c -o libhtmlcxx_la-Extensions.lo `test -f 'Extensions.cc' || echo './'`Extensions.cc
/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -DDEFAULT_CSS="\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\"" -MT libhtmlcxx_la-CharsetConverter.lo -MD -MP -MF .deps/libhtmlcxx_la-CharsetConverter.Tpo -c -o libhtmlcxx_la-CharsetConverter.lo `test -f 'CharsetConverter.cc' || echo './'`CharsetConverter.cc
/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -DDEFAULT_CSS="\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\"" -MT libhtmlcxx_la-Uri.lo -MD -MP -MF .deps/libhtmlcxx_la-Uri.Tpo -c -o libhtmlcxx_la-Uri.lo `test -f 'Uri.cc' || echo './'`Uri.cc
/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -DDEFAULT_CSS="\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\"" -MT libhtmlcxx_la-Node.lo -MD -MP -MF .deps/libhtmlcxx_la-Node.Tpo -c -o libhtmlcxx_la-Node.lo `test -f 'Node.cc' || echo './'`Node.cc
/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -DDEFAULT_CSS="\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\"" -MT libhtmlcxx_la-utils.lo -MD -MP -MF .deps/libhtmlcxx_la-utils.Tpo -c -o libhtmlcxx_la-utils.lo `test -f 'utils.cc' || echo './'`utils.cc
g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -DDEFAULT_CSS="\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\"" -MT uriTests.o -MD -MP -MF .deps/uriTests.Tpo -c -o uriTests.o uriTests.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -DDEFAULT_CSS=\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\" -MT libhtmlcxx_la-CharsetConverter.lo -MD -MP -MF .deps/libhtmlcxx_la-CharsetConverter.Tpo -c CharsetConverter.cc  -fPIC -DPIC -o .libs/libhtmlcxx_la-CharsetConverter.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -DDEFAULT_CSS=\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\" -MT libhtmlcxx_la-Extensions.lo -MD -MP -MF .deps/libhtmlcxx_la-Extensions.Tpo -c Extensions.cc  -fPIC -DPIC -o .libs/libhtmlcxx_la-Extensions.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -DDEFAULT_CSS=\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\" -MT libhtmlcxx_la-ParserSax.lo -MD -MP -MF .deps/libhtmlcxx_la-ParserSax.Tpo -c ParserSax.cc  -fPIC -DPIC -o .libs/libhtmlcxx_la-ParserSax.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -DDEFAULT_CSS=\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\" -MT libhtmlcxx_la-Node.lo -MD -MP -MF .deps/libhtmlcxx_la-Node.Tpo -c Node.cc  -fPIC -DPIC -o .libs/libhtmlcxx_la-Node.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -DDEFAULT_CSS=\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\" -MT libhtmlcxx_la-utils.lo -MD -MP -MF .deps/libhtmlcxx_la-utils.Tpo -c utils.cc  -fPIC -DPIC -o .libs/libhtmlcxx_la-utils.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -DDEFAULT_CSS=\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\" -MT libhtmlcxx_la-ParserDom.lo -MD -MP -MF .deps/libhtmlcxx_la-ParserDom.Tpo -c ParserDom.cc  -fPIC -DPIC -o .libs/libhtmlcxx_la-ParserDom.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -DDEFAULT_CSS=\"/gnu/store/9apjglymmmgx7jw25n3lknp92szz0vgf-htmlcxx-0.87/share/htmlcxx/css/default.css\" -MT libhtmlcxx_la-Uri.lo -MD -MP -MF .deps/libhtmlcxx_la-Uri.Tpo -c Uri.cc  -fPIC -DPIC -o .libs/libhtmlcxx_la-Uri.o
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);
      |                                                                                          ^~~~~
CharsetConverter.cc:10:74: error: ISO C++17 does not allow dynamic exception specifications
   10 | CharsetConverter::CharsetConverter(const string &from, const string &to) throw (Exception)
      |                                                                          ^~~~~
make[2]: *** [Makefile:728: libhtmlcxx_la-CharsetConverter.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from tests.cc:6:
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);
      |                                                                                          ^~~~~
make[2]: *** [Makefile:686: tests.o] Error 1
mv -f .deps/uriTests.Tpo .deps/uriTests.Po
mv -f .deps/libhtmlcxx_la-Extensions.Tpo .deps/libhtmlcxx_la-Extensions.Plo
mv -f .deps/libhtmlcxx_la-ParserSax.Tpo .deps/libhtmlcxx_la-ParserSax.Plo
mv -f .deps/libhtmlcxx_la-Uri.Tpo .deps/libhtmlcxx_la-Uri.Plo
mv -f .deps/libhtmlcxx_la-Node.Tpo .deps/libhtmlcxx_la-Node.Plo
mv -f .deps/libhtmlcxx_la-ParserDom.Tpo .deps/libhtmlcxx_la-ParserDom.Plo
mv -f .deps/libhtmlcxx_la-utils.Tpo .deps/libhtmlcxx_la-utils.Plo
make[2]: Leaving directory '/tmp/guix-build-htmlcxx-0.87.drv-0/htmlcxx-0.87/html'
make[1]: *** [Makefile:604: all-recursive] Error 1
make[1]: Leaving directory '/tmp/guix-build-htmlcxx-0.87.drv-0/htmlcxx-0.87'
make: *** [Makefile:424: all] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "32") exit-status: 2 term-signal: #f stop-signal: #f> 
phase `build' failed after 0.5 seconds
command "make" "-j" "32" failed with status 2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#63572: htmlcxx-0.87 fails to build
  2023-05-18 15:17 bug#63572: htmlcxx-0.87 fails to build Arne Babenhauserheide
@ 2023-05-18 17:51 ` Bruno Victal
  2023-05-20 21:43   ` bug#63572: [PATCH] " Dr. Arne Babenhauserheide
  0 siblings, 1 reply; 4+ messages in thread
From: Bruno Victal @ 2023-05-18 17:51 UTC (permalink / raw)
  To: Arne Babenhauserheide; +Cc: 63572

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#63572: [PATCH] Re: bug#63572: htmlcxx-0.87 fails to build
  2023-05-18 17:51 ` Bruno Victal
@ 2023-05-20 21:43   ` Dr. Arne Babenhauserheide
  2023-05-24  8:43     ` Efraim Flashner
  0 siblings, 1 reply; 4+ messages in thread
From: Dr. Arne Babenhauserheide @ 2023-05-20 21:43 UTC (permalink / raw)
  To: Bruno Victal; +Cc: 63572


[-- Attachment #1.1: Type: text/plain, Size: 794 bytes --]

Hi Bruno,

Bruno Victal <mirai@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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-htmlcxx-add-std-c-11-to-configure-flags.patch --]
[-- Type: text/x-patch, Size: 1248 bytes --]

From 0a5478a83129efa07fc366c01f793c809a42ce99 Mon Sep 17 00:00:00 2001
Message-Id: <0a5478a83129efa07fc366c01f793c809a42ce99.1684619285.git.arne_bab@web.de>
From: Arne Babenhauserheide <arne_bab@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


[-- Attachment #1.3: Type: text/plain, Size: 101 bytes --]


Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#63572: [PATCH] Re: bug#63572: htmlcxx-0.87 fails to build
  2023-05-20 21:43   ` bug#63572: [PATCH] " Dr. Arne Babenhauserheide
@ 2023-05-24  8:43     ` Efraim Flashner
  0 siblings, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2023-05-24  8:43 UTC (permalink / raw)
  To: Dr. Arne Babenhauserheide; +Cc: 63572-done, Bruno Victal

[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]

On Sat, May 20, 2023 at 11:43:46PM +0200, Dr. Arne Babenhauserheide wrote:
> Hi Bruno,
> 
> Bruno Victal <mirai@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@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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-24  8:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-18 15:17 bug#63572: htmlcxx-0.87 fails to build Arne Babenhauserheide
2023-05-18 17:51 ` Bruno Victal
2023-05-20 21:43   ` bug#63572: [PATCH] " Dr. Arne Babenhauserheide
2023-05-24  8:43     ` Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).