Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[resolved] texlive-core-2016-r5 failed to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
intord
n00b
n00b


Joined: 12 Aug 2017
Posts: 33

PostPosted: Sat Feb 03, 2018 7:18 pm    Post subject: [resolved] texlive-core-2016-r5 failed to compile Reply with quote

hi all,

got this error after very latest upgrade:

Code:
c
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc: In function 'int main(int, char**)':
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:89:17: error: 'class Object' has no member named 'initNull'; did you mean 'isNull'?
     catalogDict.initNull();
                 ^~~~~~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:90:34: error: no matching function for call to 'XRef::getCatalog(Object*)'
     xref->getCatalog(&catalogDict);
                                  ^
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:48:0:
/usr/include/poppler/XRef.h:144:10: note: candidate: Object XRef::getCatalog()
   Object getCatalog();
          ^~~~~~~~~~
/usr/include/poppler/XRef.h:144:10: note:   candidate expects 0 arguments, 1 provided
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:95:15: error: 'class Object' has no member named 'initNull'; did you mean 'isNull'?
     srcStream.initNull();
               ^~~~~~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:97:48: error: invalid conversion from 'Object*' to 'int' [-fpermissive]
         catalogDict.dictLookup("SourceObject", &srcStream);
                                                ^~~~~~~~~~
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:0:
/usr/include/poppler/Object.h:362:15: note:   initializing argument 2 of 'Object Object::dictLookup(const char*, int) const'
 inline Object Object::dictLookup(const char *key, int recursion) const
               ^~~~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:103:17: error: 'class Object' has no member named 'initNull'; did you mean 'isNull'?
         srcName.initNull();
                 ^~~~~~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:104:64: error: invalid conversion from 'Object*' to 'int' [-fpermissive]
         srcStream.getStream()->getDict()->lookup("SourceName", &srcName);
                                                                ^~~~~~~~
In file included from /usr/include/poppler/Object.h:342:0,
                 from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:
/usr/include/poppler/Dict.h:78:10: note:   initializing argument 2 of 'Object Dict::lookup(const char*, int) const'
   Object lookup(const char *key, int recursion = 0) const;
          ^~~~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:113:37: error: invalid conversion from 'Object*' to 'int' [-fpermissive]
         xref->fetch(objnum, objgen, &srcStream);
                                     ^~~~~~~~~~
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:48:0:
/usr/include/poppler/XRef.h:147:10: note:   initializing argument 3 of 'Object XRef::fetch(int, int, int)'
   Object fetch(int num, int gen, int recursion = 0);
          ^~~~~
In file included from /usr/include/poppler/GlobalParams.h:42:0,
                 from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:53:
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:162:50: error: invalid conversion from 'Object*' to 'int' [-fpermissive]
                 assert(xref->fetch(e->offset, 0, &objStr)->isStream());
                                                  ^~
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:48:0:
/usr/include/poppler/XRef.h:147:10: note:   initializing argument 3 of 'Object XRef::fetch(int, int, int)'
   Object fetch(int num, int gen, int recursion = 0);
          ^~~~~
In file included from /usr/include/poppler/GlobalParams.h:42:0,
                 from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:53:
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:162:58: error: base operand of '->' has non-pointer type 'Object'
                 assert(xref->fetch(e->offset, 0, &objStr)->isStream());
                                                          ^
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:163:64: error: invalid conversion from 'Object*' to 'int' [-fpermissive]
                 nObjects = objStr.streamGetDict()->lookup("N", &obj1)->getInt();
                                                                ^~~~~
In file included from /usr/include/poppler/Object.h:342:0,
                 from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:
/usr/include/poppler/Dict.h:78:10: note:   initializing argument 2 of 'Object Dict::lookup(const char*, int) const'
   Object lookup(const char *key, int recursion = 0) const;
          ^~~~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:163:70: error: base operand of '->' has non-pointer type 'Object'
                 nObjects = objStr.streamGetDict()->lookup("N", &obj1)->getInt();
                                                                      ^~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:164:27: error: 'void Object::free()' is private within this context
                 obj1.free();
                           ^
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:0:
/usr/include/poppler/Object.h:292:8: note: declared private here
   void free();
        ^~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:165:65: error: invalid conversion from 'Object*' to 'int' [-fpermissive]
                 first = objStr.streamGetDict()->lookup("First", &obj1)->getInt();
                                                                 ^~~~~
