Gentoo Archives: gentoo-user

From: lee <lee@××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: should everything compile?
Date: Mon, 26 Dec 2016 21:46:06
Message-Id: 87lgv2fkm0.fsf@heimdali.yagibdah.de
In Reply to: [gentoo-user] Re: should everything compile? by "Holger Hoffstätte"
1 Holger Hoffstätte <holger@××××××××××××××××××.com> writes:
2
3 > On Mon, 26 Dec 2016 21:09:08 +0100, lee wrote:
4 >
5 >> Hi,
6 >>
7 >> there are some things that refuse to compile. One of them is
8 >> openimageio.
9 >>
10 >> Is this a bug, or am I missing something? Do I need to update something
11 >> else first?
12 >
13 > The latter, sort of. The error in question..
14 >
15
16 > [...]
17 >> | ../libOpenImageIO/libOpenImageIO.so.1.6.13: undefined reference to `Imf_2_1::Header::name[abi:cxx11]() const'
18 >> | ../libOpenImageIO/libOpenImageIO.so.1.6.13: undefined reference to `Imf_2_1::Header::setType(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
19 >> | ../libOpenImageIO/libOpenImageIO.so.1.6.13: undefined reference to
20 >> | `Imf_2_1::TypedAttribute<std::__cxx11::basic_string<char,
21 >> | std::char_traits<char>, std::allocator<char> >
22 >> | >::writeValueTo(Imf_2_1::OStream&, int) const'
23 >> | collect2: error: ld returned 1 exit status
24 > [..]
25 >
26 > ..indicates a mismatch in C++11 ABI which changed in gcc5. What happens is that one the
27 > dependencies of openimageio was built against the old C++11 std::string ABI (hence the
28 > link errors), and needs to be rebuilt. It looks to be "Imf" aka libIlmImf,
29 > whatever that is. Try to rebuild it with --oneshot and it should work.
30 > If a similar error pops up for a different dependency, repeat. :)
31
32 Hm, this is really bad because it's difficult to figure out what needs
33 to be rebuilt. Is there a way to rebuild everything in some order that
34 works?
35
36 Here's the next one already, and what would I need to rebuild for that?
37 I can remove the package, though there will probably many more that
38 don't compile.
39
40
41 ,----
42 | >>> Emerging (19 of 109) dev-ml/camlp4-4.02.1_p3::gentoo
43 | * camlp4-4.02.1_p3.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
44 | >>> Unpacking source...
45 | >>> Unpacking camlp4-4.02.1_p3.tar.gz to /var/tmp/portage/dev-ml/camlp4-4.02.1_p3/work
46 | >>> Source unpacked in /var/tmp/portage/dev-ml/camlp4-4.02.1_p3/work
47 | >>> Preparing source in /var/tmp/portage/dev-ml/camlp4-4.02.1_p3/work/camlp4-4.02.1-3 ...
48 | >>> Source prepared.
49 | >>> Configuring source in /var/tmp/portage/dev-ml/camlp4-4.02.1_p3/work/camlp4-4.02.1-3 ...
50 | >>> Source configured.
51 | >>> Compiling source in /var/tmp/portage/dev-ml/camlp4-4.02.1_p3/work/camlp4-4.02.1-3 ...
52 | make -j16 byte
53 | ocamlbuild -classic-display -no-ocamlfind `./build/camlp4-byte-only.sh`
54 | + echo camlp4/Camlp4.cmo camlp4/Camlp4Top.cmo camlp4/camlp4prof.byte camlp4/mkcamlp4.byte camlp4/camlp4.byte camlp4/camlp4fulllib.cma camlp4/camlp4boot.byte camlp4/camlp4boot.cma camlp4/camlp4r.byte camlp4/camlp4r.cma camlp4/camlp4rf.byte
55 | camlp4/camlp4rf.cma camlp4/camlp4o.byte camlp4/camlp4o.cma camlp4/camlp4of.byte camlp4/camlp4of.cma camlp4/camlp4oof.byte camlp4/camlp4oof.cma camlp4/camlp4orf.byte camlp4/camlp4orf.cma camlp4/Camlp4Parsers/Camlp4AstLoader.cmo camlp4/Cam
56 | lp4Parsers/Camlp4DebugParser.cmo camlp4/Camlp4Parsers/Camlp4GrammarParser.cmo camlp4/Camlp4Parsers/Camlp4ListComprehension.cmo camlp4/Camlp4Parsers/Camlp4MacroParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlOriginalQuotationExpander.cmo camlp4
57 | /Camlp4Parsers/Camlp4OCamlParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlParserParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlReloadedParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser
58 | .cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedQuotationExpander.cmo camlp4/Camlp4Parsers/Camlp4QuotationCommon.cmo camlp4/Camlp4Parsers/Camlp4QuotationExpander.cmo camlp4/Camlp4Printers/Camlp4AstDumper.cmo camlp4/Camlp4Printers/Camlp4AutoPr
59 | inter.cmo camlp4/Camlp4Printers/Camlp4NullDumper.cmo camlp4/Camlp4Printers/Camlp4OCamlAstDumper.cmo camlp4/Camlp4Printers/Camlp4OCamlPrinter.cmo camlp4/Camlp4Printers/Camlp4OCamlRevisedPrinter.cmo camlp4/Camlp4Filters/Camlp4AstLifter.cmo
60 | camlp4/Camlp4Filters/Camlp4ExceptionTracer.cmo camlp4/Camlp4Filters/Camlp4FoldGenerator.cmo camlp4/Camlp4Filters/Camlp4LocationStripper.cmo camlp4/Camlp4Filters/Camlp4MapGenerator.cmo camlp4/Camlp4Filters/Camlp4MetaGenerator.cmo camlp4/Ca
61 | mlp4Filters/Camlp4Profiler.cmo camlp4/Camlp4Filters/Camlp4TrashRemover.cmo
62 | /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib64/ocaml/ocamlbuild /usr/lib64/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild_config.ml myocamlbuild.ml /usr/lib64/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
63 | /usr/bin/ocamldep.opt -modules camlp4/boot/camlp4boot.ml > camlp4/boot/camlp4boot.ml.depends
64 | /usr/bin/ocamldep.opt -modules camlp4/boot/Camlp4.ml > camlp4/boot/Camlp4.ml.depends
65 | /usr/bin/ocamldep.opt -modules camlp4/config/Camlp4_config.mli > camlp4/config/Camlp4_config.mli.depends
66 | cp /usr/lib64/ocaml/compiler-libs/warnings.cmi camlp4/import/warnings.cmi
67 | cp /usr/lib64/ocaml/compiler-libs/location.cmi camlp4/import/location.cmi
68 | cp /usr/lib64/ocaml/compiler-libs/longident.cmi camlp4/import/longident.cmi
69 | cp /usr/lib64/ocaml/compiler-libs/asttypes.cmi camlp4/import/asttypes.cmi
70 | cp /usr/lib64/ocaml/compiler-libs/parsetree.cmi camlp4/import/parsetree.cmi
71 | cp /usr/lib64/ocaml/compiler-libs/outcometree.cmi camlp4/import/outcometree.cmi
72 | cp /usr/lib64/ocaml/compiler-libs/oprint.cmi camlp4/import/oprint.cmi
73 | cp /usr/lib64/ocaml/compiler-libs/toploop.cmi camlp4/import/toploop.cmi
74 | /usr/bin/ocamlc.opt -c -g -w Z -I camlp4/import -warn-error A-3 -I camlp4/config -I camlp4 -o camlp4/config/Camlp4_config.cmi camlp4/config/Camlp4_config.mli
75 | /usr/bin/ocamlc.opt -c -g -w a -I camlp4/import -warn-error A-3 -I camlp4/config -I camlp4/boot -o camlp4/boot/Camlp4.cmo camlp4/boot/Camlp4.ml
76 | + /usr/bin/ocamlc.opt -c -g -w a -I camlp4/import -warn-error A-3 -I camlp4/config -I camlp4/boot -o camlp4/boot/Camlp4.cmo camlp4/boot/Camlp4.ml
77 | File "camlp4/boot/Camlp4.ml", line 14866, characters 41-44:
78 | Error: This expression has type string but an expression was expected of type
79 | Asttypes.arg_label
80 | Command exited with code 2.
81 | Makefile:13: recipe for target 'byte' failed
82 | make: *** [byte] Error 10
83 | * ERROR: dev-ml/camlp4-4.02.1_p3::gentoo failed (compile phase):
84 | * emake failed
85 `----

Replies

Subject Author
[gentoo-user] Re: should everything compile? "Holger Hoffstätte" <holger@××××××××××××××××××.com>