Re: g-ir-scanner fails when using ccache



On Fri, 22 Oct 2010 11:31:20 -0400
Colin Walters <walters verbum org> wrote:

> Hi,
> 
> On Sat, Oct 9, 2010 at 5:27 PM, Natanael Copa <ncopa alpinelinux org>
> wrote:
> > 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.
> 
> Should be fixed by
> http://git.gnome.org/browse/gobject-introspection/commit/?id=404af5e1d854522df2b02db9f8805ce19f9e8b76
> I couldn't reproduce locally easily, I think my libtool is explicitly
> handling this.

with that patch gobject-introspection-0.9.12 itself failed to build:

...
  GISCAN GIRepository-2.0.gir
/home/ncopa/aports/main/gobject-introspection/src/gobject-introspection-0.9.12/girepository/girepository.h:165: Warning: GIRepository: symbol='gi_cclosure_marshal_generic': Unknown namespace for symbol 'gi_cclosure_marshal_generic'
/home/ncopa/aports/main/gobject-introspection/src/gobject-introspection-0.9.12/girepository/gitypes.h:366: Warning: GIRepository: symbol='GI_TYPE_TAG_N_TYPES': Unknown namespace for symbol 'GI_TYPE_TAG_N_TYPES'
../girepository/libgirepository-1.0.la: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Traceback (most recent call last):
  File "../tools/g-ir-scanner", line 45, in <module>
    sys.exit(scanner_main(sys.argv))
  File "/home/ncopa/aports/main/gobject-introspection/src/gobject-introspection-0.9.12/giscanner/scannermain.py", line 405, in scanner_main
    shlibs = create_binary(transformer, options, args)
  File "/home/ncopa/aports/main/gobject-introspection/src/gobject-introspection-0.9.12/giscanner/scannermain.py", line 309, in create_binary
    gdump_parser.get_get_type_functions())
  File "/home/ncopa/aports/main/gobject-introspection/src/gobject-introspection-0.9.12/giscanner/dumper.py", line 239, in compile_introspection_binary
    return dc.run()
  File "/home/ncopa/aports/main/gobject-introspection/src/gobject-introspection-0.9.12/giscanner/dumper.py", line 140, in run
    self._link(bin_path, o_path)
  File "/home/ncopa/aports/main/gobject-introspection/src/gobject-introspection-0.9.12/giscanner/dumper.py", line 234, in _link
    subprocess.check_call(args)
  File "/usr/lib/python2.6/subprocess.py", line 498, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ccache', 'gcc', '-o', '/home/ncopa/aports/main/gobject-introspection/src/gobject-introspection-0.9.12/gir/tmp-introspectMwJF9B/GIRepository-2.0', '-export-dynamic', '-fno-strict-aliasing', '-Wsign-compare', '-Wcast-align', '-Wpointer-arith', '-Wnested-externs', '-Wmissing-prototypes', '-Wmissing-declarations', '-Wchar-subscripts', '-Wall', '-march=i486', '-Os', '-fomit-frame-pointer', '-pipe', '-L.', '../girepository/libgirepository-1.0.la', '-pthread', '-lgio-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lglib-2.0', '-lintl', '/home/ncopa/aports/main/gobject-introspection/src/gobject-introspection-0.9.12/gir/tmp-introspectMwJF9B/GIRepository-2.0.o']' returned non-zero exit status 1
make[2]: *** [GIRepository-2.0.gir] Error 1
make[2]: Leaving directory `/home/ncopa/aports/main/gobject-introspection/src/gobject-introspection-0.9.12/gir'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ncopa/aports/main/gobject-introspection/src/gobject-introspection-0.9.12'
make: *** [all] Error 2


Thanks!

-nc


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