In file included from /usr/include/poppler/Object.h:342:0,
                 from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:
/usr/include/poppler/Dict.h:78:10: note:   initializing argument 2 of 'Object Dict::lookup(const char*, int) const'
   Object lookup(const char *key, int recursion = 0) const;
          ^~~~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:165:71: error: base operand of '->' has non-pointer type 'Object'
                 first = objStr.streamGetDict()->lookup("First", &obj1)->getInt();
                                                                       ^~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:166:27: error: 'void Object::free()' is private within this context
                 obj1.free();
                           ^
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:0:
/usr/include/poppler/Object.h:292:8: note: declared private here
   void free();
        ^~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:171:22: error: 'class Object' has no member named 'initNull'; did you mean 'isNull'?
                 obj1.initNull();
                      ^~~~~~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:172:78: error: use of deleted function 'Object::Object(T) [with T = Object*]'
                 str = new EmbedStream(objStr.getStream(), &obj1, gTrue, first);
                                                                              ^
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:0:
/usr/include/poppler/Object.h:169:24: note: declared here
   template<typename T> Object(T) = delete;
                        ^~~~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:175:41: error: use of deleted function 'Object Parser::getObj(T) [with T = Object*]'
                     parser->getObj(&obj1);
                                         ^
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:45:0:
/usr/include/poppler/Parser.h:58:31: note: declared here
   template<typename T> Object getObj(T) = delete;
                               ^~~~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:176:41: error: use of deleted function 'Object Parser::getObj(T) [with T = Object*]'
                     parser->getObj(&obj2);
                                         ^
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:45:0:
/usr/include/poppler/Parser.h:58:31: note: declared here
   template<typename T> Object getObj(T) = delete;
                               ^~~~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:179:31: error: 'void Object::free()' is private within this context
                     obj1.free();
                               ^
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:0:
/usr/include/poppler/Object.h:292:8: note: declared private here
   void free();
        ^~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:180:31: error: 'void Object::free()' is private within this context
                     obj2.free();
                               ^
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:0:
/usr/include/poppler/Object.h:292:8: note: declared private here
   void free();
        ^~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:184:29: error: 'void Object::free()' is private within this context
                 objStr.free();
                             ^
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:0:
/usr/include/poppler/Object.h:292:8: note: declared private here
   void free();
        ^~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:195:24: error: 'void Object::free()' is private within this context
         srcStream.free();
                        ^
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:0:
/usr/include/poppler/Object.h:292:8: note: declared private here
   void free();
        ^~~~
/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:204:22: error: 'void Object::free()' is private within this context
     catalogDict.free();
                      ^
In file included from /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/pdftexdir/pdftosrc.cc:42:0:
/usr/include/poppler/Object.h:292:8: note: declared private here
   void free();
        ^~~~
