Opened 5 years ago

Last modified 5 years ago

#59091 closed defect

Poppler Build Failure XCODE 11.0 no such sysroot directory — at Version 1

Reported by: mrspambucket Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: poppler

Description (last modified by ryandesign (Ryan Carsten Schmidt))

[ 87%] Generating Poppler-0.18.gir
clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' [-Wmissing-sysroot]
In file included from /Users/mark/Downloads/poppler-0.80.0/build/glib/tmp-introspect4ngthuit/Poppler-0.18.c:2:
In file included from /opt/local/include/glib-2.0/glib.h:30:
In file included from /opt/local/include/glib-2.0/glib/galloca.h:32:
/opt/local/include/glib-2.0/glib/gtypes.h:35:10: fatal error: 'time.h' file not
      found
#include <time.h>
         ^~~~~~~~
1 error generated.
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/unixccompiler.py", line 118, in _compile
    extra_postargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/spawn.py", line 159, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command '/usr/bin/clang' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/bin/g-ir-scanner", line 96, in <module>
    sys.exit(scanner_main(sys.argv))
  File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 547, in scanner_main
    shlibs = create_binary(transformer, options, args)
  File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 418, in create_binary
    gdump_parser.get_error_quark_functions())
  File "/opt/local/lib/gobject-introspection/giscanner/dumper.py", line 294, in compile_introspection_binary
    return dc.run()
  File "/opt/local/lib/gobject-introspection/giscanner/dumper.py", line 168, in run
    introspection_obj = self._compile(c_path)
  File "/opt/local/lib/gobject-introspection/giscanner/dumper.py", line 197, in _compile
    self._options.init_sections)
  File "/opt/local/lib/gobject-introspection/giscanner/ccompiler.py", line 250, in compile
    output_dir=os.path.abspath(os.sep))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/clang' failed with exit status 1
make[2]: *** [glib/Poppler-0.18.gir] Error 1
make[1]: *** [glib/CMakeFiles/gir-typelibs.dir/all] Error 2
make: *** [all] Error 2

Change History (1)

comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: Poppler Xcode removed
Owner: set to dbevans
Port: poppler added; Poppler removed
Status: newassigned

Please remember to use WikiFormatting.

Your log mentions the directory /Users/mark/Downloads/poppler-0.80.0. Are you compiling poppler manually or using the poppler port in MacPorts? If the former, it may be outside of the scope of what we can help you with.

Your log mentions that the directory /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk does not exist. Is that true? If so, why is it true? Did you forget to install Xcode?

Note: See TracTickets for help on using tickets.