[SOLVED] regression on -current with doxygen (gcc-12.1.0)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,560
Rep:
regression on -current with doxygen (gcc-12.1.0)
doxygen doesn't build with gcc-12.1.0:
Code:
[ 23%] Built target vhdlparser
Consolidate compiler generated dependencies of target doxycfg
[ 23%] Building CXX object src/CMakeFiles/doxycfg.dir/message.cpp.o
In file included from /tmp/doxygen-1.9.4/src/doxygen.h:24,
from /tmp/doxygen-1.9.4/src/message.cpp:21:
/tmp/doxygen-1.9.4/src/cache.h: In member function ‘V* Cache<K, V>::insert(const K&, V&&)’:
/tmp/doxygen-1.9.4/src/cache.h:53:14: error: ‘exchange’ is not a member of ‘std’
53 | std::exchange(it->second->second,value);
| ^~~~~~~~
make[2]: *** [src/CMakeFiles/doxycfg.dir/build.make:170: src/CMakeFiles/doxycfg.dir/message.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:595: src/CMakeFiles/doxycfg.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
When you follow the instructions and look at the doxygen_manuel.log you can see this:
Code:
! LaTeX Error: File `sectsty.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
<read *>
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,560
Original Poster
Rep:
Finally,I found a solution,it needed 6 'test and try' texlive build to achieve it:
I copied a list of missing sty and def files to get doxygen build without any errors. I modified the texlive.slackbuild as following:
Code:
# Create some directories to make it clear that they're owned by this package
mkdir -p $PKG$TEXMFROOT/{texmf-config,texmf-var,texmf-local}
# install various sty and def files from previous installation
mkdir -v $PKG/usr/share/texmf-dist/tex/latex/{adjustbox,etoc,sectsty,tocloft,varwidth,stackengine}
cp -v $CWD/sectsty.sty $PKG/usr/share/texmf-dist/tex/latex/sectsty/
cp -v $CWD/tocloft.sty $PKG/usr/share/texmf-dist/tex/latex/tocloft/
cp -v $CWD/varwidth.sty $PKG/usr/share/texmf-dist/tex/latex/varwidth/
cp -v $CWD/adjcalc.sty $PKG/usr/share/texmf-dist/tex/latex/adjustbox/
cp -v $CWD/adjustbox.sty $PKG/usr/share/texmf-dist/tex/latex/adjustbox/
cp -v $CWD/tc-dvips.def $PKG/usr/share/texmf-dist/tex/latex/adjustbox/
cp -v $CWD/tc-pdftx.def $PKG/usr/share/texmf-dist/tex/latex/adjustbox/
cp -v $CWD/tc-pgf.def $PKG/usr/share/texmf-dist/tex/latex/adjustbox/
cp -v $CWD/tc-xetex.def $PKG/usr/share/texmf-dist/tex/latex/adjustbox/
cp -v $CWD/trimclip.sty $PKG/usr/share/texmf-dist/tex/latex/adjustbox/
cp -v $CWD/stackengine.sty $PKG/usr/share/texmf-dist/tex/latex/stackengine/
cp -v $CWD/etoc.sty $PKG/usr/share/texmf-dist/tex/latex/etoc/
# Add texlive perl modules
mkdir -p $PKG/usr/share/perl5
mv $PKG$TEXMFROOT/texmf-dist/scripts/texlive/TeXLive $PKG/usr/share/perl5/
It's just a trick, but it gives you what's missing (franzen).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.