Your message dated Mon, 07 Sep 2009 18:26:31 +0200
with message-id <4aa53437.9000...@gmail.com>
and subject line Re: FTBFS: ../scripts/shave: line 68: 'gcc': command not found
has caused the Debian Bug report #542280,
regarding FTBFS: ../scripts/shave: line 68: 'gcc': command not found
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
542280: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542280
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: gobject-introspection
Version: 0.6.3-1
Severity: serious
Hello,
The package fails to build from source with following error:
CC /tmp/tmp-introspectbnvHKh/GLib-2.0.o
../scripts/shave: line 68: 'gcc': command not found
GEN GLib-2.0.gir
Traceback (most recent call last):
File "../tools/g-ir-scanner", line 39, in <module>
sys.exit(scanner_main(sys.argv))
File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 320, in
scanner_main
glibtransformer.get_get_type_functions())
File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 235, in
compile_introspection_binary
return dc.run()
File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 121, in run
self._compile(o_path, c_path)
File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 186, in
_compile
subprocess.check_call(args)
File "/usr/lib/python2.5/subprocess.py", line 462, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/bin/bash', '../scripts/shave', 'cc',
"'gcc'", '-I../girepository', '-pthread', '-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include', '-c', '-o',
'/tmp/tmp-introspectbnvHKh/GLib-2.0.o',
'/tmp/tmp-introspectbnvHKh/GLib-2.0.c']' returned non-zero exit status 127
There are *two* things wrong here:
1) The gcc command includes quotes. Since giscanner/dumper.py uses str.split
to parse it instead of proper shell expansion, it does not strip them and
since shell does variable expansion after quotes, it does not strip them
either and blows up.
The value of CC comes from the shave stuff in m4. Simplest option seems to
be to just comment out the SHAVE_INIT call in configure.ac.
2) The installed giscanner package is used instead of the source one.
If I am reading the source correctly, it wouldn't actually cause the
build to fail if the package is not installed, because the scanner is
executed with appropriate path in PYTHONPATH. It may cause incorrect build
if previous version is installed though.
However, tools/g-ir-scanner will prepend relative path if it notices .git
or .svn entry in the parent directory (it's not there for source extracted
from tarball) and absolute path to install dir otherwise. And since it
prepends it, it will take precedence even over content of PYTHONPATH.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (100,
'experimental'), (50, 'jaunty-updates'), (50, 'jaunty-security'), (50, 'jaunty')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gobject-introspection depends on:
ii libc6 2.9-25 GNU C Library: Shared libraries
ii libffi5 3.0.7-1 Foreign Function Interface library
ii libgirepository1.0-0 0.6.3-1 Library for handling GObject intro
ii libglib2.0-0 2.20.4-1 The GLib library of C routines
ii python 2.5.4-2 An interactive high-level object-o
ii python-central 0.6.11 register and build utility for Pyt
gobject-introspection recommends no packages.
gobject-introspection suggests no packages.
-- no debconf information
--
Jan 'Bulb' Hudec <b...@ucw.cz>
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package gobject-introspection
dpkg-buildpackage: source version 0.6.3-1
dpkg-buildpackage: source changed by Gustavo Noronha Silva <k...@debian.org>
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
test -x debian/rules
dh_testroot
/usr/bin/make -f debian/rules reverse-config
make[1]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3'
for i in ./config.guess ./config.sub ; do \
if test -e $i.cdbs-orig ; then \
mv $i.cdbs-orig $i ; \
fi ; \
done
make[1]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3'
if [ "reverse-patches" = "reverse-patches" ]; then rm -f debian/stamp-patched;
fi
patches: debian/patches/01_disable-tests.patch
Trying reverse patch debian/patches/01_disable-tests.patch at level 1 ... 0 ...
success.
if [ "reverse-patches" != "reverse-patches" ]; then touch debian/stamp-patched;
fi
if [ "reverse-patches" != "reverse-patches" ] ; then \
/usr/bin/make -f debian/rules update-config ; \
fi
for dir in debian/patches ; do \
rm -f $dir/*.log ; \
done
HOME=/home/bulb/src/gobject-introspection-0.6.3 /usr/bin/make -C . -k
distclean
make[1]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3'
cd . && /bin/bash ./config.status Makefile
config.status: creating Makefile
make[1]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3'
make[1]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3'
Making distclean in examples
make[2]: Entering directory
`/home/bulb/src/gobject-introspection-0.6.3/examples'
rm -f glib-print glib-print
make[2]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3/examples'
Making distclean in tests
make[2]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3/tests'
Making distclean in offsets
make[3]: Entering directory
`/home/bulb/src/gobject-introspection-0.6.3/tests/offsets'
rm -f "./so_locations"
rm -f gitestoffsets gitestoffsets
make[3]: Leaving directory
`/home/bulb/src/gobject-introspection-0.6.3/tests/offsets'
Making distclean in invoke
make[3]: Entering directory
`/home/bulb/src/gobject-introspection-0.6.3/tests/invoke'
rm -f invoke invoke
rm -f genericmarshaller genericmarshaller
rm -f "./so_locations"
make[3]: Leaving directory
`/home/bulb/src/gobject-introspection-0.6.3/tests/invoke'
Making distclean in repository
make[3]: Entering directory
`/home/bulb/src/gobject-introspection-0.6.3/tests/repository'
rm -f gitestrepo gitestrepo
rm -f gitestthrows gitestthrows
make[3]: Leaving directory
`/home/bulb/src/gobject-introspection-0.6.3/tests/repository'
Making distclean in scanner
make[3]: Entering directory
`/home/bulb/src/gobject-introspection-0.6.3/tests/scanner'
rm -f barapp barapp
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
make[3]: Leaving directory
`/home/bulb/src/gobject-introspection-0.6.3/tests/scanner'
Making distclean in .
make[3]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3/tests'
make[3]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3/tests'
make[2]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3/tests'
Making distclean in docs
make[2]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3/docs'
Making distclean in reference
make[3]: Entering directory
`/home/bulb/src/gobject-introspection-0.6.3/docs/reference'
make[3]: Leaving directory
`/home/bulb/src/gobject-introspection-0.6.3/docs/reference'
Making distclean in .
make[3]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3/docs'
make[3]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3/docs'
make[2]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3/docs'
Making distclean in gir
make[2]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3/gir'
rm -f "./so_locations"
make[2]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3/gir'
Making distclean in tools
make[2]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3/tools'
rm -f g-ir-compiler g-ir-compiler
rm -f g-ir-generate g-ir-generate
make[2]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3/tools'
Making distclean in giscanner
make[2]: Entering directory
`/home/bulb/src/gobject-introspection-0.6.3/giscanner'
rm -f "./so_locations"
rm -f "./so_locations"
make[2]: Leaving directory
`/home/bulb/src/gobject-introspection-0.6.3/giscanner'
Making distclean in girepository
make[2]: Entering directory
`/home/bulb/src/gobject-introspection-0.6.3/girepository'
rm -f "./so_locations"
rm -f "./so_locations"
make[2]: Leaving directory
`/home/bulb/src/gobject-introspection-0.6.3/girepository'
Making distclean in m4
make[2]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3/m4'
make[2]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3/m4'
Making distclean in .
make[2]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3'
make[2]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3'
make[1]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3'
rm -f debian/stamp-makefile-build
for i in ./config.guess ./config.sub ; do \
if test -e $i.cdbs-orig ; then \
mv $i.cdbs-orig $i ; \
fi ; \
done
dh_clean
rm -f debian/stamp-autotools-files
rm -f debian/cdbs-install-list debian/cdbs-package-list
sed "s/@GNOME_TEAM@/Debian GNOME Maintainers
<pkg-gnome-maintain...@lists.alioth.debian.org>, Gustavo Noronha Silva
<k...@debian.org>/" \
debian/control.in > debian/control
rm -rf /home/bulb/src/gobject-introspection-0.6.3/.cache
debian/rules build
test -x debian/rules
mkdir -p "."
/usr/bin/make -f debian/rules reverse-config
make[1]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3'
for i in ./config.guess ./config.sub ; do \
if test -e $i.cdbs-orig ; then \
mv $i.cdbs-orig $i ; \
fi ; \
done
make[1]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3'
if [ "debian/stamp-patched" = "reverse-patches" ]; then rm -f
debian/stamp-patched; fi
patches: debian/patches/01_disable-tests.patch
Trying patch debian/patches/01_disable-tests.patch at level 1 ... 0 ... success.
if [ "debian/stamp-patched" != "reverse-patches" ]; then touch
debian/stamp-patched; fi
if [ "debian/stamp-patched" != "reverse-patches" ] ; then \
/usr/bin/make -f debian/rules update-config ; \
fi
make[1]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3'
if test -e /usr/share/misc/config.guess ; then \
for i in ./config.guess ; do \
if ! test -e $i.cdbs-orig ; then \
mv $i $i.cdbs-orig ; \
cp --remove-destination
/usr/share/misc/config.guess $i ; \
fi ; \
done ; \
fi
if test -e /usr/share/misc/config.sub ; then \
for i in ./config.sub ; do \
if ! test -e $i.cdbs-orig ; then \
mv $i $i.cdbs-orig ; \
cp --remove-destination
/usr/share/misc/config.sub $i ; \
fi ; \
done ; \
fi
make[1]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3'
if test -e /usr/share/misc/config.guess ; then \
for i in ./config.guess ; do \
if ! test -e $i.cdbs-orig ; then \
mv $i $i.cdbs-orig ; \
cp --remove-destination
/usr/share/misc/config.guess $i ; \
fi ; \
done ; \
fi
if test -e /usr/share/misc/config.sub ; then \
for i in ./config.sub ; do \
if ! test -e $i.cdbs-orig ; then \
mv $i $i.cdbs-orig ; \
cp --remove-destination
/usr/share/misc/config.sub $i ; \
fi ; \
done ; \
fi
touch debian/stamp-autotools-files
chmod a+x /home/bulb/src/gobject-introspection-0.6.3/./configure
cd . && CC="gcc" CXX="g++" CFLAGS="-g -O2 -g -Wall -O2" CXXFLAGS="-g -O2 -g
-Wall -O2" CPPFLAGS="" LDFLAGS=""
/home/bulb/src/gobject-introspection-0.6.3/./configure --build=x86_64-linux-gnu
--prefix=/usr --includedir="\${prefix}/include" --mandir="\${prefix}/share/man"
--infodir="\${prefix}/share/info" --sysconfdir=/etc --localstatedir=/var
--libexecdir="\${prefix}/lib/gobject-introspection" --disable-maintainer-mode
--disable-dependency-tracking --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for Win32... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking whether gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 3458764513820540925
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for dlopen in -ldl... yes
checking for the suffix of shared libraries... .so
checking for GOBJECT... yes
checking for GTHREAD... yes
checking for GIO_UNIX... yes
checking for SCANNER... yes
checking for FFI... yes
checking size of time_t... 8
checking for GIREPO... yes
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... /usr/bin/gtkdoc-check
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for working strtod... yes
checking for memchr... yes
checking for strchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoull... yes
checking for backtrace... yes
checking for backtrace_symbols... yes
checking whether Python support is requested... checking for a Python
interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... /usr/lib/python2.5/site-packages
checking for python extension module directory...
/usr/lib/python2.5/site-packages
checking for headers required to compile python extensions... found
checking for sed... /bin/sed
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gir/Makefile
config.status: creating girepository/Makefile
config.status: creating giscanner/Makefile
config.status: creating giscanner/config.py
config.status: creating m4/Makefile
config.status: creating scripts/shave
config.status: creating scripts/shave-libtool
config.status: creating tools/Makefile
config.status: creating tests/Makefile
config.status: creating tests/invoke/Makefile
config.status: creating tests/offsets/Makefile
config.status: creating tests/scanner/Makefile
config.status: creating tests/repository/Makefile
config.status: creating examples/Makefile
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating gobject-introspection-1.0.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
HOME=/home/bulb/src/gobject-introspection-0.6.3 /usr/bin/make -C .
make[1]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3'
make[2]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3'
Making all in girepository
make[3]: Entering directory
`/home/bulb/src/gobject-introspection-0.6.3/girepository'
CC libgirepository_1_0_la-girepository.o
CC libgirepository_1_0_la-gtypelib.o
CC libgirepository_1_0_la-gfield.o
CC libgirepository_1_0_la-ginfo.o
CC libgirepository_1_0_la-girffi.o
CC libgirepository_1_0_la-gdump.o
CC libgirepository_1_0_la-ginvoke.o
LINK libgirepository-1.0.la
CC libgirepository_parser_la-girmodule.o
CC libgirepository_parser_la-girnode.o
CC libgirepository_parser_la-giroffsets.o
CC libgirepository_parser_la-girparser.o
girparser.c: In function ‘backtrace_stderr’:
girparser.c:289: warning: format ‘%zd’ expects type ‘signed size_t’, but
argument 3 has type ‘int’
LINK libgirepository-parser.la
make[3]: Leaving directory
`/home/bulb/src/gobject-introspection-0.6.3/girepository'
Making all in giscanner
make[3]: Entering directory
`/home/bulb/src/gobject-introspection-0.6.3/giscanner'
conflicts: 1 shift/reduce
updating scannerparser.h
make[4]: Entering directory
`/home/bulb/src/gobject-introspection-0.6.3/giscanner'
CC libgiscanner_la-sourcescanner.o
CC libgiscanner_la-scannerlexer.o
CC libgiscanner_la-scannerparser.o
LINK libgiscanner.la
CC _giscanner_la-giscannermodule.o
LINK _giscanner.la
make[4]: Leaving directory
`/home/bulb/src/gobject-introspection-0.6.3/giscanner'
make[3]: Leaving directory
`/home/bulb/src/gobject-introspection-0.6.3/giscanner'
Making all in tools
make[3]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3/tools'
CC g_ir_compiler-compiler.o
LINK g-ir-compiler
CC g_ir_generate-generate.o
LINK g-ir-generate
make[3]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3/tools'
Making all in gir
make[3]: Entering directory `/home/bulb/src/gobject-introspection-0.6.3/gir'
CC libgirepository_everything_1_0_la-everything.o
LINK libgirepository-everything-1.0.la
CC /tmp/tmp-introspectbnvHKh/GLib-2.0.o
../scripts/shave: line 68: 'gcc': command not found
GEN GLib-2.0.gir
Traceback (most recent call last):
File "../tools/g-ir-scanner", line 39, in <module>
sys.exit(scanner_main(sys.argv))
File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 320, in
scanner_main
glibtransformer.get_get_type_functions())
File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 235, in
compile_introspection_binary
return dc.run()
File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 121, in run
self._compile(o_path, c_path)
File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 186, in
_compile
subprocess.check_call(args)
File "/usr/lib/python2.5/subprocess.py", line 462, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/bin/bash', '../scripts/shave', 'cc',
"'gcc'", '-I../girepository', '-pthread', '-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include', '-c', '-o',
'/tmp/tmp-introspectbnvHKh/GLib-2.0.o',
'/tmp/tmp-introspectbnvHKh/GLib-2.0.c']' returned non-zero exit status 127
make[3]: *** [GLib-2.0.gir] Error 1
make[3]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3/gir'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/bulb/src/gobject-introspection-0.6.3'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
--- End Message ---
--- Begin Message ---
Version: 0.6.5-1
Jan Hudec wrote:
> Package: gobject-introspection
> Version: 0.6.3-1
> Severity: serious
>
> Hello,
>
> The package fails to build from source with following error:
>
> CC /tmp/tmp-introspectbnvHKh/GLib-2.0.o
> ../scripts/shave: line 68: 'gcc': command not found
> GEN GLib-2.0.gir
> Traceback (most recent call last):
> File "../tools/g-ir-scanner", line 39, in <module>
> sys.exit(scanner_main(sys.argv))
> File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 320,
> in scanner_main
> glibtransformer.get_get_type_functions())
> File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 235, in
> compile_introspection_binary
> return dc.run()
> File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 121, in run
> self._compile(o_path, c_path)
> File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 186, in
> _compile
> subprocess.check_call(args)
> File "/usr/lib/python2.5/subprocess.py", line 462, in check_call
> raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command '['/bin/bash', '../scripts/shave',
> 'cc', "'gcc'", '-I../girepository', '-pthread', '-I/usr/include/glib-2.0',
> '-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
> '-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
> '-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
> '-I/usr/lib/glib-2.0/include', '-I/usr/include/glib-2.0',
> '-I/usr/lib/glib-2.0/include', '-c', '-o',
> '/tmp/tmp-introspectbnvHKh/GLib-2.0.o',
> '/tmp/tmp-introspectbnvHKh/GLib-2.0.c']' returned non-zero exit status 127
>
> There are *two* things wrong here:
>
> 1) The gcc command includes quotes. Since giscanner/dumper.py uses str.split
> to parse it instead of proper shell expansion, it does not strip them and
> since shell does variable expansion after quotes, it does not strip them
> either and blows up.
>
> The value of CC comes from the shave stuff in m4. Simplest option seems to
> be to just comment out the SHAVE_INIT call in configure.ac.
This is fixed here:
http://git.gnome.org/cgit/gobject-introspection/commit/?id=8ceb93d9259042cc29498f26e25fa6577bf28417
> 2) The installed giscanner package is used instead of the source one.
>
> If I am reading the source correctly, it wouldn't actually cause the
> build to fail if the package is not installed, because the scanner is
> executed with appropriate path in PYTHONPATH. It may cause incorrect build
> if previous version is installed though.
>
> However, tools/g-ir-scanner will prepend relative path if it notices .git
> or .svn entry in the parent directory (it's not there for source extracted
> from tarball) and absolute path to install dir otherwise. And since it
> prepends it, it will take precedence even over content of PYTHONPATH.
This is fixed here:
http://git.gnome.org/cgit/gobject-introspection/commit/?id=75dcb100724f97117d518b1831e3965e3e0cf5ed
Both fixed in 0.6.5, thus closing.
Cheers,
Emilio
signature.asc
Description: OpenPGP digital signature
--- End Message ---