Opened 4 years ago

Closed 17 months ago

#60113 closed defect (fixed)

auto-multiple-choice @1.4.0-201812291614_1 Error - build failure

Reported by: bg-mac Owned by: nortcele
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jmgoicolea (Jose Goicolea)
Port: auto-multiple-choice

Description

I was using auto-multiple-choice since a few months without problems, but after upgrading ports, it stopped working properly. I tried to reinstall it from port, but I got some errors. I thought it was due to broken links, so I tried googling it, but I didn't really understand how to proceed, so I tried radically, I uninstalled everything in port : sudo port uninstall installed.

After that, I tried to install auto-multiple-choice again : sudo port install auto-multiple-choice All the dependencies seemed to install properly, but at the end, I get this error: Building auto-multiple-choice Error: Failed to build auto-multiple-choice: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port auto-multiple-choice failed

I really don't know how to proceed now. I didn't find something totally similar in the previous tickets, but maybe I just didn't recognize it, in that case, I'm sorry.

I attach the log file which I found at /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/main.log.

I am working on OS X El Capitan, version 10.11. 6.

Thank you in advance for your help!

Attachments (6)

main.log (2.3 MB) - added by bg-mac 4 years ago.
test.xml (291 bytes) - added by nortcele 4 years ago.
test.xml a docbook document sample
main.2.log (2.8 MB) - added by bg-mac 4 years ago.
new main.log after trying again to build auto-multiple-choice
test.log (2.9 KB) - added by jmgoicolea (Jose Goicolea) 4 years ago.
output from test.tex
main1.log (1.0 MB) - added by bg-mac 4 years ago.
main2.log (505.2 KB) - added by bg-mac 4 years ago.

Change History (27)

Changed 4 years ago by bg-mac

Attachment: main.log added

comment:1 Changed 4 years ago by bg-mac

Keywords: auto-multiple-choice removed
Port: auto-multiple-choice added
Summary: Installation problem for auto-multiple-choiceauto-multiple-choice @1.4.0-201812291614_1 Error - build failure

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Owner: set to nortcele
Status: newassigned

There are a few different errors in the log, but you don't seem to have cleaned between attempts, so it's not clear if the later ones are just a consequence of the first one or not. The first one is

