You are not logged in.

#1 2017-12-12 03:33:30

wesphys
Member
Registered: 2013-06-06
Posts: 35

Unable to build poppler package with asp

My goal is to build a copy of the poppler package so that I can test a patch/bugfix.

First, I read the Arch_Build_System wiki page.

Before modifying things, I decided to try and build the stock package.

So then installed asp and ran

asp export poppler

and then in the poppler directory that was produced I ran

makepkg -s

The build process went for a while and then stopped with

WARNING:root:Running scanner failed: [Errno 2] No such file or directory: 'LD_LIBRARY_PATH=/tmp/poppler/src/build/glib': 'LD_LIBRARY_PATH=/tmp/poppler/src/build/glib', command: LD_LIBRARY_PATH=/tmp/poppler/src/build/glib ./poppler-scan
Traceback (most recent call last):
  File "/tmp/poppler/src/poppler-0.61.1/make-glib-api-docs", line 66, in <module>
    gtkdoc.generate(not args.skip_html)
  File "/tmp/poppler/src/poppler-0.61.1/gtkdoc.py", line 143, in generate
    self._run_gtkdoc_scangobj()
  File "/tmp/poppler/src/poppler-0.61.1/gtkdoc.py", line 338, in _run_gtkdoc_scangobj
    env=env, cwd=self.output_dir)
  File "/tmp/poppler/src/poppler-0.61.1/gtkdoc.py", line 209, in _run_command
    % (args[0], process.returncode))
Exception: gtkdoc-scangobj produced a non-zero return code 1
make[2]: *** [glib/reference/CMakeFiles/glib-docs.dir/build.make:61: glib/reference/glib-docs-build.stamp] Error 1
make[1]: *** [CMakeFiles/Makefile2:794: glib/reference/CMakeFiles/glib-docs.dir/all] Error 2

I did a Google search for this error but failed to find any apparently relevant results.  I also searched the Arch bug tracker and the poppler bug tracker and didn't see anything.

Is there something else that I need to do to be able build the package myself?

Offline

#2 2017-12-12 18:22:10

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Unable to build poppler package with asp

It looks like you are building on /tmp .
That is usually a tmpfs in your ram memory .
fast, but limited in size .

Does the build work if you do it on a hdd or ssd ?
In case that also fails, try building in a clean chroot.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2017-12-12 20:55:41

wesphys
Member
Registered: 2013-06-06
Posts: 35

Re: Unable to build poppler package with asp

Thank you for your response.

Lone_Wolf wrote:

It looks like you are building on /tmp .
That is usually a tmpfs in your ram memory .
fast, but limited in size .

Does the build work if you do it on a hdd or ssd ?

No, I tried this and received the same message.

Lone_Wolf wrote:

In case that also fails, try building in a clean chroot.

I did so following the instructions from here and also received the same error message.

Offline

#4 2017-12-12 22:29:51

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Unable to build poppler package with asp

gtkdoc is emitting confusing errors. I cannot build this in a clean chroot either, and https://tests.reproducible-builds.org/archlinux/ marks it as a package failing to build as well (logs are HERE).

This is a clear case of failing to build from source. You can file a bug if you like. smile

Last edited by eschwartz (2017-12-12 22:30:26)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2017-12-13 00:05:57

wesphys
Member
Registered: 2013-06-06
Posts: 35

Re: Unable to build poppler package with asp

Eschwartz wrote:

I cannot build this in a clean chroot either, and https://tests.reproducible-builds.org/archlinux/ marks it as a package failing to build as well (logs are HERE).

Great.  The linked logs shows exactly what I am seeing.

Eschwartz wrote:

This is a clear case of failing to build from source. You can file a bug if you like. smile

Done.  Thanks for your help.

Offline

#6 2017-12-13 00:09:22

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Unable to build poppler package with asp

For the record, "fails to build from source" is not a high-severity bug as the package itself works fine. smile


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#7 2017-12-13 02:24:23

wesphys
Member
Registered: 2013-06-06
Posts: 35

Re: Unable to build poppler package with asp

Eschwartz wrote:

For the record, "fails to build from source" is not a high-severity bug as the package itself works fine. smile

Thanks for the correction.  I didn't really understand how to match this case to the severity list.  Now I know.

Edit: Oh, and thank you for correcting the summary as well. I will try to do that right next time too.

Last edited by wesphys (2017-12-13 02:26:57)

Offline

Board footer

Powered by FluxBB