> Sent: Thursday, June 07, 2018 at 1:39 AM > From: "Armin K." <[email protected]> > To: [email protected] > Subject: Re: [blfs-support] Poppler 0.65.0 using python3 > > On 6.6.2018. 05:25, Christopher Gregory wrote: > ... > > > The error I am getting is: > > > > [ 79%] Built target poppler-glib > > Scanning dependencies of target gir-typelibs > > [ 79%] Generating Poppler-0.18.gir > > unable to execute '-E': No such file or directory > > Traceback (most recent call last): > > File "/usr/lib/python3.6/distutils/unixccompiler.py", line 107, in > > preprocess > > self.spawn(pp_args) > > File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn > > spawn(cmd, dry_run=self.dry_run) > > File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn > > _spawn_posix(cmd, search_path, dry_run=dry_run) > > File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix > > % (cmd, exit_status)) > > distutils.errors.DistutilsExecError: command '-E' failed with exit status 1 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > > File "/usr/bin/g-ir-scanner", line 66, in <module> > > sys.exit(scanner_main(sys.argv)) > > File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line > > 538, in scanner_main > > ss = create_source_scanner(options, args) > > File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line > > 446, in create_source_scanner > > ss.parse_files(filenames) > > File "/usr/lib/gobject-introspection/giscanner/sourcescanner.py", > > line 263, in parse_files > > self._parse(headers) > > File "/usr/lib/gobject-introspection/giscanner/sourcescanner.py", > > line 308, in _parse > > self._cpp_options) > > File "/usr/lib/gobject-introspection/giscanner/ccompiler.py", line > > 210, in preprocess > > extra_postargs=extra_postargs) > > File "/usr/lib/python3.6/distutils/unixccompiler.py", line 109, in > > preprocess > > raise CompileError(msg) > > distutils.errors.CompileError: command '-E' failed with exit status 1 > > make[2]: *** [glib/CMakeFiles/gir-typelibs.dir/build.make:94: > > glib/Poppler-0.18.gir] Error 1 > > make[1]: *** [CMakeFiles/Makefile2:643: > > glib/CMakeFiles/gir-typelibs.dir/all] Error 2 > > make: *** [Makefile:141: all] Error 2 > > I then re-installed glib omitting the use python3 switch and the > > building of poppler still failed. > > Next I tried: > > The previous version of poppler and the exact same results. > > I then even tried downgrading cmake to the .2 release instead of the > > latest, again with the exact same failure. > > I have also re-installed Python-3.6.5 and get the same failure. > > Regards, > > Christopher. > > > > > > Is /usr/bin/cc a valid symlink? It's not a python problem, but > g-ir-scanner/g-ir-compiler one. > > From memory, they hardcode /usr/bin/cc somewhere ... Try rebuilding > gobject-introspection with CC=gcc ./configure ... if /usr/bin/cc is > valid ... > -- > http://lists.linuxfromscratch.org/listinfo/blfs-support > FAQ: http://www.linuxfromscratch.org/blfs/faq.html > Unsubscribe: See the above information page >
Hello Armin, Thanks for that pointer. I rebuilt gobject-introspection-1.56.1 with CC=gcc CXX=g++ \ ./configure .... and tried again with poppler, and got the same error. I then deleted the poppler directory re-extracted it and added CC=gcc CXX=g++ before the make command and poppler successfully compiled the shared library. From what I can tell /usr/bin/cc is a valid symlink: root [ /opt/sources ]# ls -al /usr/bin/cc lrwxrwxrwx 1 root root 3 Jun 3 17:24 /usr/bin/cc -> gcc The question now is, will this need to be added into the book when BLFS goes to gcc-8.1.0, or is it just an oddity with my installation? I built LFS with jhalf and I never mess with the symlinks, from what is described in the book instructions, so I can not understand why this should happen. Regards, Christopher. -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