LaTeX Error: File `docbook.sty' not found.

which suggests dblatex is not correctly installed, despite being listed as a build dependency of auto-multiple-choice.

comment:3 Changed 4 years ago by bg-mac

Thank you for your answer!

But when I run sudo port install dblatex, I get

---> Computing dependencies for dblatex ---> Cleaning dblatex ---> Updating database of binaries ---> Updating database of C++ stdlib usage ---> Scanning binaries for linking errors ---> No broken files found. ---> No broken ports found.

So it seemed that all went correctly, right?

comment:4 Changed 4 years ago by jmroot (Joshua Root)

Yes, it would be unlikely that dblatex was not actually installed. But a file it provides wasn't found for some reason.

comment:5 Changed 4 years ago by bg-mac

Yes, I don't understand either... Has anyone a clue of what I could try?

comment:6 Changed 4 years ago by nortcele

Did you install MacTex? Or did you use Brew to install software? With a Macport installed version of TextLive and DBLatex, you should find a copy of this file in /opt/local/share/texmf-local/tex/latex/dblatex/style/docbook.sty.

Last edited 4 years ago by nortcele (previous) (diff)

comment:7 in reply to:  6 Changed 4 years ago by bg-mac

Yes, I think I installed MacTex (it is a dependency of auto-multiple-choice), through Macports (not Brew). And indeed, when I look in /opt/local/share/texmf-local/tex/latex/dblatex/style/, there is a file docbook.sty! What should I do so that it is recognized correctly when installing auto-multiple-choice? Thank you for your help!!

Replying to nortcele:

Did you install MacTex? Or did you use Brew to install software? With a Macport installed version of TextLive and DBLatex, you should find a copy of this file in /opt/local/share/texmf-local/tex/latex/dblatex/style/docbook.sty.

comment:8 Changed 4 years ago by nortcele

Macports' Texlive and MacTex are two different things. MacTex is a version of Texlive that is installed outside of Macports.

Macport version of Texlive should find the docbook.sty file as it is in the good place.

In terminal could you type the following command and show the result?

which pdflatex

The response should be

/opt/local/bin/pdflatex is provided by: texlive-latex

To see if Macport version of Texlive recognize dblatex (the docbook informations for latex) you could create a test folder, put in it the test.xml file. This file contains the following text, a simple Docbook document.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
                    "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
]>


<article class="techreport" status="final">


<para>Just some blabla.</para>

</article>

Then, in terminal, change cd to the test folder and type the following command.

/opt/local/bin/dblatex -t tex test.xml -o test.tex

If all is fine this command generate some temporary files and a test.pdffile.

Changed 4 years ago by nortcele

Attachment: test.xml added

test.xml a docbook document sample

comment:9 Changed 4 years ago by bg-mac

Thank you for your help! I am not sure I understand how the difference between Macports' Texlive and MacTex is important here. However:

  • when I type which pdflatex in the terminal, I get:
/opt/local/bin/pdflatex
  • when I did what you suggest with the test folder and test.xml file, and typing /opt/local/bin/dblatex -t tex test.xml -o test.tex in the terminal, I get:
/opt/local/bin/dblatex -t tex test.xml -o test.tex
Build the book set list...
Build the listings...
XSLT stylesheets DocBook - LaTeX 2e (0.3.10)
===================================================
'test.tex' successfully built

So it built the .tex file, but no .pdf file... Did I do something wrong? Thank you again to help me!

comment:10 Changed 4 years ago by nortcele

I forgot one step. Then convert the tex file to pdf with the following command.

pdflatex test.tex

comment:11 Changed 4 years ago by nortcele

If the command ends with the 'docbook.sty' not found error. Could you type the following command.

sudo mktexlsr

And then try to convert the tex file to pdf again.

If the pdf file is generated, auto-multiple-choice shouldn't have problem during installation. At least no docbook.sty problem.

comment:12 Changed 4 years ago by bg-mac

I did pdflatex test.tex, and it built the .pdf file correctly, with no error such as 'docbook.sty' not found.

However, when I try (again) sudo port install auto-multiple-choice, I get

--->  Computing dependencies for auto-multiple-choice
--->  Fetching archive for auto-multiple-choice
--->  Attempting to fetch auto-multiple-choice-1.4.0-201812291614_1.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/auto-multiple-choice
--->  Attempting to fetch auto-multiple-choice-1.4.0-201812291614_1.darwin_15.x86_64.tbz2 from https://packages.macports.org/auto-multiple-choice
--->  Attempting to fetch auto-multiple-choice-1.4.0-201812291614_1.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/auto-multiple-choice
--->  Building auto-multiple-choice
Error: Failed to build auto-multiple-choice: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port auto-multiple-choice failed

I attach again the .log file.

Changed 4 years ago by bg-mac

Attachment: main.2.log added

new main.log after trying again to build auto-multiple-choice

comment:13 Changed 4 years ago by bg-mac

Does anyone have an idea to help me build AMC from MacPorts in view of this error I get? I'm sorry to insist, but on my side, I don't have any clue on how to proceed...

Thank you in advance for your help!

Changed 4 years ago by jmgoicolea (Jose Goicolea)

Attachment: test.log added

output from test.tex

comment:14 Changed 4 years ago by jmgoicolea (Jose Goicolea)

I have a similar problem, auto-multiple-choice stopped running after port updates, and when trying to reinstall it failed. The installation log reports missing docbook.sty. I performed the above steps, checked texlive installation, dblatex reinstalled and includes docbook.sty, but after this test.tex still reports docbook.sty as missing. I have attached the test.log. It seems strange, I do not understand what is happening.

comment:15 Changed 4 years ago by kencu (Ken)

It seems like all the hassles people seem to have with this port appear to be from errors building the japanese documentation, which almost nobody actually wants. So there's that :> Seems like a plan to just turn that off.

but for the moment, something seems to be interfering with the build of the documentation. Sometimes, running a build in trace mode will help, as it disables any ports that aren't specifically asked for in the Portfile.

sudo port clean auto-multiple-choice
sudo port -v -t install auto-multiple-choice

and if that works, some other as-yet-unspecified port is interfering with it.

If that still didn't work, and I really wanted it, I would consider deactivating the port tree sudo port -f deactivate active, and then installing auto-multiple-choice again:

sudo port clean auto-multiple-choice
sudo port -v install auto-multiple-choice

and you may ask why do you always have to clean every time before you try to install something, and the answer there is that you don't but sometimes you do, so just do it every time and you'll always be OK with that.

comment:16 Changed 4 years ago by jmgoicolea (Jose Goicolea)

Thanks for the help above!

Finally I managed to run the test.tex test for docbook.sty after reinstalling properly dblatex; with this auto-multiple-choice does get installed without errors.

However, on my system auto-multiple-choice fails to run properly, it does not achieve to open a project nor to create a new one. When pressing the button, the following message appears in the terminal:

(AMC-gui.pl:60306): Gtk-WARNING **: 08:07:12.878: gtkliststore.c:475: Invalid type (null)
*** unhandled exception in callback:
***   Can't call method "clear" on an undefined value at /opt/local/lib/AMC/perl/AMC-gui.pl line 1462.
***  ignoring at /opt/local/lib/perl5/vendor_perl/5.28/Gtk3.pm line 572.

Could this be an issue with a new version of perl5?

comment:17 in reply to:  15 Changed 4 years ago by bg-mac

Thank you for your help! I tried what you suggest.

After the first run of

sudo port clean auto-multiple-choice
sudo port -v -t install auto-multiple-choice

I got an error suggesting to run sudo port -f deactivate poppler. I did so, and ran again sudo port -v -t install auto-multiple-choice. And again, I got the usual build error (cf main1.log attached).

Afterwards, I tried your second suggestion

sudo port -f deactivate active
sudo port clean auto-multiple-choice
sudo port -v install auto-multiple-choice

Again, it fails at building auto-multiple-choice (cf main2.log attached).

The last lines of the error in the console are the following:

kpathsea: Running mktexmf OT

! I can't find file `OT'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input OT
                                                
Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input OT
                                                
