g-ir-scanner fails when using ccache



Hi,

I noted that packages like dconf fails to build when CC is set to
"ccache gcc". Setting it to "gcc" makes it compile. I traced it to the
introspection compiler.

I use gobject-introspection-0.9.10

To reproduce, unpack dconf-0.5.1 and run configure. Then make sure
ccache is installed and run make like this:

  make CC="ccache gcc"

I get:
...
  GEN    libdconf.so
  GISCAN dconf-1.0.gir
Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 45, in <module>
    sys.exit(scanner_main(sys.argv))
  File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line
405, in scanner_main shlibs = create_binary(transformer, options, args)
  File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line
309, in create_binary gdump_parser.get_get_type_functions())
  File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 233,
in compile_introspection_binary return dc.run()
  File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 140,
in run self._link(bin_path, o_path)
  File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 228,
in _link subprocess.check_call(args)
  File "/usr/lib/python2.6/subprocess.py", line 493, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.6/subprocess.py", line 480, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
make[1]: *** [dconf-1.0.gir] Error 1
make[1]: Leaving directory
`/home/ncopa/aports/wip/dconf/src/dconf-0.5.1/client' make: ***
[all-recursive] Error 1

When CC=gcc then it works.

Thanks!

-nc


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]