perfbook
Quoted 13 lines · Paul E. McKenney
Quoted 11 lines · Andrea Parri
Hi Paul,
could you forward me the info about perfbook you sent last week including the PDF? I did try to compile from the repo but have not been successful yet: here's the last one.
sh
./utilities/gen_snippet_d.sh
shutilities/autodate.sh>autodate.tex CodeSamples/SMPdesign/smpalloc.canonical.eps --> CodeSamples/SMPdesign/smpalloc.canonical.pdf Makefile:211: recipe for target 'CodeSamples/SMPdesign/smpalloc.canonical.pdf' failed
make: *** [CodeSamples/SMPdesign/smpalloc.canonical.pdf] Error 255
Quoted 7 lines
Hello, Andrea,
Please see attached for the current PDF. It looks to me like you are missing one of the required packages, which are listed in FAQ-BUILD.txt in the perfbook repo.
Adding the perfbook email list in case someone has more exact advice. ;-)
Thanks.
Please let me know if I should provide info about my setup/log.
Andrea
Quoted 2 lines
Thanx, Paul
Quoted 20 lines · Andrea Parri
Quoted 19 lines · Paul E. McKenney
Quoted 11 lines · Andrea Parri
Hi Paul,
could you forward me the info about perfbook you sent last week including the PDF? I did try to compile from the repo but have not been successful yet: here's the last one.
sh
./utilities/gen_snippet_d.sh
shutilities/autodate.sh>autodate.tex CodeSamples/SMPdesign/smpalloc.canonical.eps --> CodeSamples/SMPdesign/smpalloc.canonical.pdf Makefile:211: recipe for target 'CodeSamples/SMPdesign/smpalloc.canonical.pdf' failed
make: *** [CodeSamples/SMPdesign/smpalloc.canonical.pdf] Error 255Hello, Andrea,
Please see attached for the current PDF. It looks to me like you are missing one of the required packages, which are listed in FAQ-BUILD.txt in the perfbook repo.
Quoted 5 lines
Quoted 1 line
Adding the perfbook email list in case someone has more exact advice. ;-)
Thanks.
Please let me know if I should provide info about my setup/log.
Hello Andrea,
The commands involved in the failed recipe is "a2ping". It invokes "gs" (Ghostscript) internally.
Current Makefile does not check the existence of "gs". Do your system have Ghostscript installed?
Thanks, Akira
Quoted 8 lines
Andrea
Quoted 2 lines
Thanx, Paul
Quoted 27 lines · Akira Yokosawa
Quoted 20 lines · Andrea Parri
Quoted 19 lines · Paul E. McKenney
Quoted 11 lines · Andrea Parri
Hi Paul,
could you forward me the info about perfbook you sent last week including the PDF? I did try to compile from the repo but have not been successful yet: here's the last one.
sh
./utilities/gen_snippet_d.sh
shutilities/autodate.sh>autodate.tex CodeSamples/SMPdesign/smpalloc.canonical.eps --> CodeSamples/SMPdesign/smpalloc.canonical.pdf Makefile:211: recipe for target 'CodeSamples/SMPdesign/smpalloc.canonical.pdf' failed
make: *** [CodeSamples/SMPdesign/smpalloc.canonical.pdf] Error 255Hello, Andrea,
Please see attached for the current PDF. It looks to me like you are missing one of the required packages, which are listed in FAQ-BUILD.txt in the perfbook repo.
Quoted 5 lines
Quoted 1 line
Adding the perfbook email list in case someone has more exact advice. ;-)
Thanks.
Please let me know if I should provide info about my setup/log.
Quoted 7 lines
Hello Andrea,
The commands involved in the failed recipe is "a2ping". It invokes "gs" (Ghostscript) internally.
Current
Makefiledoes not check the existence of "gs". Do your system have Ghostscript installed?
Hi Akira. Yes, I have v9.25 (2018-03-21) from ubuntu 18.04.
Andrea
Quoted 13 lines
Thanks, Akira
Quoted 8 lines
Andrea
Quoted 2 lines
Thanx, Paul
Quoted 30 lines · Andrea Parri
Quoted 29 lines · Akira Yokosawa
Quoted 20 lines · Andrea Parri
Quoted 19 lines · Paul E. McKenney
Quoted 11 lines · Andrea Parri
Hi Paul,
could you forward me the info about perfbook you sent last week including the PDF? I did try to compile from the repo but have not been successful yet: here's the last one.
sh
./utilities/gen_snippet_d.sh
shutilities/autodate.sh>autodate.tex CodeSamples/SMPdesign/smpalloc.canonical.eps --> CodeSamples/SMPdesign/smpalloc.canonical.pdf Makefile:211: recipe for target 'CodeSamples/SMPdesign/smpalloc.canonical.pdf' failed
make: *** [CodeSamples/SMPdesign/smpalloc.canonical.pdf] Error 255Hello, Andrea,
Please see attached for the current PDF. It looks to me like you are missing one of the required packages, which are listed in FAQ-BUILD.txt in the perfbook repo.
Quoted 5 lines
Quoted 1 line
Adding the perfbook email list in case someone has more exact advice. ;-)
Thanks.
Please let me know if I should provide info about my setup/log.
Hello Andrea,
Quoted 7 lines
Quoted 5 lines
The commands involved in the failed recipe is "a2ping". It invokes "gs" (Ghostscript) internally.
Current
Makefiledoes not check the existence of "gs". Do your system have Ghostscript installed?Hi Akira. Yes, I have v9.25 (2018-03-21) from ubuntu 18.04.
And you have a2ping 2.83p, right? Otherwise, Makefile should complain. Hmm???
Can you remove "> /dev/null 2>&1" on line 220 of Makefile, and let me know what a2ping should say?
"GPL Ghostscript 9.25: Unrecoverable error, exit code 1" is not fatal and can be ignored as far as I know.
Akira
Quoted 17 lines
Andrea
Quoted 13 lines
Thanks, Akira
Quoted 8 lines
Andrea
Quoted 2 lines
Thanx, Paul
Quoted 2 lines
And you have a2ping 2.83p, right? Otherwise,
Makefileshould complain. Hmm???
Indeed, 2.83p.
Quoted 3 lines
Can you remove ">
/dev/null2>&1" on line 220 ofMakefile, and let me know what a2ping should say?
It says:
/usr/local/bin/a2ping: not a GS output from gs (0)
Andrea
Quoted 5 lines
"GPL Ghostscript 9.25: Unrecoverable error, exit code 1" is not fatal and can be ignored as far as I know.
Akira
Quoted 7 lines · Andrea Parri
Quoted 2 lines
And you have a2ping 2.83p, right? Otherwise,
Makefileshould complain. Hmm???Indeed, 2.83p.
Quoted 1 line
Quoted 6 lines
Quoted 2 lines
Can you remove ">
/dev/null2>&1" on line 220 ofMakefile, and let me know what a2ping should say?It says:
/usr/local/bin/a2ping: not a GS output from gs (0)
Umm, "gs (0)" suggests exit code of gs is 0, which should indicate success. I have no idea what is going on.
I have a Ubuntu 18.04 virtual machine and a2ping 2.83p works happily there.
Sorry but I can't help you at the moment.
Akira
Quoted 9 lines
Andrea
Quoted 5 lines
"GPL Ghostscript 9.25: Unrecoverable error, exit code 1" is not fatal and can be ignored as far as I know.
Akira
Quoted 11 lines · Akira Yokosawa
Quoted 10 lines · Andrea Parri
Quoted 2 lines
And you have a2ping 2.83p, right? Otherwise,
Makefileshould complain. Hmm???Indeed, 2.83p.
Quoted 3 lines
Can you remove ">
/dev/null2>&1" on line 220 ofMakefile, and let me know what a2ping should say?
Quoted 6 lines
Quoted 3 lines
It says:
/usr/local/bin/a2ping: not a GS output from gs (0)Umm, "gs (0)" suggests exit code of gs is 0, which should indicate success. I have no idea what is going on.
Andrea,
Do you happen to set some of environment variables:
GS_OPTIONS
GS_DEVICE
and the like?
Akira
Quoted 18 lines
I have a Ubuntu 18.04 virtual machine and a2ping 2.83p works happily there.
Sorry but I can't help you at the moment.
Akira
Quoted 9 lines
Andrea
Quoted 5 lines
"GPL Ghostscript 9.25: Unrecoverable error, exit code 1" is not fatal and can be ignored as far as I know.
Akira
Quoted 19 lines · Akira Yokosawa
Quoted 11 lines · Akira Yokosawa
Quoted 10 lines · Andrea Parri
Quoted 2 lines
And you have a2ping 2.83p, right? Otherwise,
Makefileshould complain. Hmm???Indeed, 2.83p.
Quoted 3 lines
Can you remove ">
/dev/null2>&1" on line 220 ofMakefile, and let me know what a2ping should say?Quoted 6 lines
Quoted 3 lines
It says:
/usr/local/bin/a2ping: not a GS output from gs (0)Umm, "gs (0)" suggests exit code of gs is 0, which should indicate success. I have no idea what is going on.
Quoted 8 lines
Andrea,
Do you happen to set some of environment variables:
GS_OPTIONS
GS_DEVICEand the like?
No GS_ variable set.
Andrea
Quoted 22 lines
Akira
Quoted 18 lines
I have a Ubuntu 18.04 virtual machine and a2ping 2.83p works happily there.
Sorry but I can't help you at the moment.
Akira
Quoted 9 lines
Andrea
Quoted 5 lines
"GPL Ghostscript 9.25: Unrecoverable error, exit code 1" is not fatal and can be ignored as far as I know.
Akira
Quoted 30 lines · Andrea Parri
Quoted 29 lines · Akira Yokosawa
Quoted 20 lines · Andrea Parri
Quoted 19 lines · Paul E. McKenney
Quoted 11 lines · Andrea Parri
Hi Paul,
could you forward me the info about perfbook you sent last week including the PDF? I did try to compile from the repo but have not been successful yet: here's the last one.
sh
./utilities/gen_snippet_d.sh
shutilities/autodate.sh>autodate.tex CodeSamples/SMPdesign/smpalloc.canonical.eps --> CodeSamples/SMPdesign/smpalloc.canonical.pdf Makefile:211: recipe for target 'CodeSamples/SMPdesign/smpalloc.canonical.pdf' failed
make: *** [CodeSamples/SMPdesign/smpalloc.canonical.pdf] Error 255Hello, Andrea,
Please see attached for the current PDF. It looks to me like you are missing one of the required packages, which are listed in FAQ-BUILD.txt in the perfbook repo.
Quoted 5 lines
Quoted 1 line
Adding the perfbook email list in case someone has more exact advice. ;-)
Thanks.
Please let me know if I should provide info about my setup/log.
Hello Andrea,
Quoted 7 lines
Quoted 5 lines
The commands involved in the failed recipe is "a2ping". It invokes "gs" (Ghostscript) internally.
Current
Makefiledoes not check the existence of "gs". Do your system have Ghostscript installed?Hi Akira. Yes, I have v9.25 (2018-03-21) from ubuntu 18.04.
Just want to make sure the gs version.
"gs -v" on my Ubuntu 18.04 says:
GPL Ghostscript 9.25 (2018-09-13)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.
What does your "gs -v" say?
Akira
Quoted 17 lines
Andrea
Quoted 13 lines
Thanks, Akira
Quoted 8 lines
Andrea
Quoted 2 lines
Thanx, Paul
Quoted 22 lines · Andrea Parri
Quoted 21 lines · Akira Yokosawa
Quoted 11 lines · Akira Yokosawa
Quoted 10 lines · Andrea Parri
Quoted 2 lines
And you have a2ping 2.83p, right? Otherwise,
Makefileshould complain. Hmm???Indeed, 2.83p.
Quoted 3 lines
Can you remove ">
/dev/null2>&1" on line 220 ofMakefile, and let me know what a2ping should say?Quoted 6 lines
Quoted 3 lines
It says:
/usr/local/bin/a2ping: not a GS output from gs (0)Umm, "gs (0)" suggests exit code of gs is 0, which should indicate success. I have no idea what is going on.
Andrea,
Quoted 8 lines
Quoted 6 lines
Do you happen to set some of environment variables:
GS_OPTIONS
GS_DEVICEand the like?
No
GS_variable set.
Hmm.
As a last resort, there are alternative commands to a2ping I'm aware of.
If "ps2epsi", "epstool", and "epstopdf" all work on your system, I can provide a variant of Makefile which don't rely on a2ping.
How to check:
(You might need to install missing commands if any.)
$ ps2epsi SMPdesign/CPUvsEnet.eps /tmp/CPUvsEnet.epsi $ epstool --copy --bbox --ignore-errors /tmp/CPUvsEnet.epsi /tmp/CPUvsEnet.epsij $ cat /tmp/CPUvsEnet.epsij | epstopdf --filter --outfile=/tmp/CPUvsEnet.pdf
If /tmp/CPUvsEnet.pdf (Figure 6.12 in perfbook) is generated, those three commands should be working properly.
I tried these commands this February when Fedora 28 updated Ghostscript to 9.22, and a2ping (2.77p) stopped working. Luckily, a2ping's maintainer released 2.83p in March.
Thanks, Akira
Quoted 26 lines
Andrea
Quoted 22 lines
Akira
Quoted 18 lines
I have a Ubuntu 18.04 virtual machine and a2ping 2.83p works happily there.
Sorry but I can't help you at the moment.
Akira
Quoted 9 lines
Andrea
Quoted 5 lines
"GPL Ghostscript 9.25: Unrecoverable error, exit code 1" is not fatal and can be ignored as far as I know.
Akira
Quoted 22 lines · Andrea Parri
Quoted 21 lines · Akira Yokosawa
Quoted 11 lines · Akira Yokosawa
Quoted 10 lines · Andrea Parri
Quoted 2 lines
And you have a2ping 2.83p, right? Otherwise,
Makefileshould complain. Hmm???Indeed, 2.83p.
Quoted 3 lines
Can you remove ">
/dev/null2>&1" on line 220 ofMakefile, and let me know what a2ping should say?Quoted 6 lines
Quoted 3 lines
It says:
/usr/local/bin/a2ping: not a GS output from gs (0)Umm, "gs (0)" suggests exit code of gs is 0, which should indicate success. I have no idea what is going on.
Andrea,
Quoted 8 lines
Quoted 6 lines
Do you happen to set some of environment variables:
GS_OPTIONS
GS_DEVICEand the like?
No
GS_variable set.
If you run a2ping manually, can you make it convert the file CodeSamples/SMPdesign/smpalloc.canonical.eps to .pdf?
The Makefile uses "a2ping --below --hires --bboxfrom=compute-gs" followed by the .eps and the .pdf names.
If that doesn't work, can you manually run "gs" to view the .eps file?
The thought is that there might be some argument needed (or vice versa) on your system that isn't required on Akira's or my systems.
Thanx, Paul
Quoted 26 lines
Andrea
Quoted 22 lines
Akira
Quoted 18 lines
I have a Ubuntu 18.04 virtual machine and a2ping 2.83p works happily there.
Sorry but I can't help you at the moment.
Akira
Quoted 9 lines
Andrea
Quoted 5 lines
"GPL Ghostscript 9.25: Unrecoverable error, exit code 1" is not fatal and can be ignored as far as I know.
Akira
Quoted 8 lines
Just want to make sure the gs version.
"gs -v" on my Ubuntu 18.04 says:
GPL Ghostscript 9.25 (2018-09-13)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.What does your "gs -v" say?
It said:
GPL Ghostscript GIT PRERELEASE 9.25 (2018-03-21) Copyright (C) 2018 Artifex Software, Inc. All rights reserved.
which suggested that my previous "from ubuntu 18.04" was in fact not matching reality: it looks like I installed gs from sources, only a few months ago, and completely forgot about it. ;/ Mah, I manually removed my binary (/usr/local/bin/gs), and apt-purged-and-installed fig2ps ghostscript ghostscript-x gv.
Now it says:
GPL Ghostscript 9.25 (2018-09-13)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.
which seems to match what you reported above. I was then able to generate perfbook.pdf, even though with a bunch of:
CodeSamples/SMPdesign/smpalloc.canonical.eps --> CodeSamples/SMPdesign/smpalloc.canonical.pdf GPL Ghostscript 9.25: Unrecoverable error, exit code 1
I only had a quick look at the generated .pdf, but I haven't noticed issues. Are those errors expected? Any other suggestion?
Thanks,
Andrea
Quoted 2 lines
Akira
Quoted 9 lines · Andrea Parri
Quoted 8 lines
Just want to make sure the gs version.
"gs -v" on my Ubuntu 18.04 says:
GPL Ghostscript 9.25 (2018-09-13)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.What does your "gs -v" say?
Quoted 8 lines
It said:
GPL Ghostscript GIT PRERELEASE 9.25 (2018-03-21) Copyright (C) 2018 Artifex Software, Inc. All rights reserved.
which suggested that my previous "from ubuntu 18.04" was in fact not matching reality: it looks like I installed gs from sources, only a few months ago, and completely forgot about it. ;/ Mah,
Ah!
Quoted 7 lines
I manually
removed my binary (/usr/local/bin/gs), and apt-purged-and-installed fig2ps ghostscript ghostscript-x gv.Now it says:
Quoted 8 lines
GPL Ghostscript 9.25 (2018-09-13)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.which seems to match what you reported above. I was then able to generate perfbook.pdf, even though with a bunch of:
CodeSamples/SMPdesign/smpalloc.canonical.eps --> CodeSamples/SMPdesign/smpalloc.canonical.pdf GPL Ghostscript 9.25: Unrecoverable error, exit code 1
That's why the output of e2ping is redirected to /dev/null in the Makefile.
Quoted 3 lines
I only had a quick look at the generated .pdf, but I haven't noticed issues. Are those errors expected? Any other suggestion?
As I mentioned earlier, the error message from gs is expected and can be safely ignored for perfbook.pdf generation. Please restore Makefile by "git checkout -- Makefile".
Glad to know you can now build .pdf on your own.
And if you will ever do the first-time build again, you can do parallel make by saying "make -j4" (4 is for a quad-core machine).
You can try it by "make neatfreak; make -j4" if you'd like to.
Thanks, Akira
Quoted 7 lines
Thanks,
AndreaQuoted 2 lines
Akira
Quoted 11 lines · Andrea Parri
Quoted 8 lines
Just want to make sure the gs version.
"gs -v" on my Ubuntu 18.04 says:
GPL Ghostscript 9.25 (2018-09-13)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.What does your "gs -v" say?
It said:
Quoted 8 lines
GPL Ghostscript GIT PRERELEASE 9.25 (2018-03-21) Copyright (C) 2018 Artifex Software, Inc. All rights reserved.
which suggested that my previous "from ubuntu 18.04" was in fact not matching reality: it looks like I installed gs from sources, only a few months ago, and completely forgot about it. ;/ Mah, I manually removed my binary (
/usr/local/bin/gs), and apt-purged-and-installed fig2ps ghostscript ghostscript-x gv.
Been there, done that. ;-)
Quoted 7 lines
Now it says:
GPL Ghostscript 9.25 (2018-09-13)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.which seems to match what you reported above. I was then able to generate perfbook.pdf, even though with a bunch of:
Very good! ;-)
Quoted 5 lines
CodeSamples/SMPdesign/smpalloc.canonical.eps --> CodeSamples/SMPdesign/smpalloc.canonical.pdf GPL Ghostscript 9.25: Unrecoverable error, exit code 1
I only had a quick look at the generated .pdf, but I haven't noticed issues. Are those errors expected? Any other suggestion?
What Akira said on this one (and thank you, Akira!). You just need to get rid of the diagnostic change that Akira suggested earlier in this thread.
Thanx, Paul