Opened 5 years ago

Closed 5 years ago

#59167 closed defect (duplicate)

Poppler 0.81.0_0 fails to build

Reported by: dershow Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: xcode11 Cc: mf2k (Frank Schima), brolcz
Port: poppler

Description

I tried to upgrade poppler from 0.80.0_0 < 0.81.0_0.

First it gave the usual error of:

Error: poppler cannot be built while another version of poppler is active.
Error: Please forcibly deactivate the existing copy of poppler, e.g. by running:
Error: 
Error:     sudo port -f deactivate poppler
Error: 
Error: Then try again.
Error: Failed to configure poppler: poppler is active
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_poppler/poppler/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

So, I deactivated and tried to upgrade again. But, this time, I received this error:

--->  Building poppler
Error: Failed to build poppler: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_poppler/poppler/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
a

I've attached the log file.

Attachments (1)

main.log (462.9 KB) - added by dershow 5 years ago.

Download all attachments as: .zip

Change History (10)

Changed 5 years ago by dershow

Attachment: main.log added

comment:1 Changed 5 years ago by kencu (Ken)

Known issue:

info:build clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' [-Wmissing-sysroot]

we are working on it.

comment:2 Changed 5 years ago by dlamija (Muhammed Ramiza)

fatal error: 'time.h' file not found

:info:build In file included from /opt/local/include/glib-2.0/glib.h:30:
1068	:info:build In file included from /opt/local/include/glib-2.0/glib/galloca.h:32:
1069	:info:build /opt/local/include/glib-2.0/glib/gtypes.h:35:10: fatal error: 'time.h' file not found
1070	:info:build #include <time.h>
1071	:info:build          ^~~~~~~~
1072	:info:build 1 error generated.

comment:3 Changed 5 years ago by mf2k (Frank Schima)

Cc: mf2k added

comment:4 Changed 5 years ago by mf2k (Frank Schima)

Cc: dbevans removed
Keywords: xcode11 added
Owner: set to dbevans
Status: newassigned

comment:5 Changed 5 years ago by brolcz

I also ran into the same issue. Here is the text in the log:

:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/ccompiler.py", line 574, in compile
:info:build     self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/unixccompiler.py", line 120, in _compile
:info:build     raise CompileError(msg)
:info:build distutils.errors.CompileError: command '/usr/bin/clang' failed with exit status 1
:info:build make[2]: *** [glib/Poppler-0.18.gir] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build'
:info:build make[1]: *** [glib/CMakeFiles/gir-typelibs.dir/all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build" && /usr/bin/make -j8 -w all CC="/usr/bin/clang -arch x86_64" VERBOSE=ON 
:info:build Exit code: 2
:error:build Failed to build poppler: command execution failed
:debug:build Error code: CHILDSTATUS 94606 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"

OS is Mac OSX Mojave 10.14.6

Thank you for working on this.

comment:6 Changed 5 years ago by brolcz

Cc: brolcz added

comment:7 Changed 5 years ago by barrettsa

A workaround is to create a symbolic link to MacOSX.sdk, named MacOSX10.14.sdk, in the /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs directory:

pushd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
sudo ln -s MacOSX.sdk MacOSX10.14.sdk
popd

Then, retry your upgrade.

comment:8 Changed 5 years ago by mike142wood

workaround symbolic link described above by barrettsa worked.

On osx 10.14.6 I had just upgraded Xcode as offered by Apple Software Update.

Is there an Apple problem upgrading Xcode on Mojave osx 10.14 around the time of release of Catalina osx 10.15?

comment:9 Changed 5 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: assignedclosed

Duplicate of #59078. (Yes that has been closed; take it up with the maintainer.)

Note: See TracTickets for help on using tickets.