Transcript written on mfput.log.

! I can't find file `OT'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input OT
                                                
Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input OT
                                                
Transcript written on mfput.log.

! I can't find file `OT'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input OT
                                                
Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input OT
                                                
Transcript written on mfput.log.
grep: OT.log: No such file or directory
grep: OT.log: No such file or directory
grep: OT.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input OT' failed to make OT.tfm.
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input OT' failed to make OT.tfm.
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input OT' failed to make OT.tfm.
kpathsea: Appending font creation commands to missfont.log.
kpathsea: Appending font creation commands to missfont.log.


! Package fontspec Error: The font "IPAexMincho" cannot be found.

For immediate help type H <return>.
 ...                                              
                                                  
l.37   \setCJKsansfont
                      {IPAexGothic}%
No pages of output.
Transcript written on auto-multiple-choice.fr.log.


! Package fontspec Error: The font "IPAexMincho" cannot be found.

For immediate help type H <return>.
 ...                                              
                                                  
l.37   \setCJKsansfont
                      {IPAexGothic}%
No pages of output.
Transcript written on auto-multiple-choice.en.log.
kpathsea: Appending font creation commands to missfont.log.


! Package fontspec Error: The font "IPAexMincho" cannot be found.

For immediate help type H <return>.
 ...                                              
                                                  
l.37   \setCJKsansfont
                      {IPAexGothic}%
No pages of output.
Transcript written on auto-multiple-choice.ja.log.
gmake[2]: *** [Makefile:71: auto-multiple-choice.fr.pdf] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: *** [Makefile:71: auto-multiple-choice.en.pdf] Error 1
gmake[2]: *** [Makefile:71: auto-multiple-choice.ja.pdf] Error 1
rm img_pdf/important.pdf auto-multiple-choice.ja.tex auto-multiple-choice.ja.man auto-multiple-choice.fr.html img_pdf/warning.pdf auto-multiple-choice.en.tex auto-multiple-choice.ja.ext auto-multiple-choice.ja.html auto-multiple-choice.en.ext img_pdf/note.pdf auto-multiple-choice.en.man auto-multiple-choice.fr.man auto-multiple-choice.en.html auto-multiple-choice.fr.tex auto-multiple-choice.fr.ext
gmake[2]: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/work/auto-multiple-choice-c6041a162202380b065b1b1abbdb016bb6d4b6a8-c6041a162202380b065b1b1abbdb016bb6d4b6a8/doc'
gmake[1]: *** [Makefile:161: doc] Error 2
rm icons/auto-multiple-choice.png
gmake[1]: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/work/auto-multiple-choice-c6041a162202380b065b1b1abbdb016bb6d4b6a8-c6041a162202380b065b1b1abbdb016bb6d4b6a8'
gmake: *** [Makefile:114: all] Error 2
gmake: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/work/auto-multiple-choice-c6041a162202380b065b1b1abbdb016bb6d4b6a8-c6041a162202380b065b1b1abbdb016bb6d4b6a8'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/work/auto-multiple-choice-c6041a162202380b065b1b1abbdb016bb6d4b6a8-c6041a162202380b065b1b1abbdb016bb6d4b6a8" && /opt/local/bin/gmake -j4 -w all 
Exit code: 2
Error: Failed to build auto-multiple-choice: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port auto-multiple-choice failed

I am thus still very grateful in advance for any help...

Replying to kencu:

It seems like all the hassles people seem to have with this port appear to be from errors building the japanese documentation, which almost nobody actually wants. So there's that :> Seems like a plan to just turn that off.

but for the moment, something seems to be interfering with the build of the documentation. Sometimes, running a build in trace mode will help, as it disables any ports that aren't specifically asked for in the Portfile.

sudo port clean auto-multiple-choice
sudo port -v -t install auto-multiple-choice

and if that works, some other as-yet-unspecified port is interfering with it.

If that still didn't work, and I really wanted it, I would consider deactivating the port tree sudo port -f deactivate active, and then installing auto-multiple-choice again:

sudo port clean auto-multiple-choice
sudo port -v install auto-multiple-choice

and you may ask why do you always have to clean every time before you try to install something, and the answer there is that you don't but sometimes you do, so just do it every time and you'll always be OK with that.

Changed 4 years ago by bg-mac

Attachment: main1.log added

Changed 4 years ago by bg-mac

Attachment: main2.log added

comment:18 Changed 4 years ago by jmgoicolea (Jose Goicolea)

with the upgrade of these two ports (on Catalina)

p5.28-encode                   3.30.0_0 < 3.40.0_0       
p5.28-xml-libxml               2.20.200_0 < 2.20.300_0   

auto-multiple-choice is now fixed and working again!

comment:19 Changed 4 years ago by jmgoicolea (Jose Goicolea)

Cc: jmgoicolea added

comment:20 Changed 17 months ago by nortcele

Ticket could be closed.

comment:21 Changed 17 months ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.