make[5]: *** [Makefile:13179: pdftexdir/pdftosrc-pdftosrc.o] Error 1
make[5]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c -I./w2c -I/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/synctexdir -DSYNCTEX_USE_LOCAL_HEADER -Wimplicit -Wreturn-type -march=broadwell -O2 -pipe -c /var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-20160523-source/texk/web2c/synctexdir/synctex_parser.c -o synctexdir/libsynctex_la-synctex_parser.o >/dev/null 2>&1
make[5]: Leaving directory '/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-core-2016_build/texk/web2c'
make[4]: *** [Makefile:13447: all-recursive] Error 1
make[4]: Leaving directory '/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-core-2016_build/texk/web2c'
make[3]: *** [Makefile:3820: all] Error 2
make[3]: Leaving directory '/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-core-2016_build/texk/web2c'
make[2]: *** [Makefile:901: recurse] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-core-2016_build/texk'
make[1]: *** [Makefile:481: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-core-2016_build/texk'
make: *** [Makefile:569: all-recursive] Error 1
 * ERROR: app-text/texlive-core-2016-r5::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-text/texlive-core-2016-r5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/texlive-core-2016-r5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/texlive-core-2016-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/texlive-core-2016-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-core-2016_build'
 * S: '/var/tmp/portage/app-text/texlive-core-2016-r5/work/texlive-core-2016_build'

>>> Failed to emerge app-text/texlive-core-2016-r5, Log file:

>>>  '/var/tmp/portage/app-text/texlive-core-2016-r5/temp/build.log'

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: dev-libs/icu-60.2
 *  - /usr/lib64/libicuuc.so.58
 *  - /usr/lib64/libicuuc.so.58.2
 *      used by /usr/bin/upmendex (app-text/texlive-core-2016-r5)
 *  - /usr/lib64/libicudata.so.58
 *  - /usr/lib64/libicudata.so.58.2
 *  - /usr/lib64/libicui18n.so.58
 *  - /usr/lib64/libicui18n.so.58.2
 *      used by /usr/bin/upmendex (app-text/texlive-core-2016-r5)
>>> package: app-text/poppler-0.62.0-r1
 *  - /usr/lib64/libpoppler.so.68
 *  - /usr/lib64/libpoppler.so.68.0.0
 *      used by /usr/bin/luajittex (app-text/texlive-core-2016-r5)
 *      used by /usr/bin/luatex (app-text/texlive-core-2016-r5)
 *      used by /usr/bin/pdftex-texlive-core-2016 (app-text/texlive-core-2016-r5)
 *      used by /usr/bin/pdftosrc (app-text/texlive-core-2016-r5)
Use emerge @preserved-rebuild to rebuild packages using these libraries


my understanding that the package where CatalogDist is does not ahve initNull method so dependency is incorrect for textlive. However, how to identify what is this package is?

while reading other threads, found an email with exact same error saying that poppler api should be updated, it was dated in 2016.

poppler version:

Code:
gentoo # equery list poppler
 * Searching for poppler ...
[IP-] [  ] app-text/poppler-0.62.0-r1:0/73


did not see anytihng masked in /etc/portage/portage.mask related to texlive or poppler

what the problem should be?


Last edited by intord on Sat Feb 03, 2018 10:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6276

PostPosted: Sat Feb 03, 2018 7:27 pm    Post subject: Reply with quote

I doubt that texlive-core-2016 was (or ever will be) patched for the latest poppler version. Upgrade to texlive-2017 (or downgrade poppler to stable, 'though I don't think this would be a good idea).
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6831
Location: Austria

PostPosted: Sat Feb 03, 2018 7:29 pm    Post subject: Reply with quote

Unfortunately you need to upgrade texlive-core to ~arch, texlive-core-2016-r6 is currently pending stabilisation: https://bugs.gentoo.org/644802

mv wrote:
I doubt that texlive-core-2016 was (or ever will be) patched for the latest poppler version.

It is already.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
intord
n00b
n00b


Joined: 12 Aug 2017
Posts: 33

PostPosted: Sat Feb 03, 2018 8:34 pm    Post subject: Reply with quote

thanks, i went to https://packages.gentoo.org/packages/app-text/texlive-core and its 404 there.

when you are referring to

Quote:
pgrade texlive-core to ~arch


does this mean some separate repository? i searched on upgrade page manual and did not see anything that key word
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21362
Location: here

PostPosted: Sat Feb 03, 2018 8:58 pm    Post subject: Reply with quote

intord wrote:
does this mean some separate repository? i searched on upgrade page manual and did not see anything that key word

No, in gentoo there is only a portage tree where some version are stable and others no. With eix (app-portage/eix) you can see it
Code:
# eix texlive-core
* app-text/texlive-core
     Available versions:  2012-r1 ~2012-r3 ~2013-r3 2014-r4 2015-r1 2016-r5 ~2016-r6 ~2017-r2 ~2017-r3 {X cjk doc +luajittex source tk xetex}
     Homepage:            http://tug.org/texlive/
     Description:         A complete TeX distribution

version with '~' prefix are masked. For install one of these version use /etc/portage/package.accept_keywords
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6831
Location: Austria

PostPosted: Sat Feb 03, 2018 8:59 pm    Post subject: Reply with quote

Another way to check for versions is `equery l -p texlive-core`
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
intord
n00b
n00b


Joined: 12 Aug 2017
Posts: 33

PostPosted: Sat Feb 03, 2018 10:17 pm    Post subject: Reply with quote

ok thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum