[distcc] Problem building distcc 3.0 and trunk 617 on Archlinux

Fergus Henderson fergus at google.com
Fri Jan 9 16:52:19 GMT 2009


The workaround (for svn distcc) is to configure with --without-Werror.

Cheers,
  Fergus.

On Jan 8, 2009 10:36 PM, "Teo Mrnjavac" <teo.mrnjavac at gmail.com> wrote:

Greetings!
I'm trying to write a PKGBUILD script in order to mantain a distcc-3.0
or distcc-svn package for Archlinux. However currently when trying to
build both 3.0 and trunk rev617 I get the following error:

gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -O2 -pipe -MD -W
-Wall -Wimplicit -Wuninitialized -Wshadow -Wpointer-arith -Wcast-align
-Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wmissing-declarations
-D_REENTRANT -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR=/etc
-DPKGDATADIR=/usr/share/distcc -Isrc -I./src -I./lzo -fPIC
-D_GNU_SOURCE=1 -Isrc -I./src -I./lzo -I/usr/include/python2.5 -c
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/src/timeval.c
-o
./_include_server/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/src/timeval.o
-W -Wall -Wimplicit -Wuninitialized -Wshadow -Wpointer-arith
-Wcast-align -Waggregate-return -Wstrict-prototypes -Wnested-externs
-Werror -Wp,-U_FORTIFY_SOURCE
gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -O2 -pipe -MD -W
-Wall -Wimplicit -Wuninitialized -Wshadow -Wpointer-arith -Wcast-align
-Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wmissing-declarations
-D_REENTRANT -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR=/etc
-DPKGDATADIR=/usr/share/distcc -Isrc -I./src -I./lzo -fPIC
-D_GNU_SOURCE=1 -Isrc -I./src -I./lzo -I/usr/include/python2.5 -c
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/src/netutil.c
-o
./_include_server/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/src/netutil.o
-W -Wall -Wimplicit -Wuninitialized -Wshadow -Wpointer-arith
-Wcast-align -Waggregate-return -Wstrict-prototypes -Wnested-externs
-Werror -Wp,-U_FORTIFY_SOURCE
gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -O2 -pipe -MD -W
-Wall -Wimplicit -Wuninitialized -Wshadow -Wpointer-arith -Wcast-align
-Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wmissing-declarations
-D_REENTRANT -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR=/etc
-DPKGDATADIR=/usr/share/distcc -Isrc -I./src -I./lzo -fPIC
-D_GNU_SOURCE=1 -Isrc -I./src -I./lzo -I/usr/include/python2.5 -c
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/lzo/minilzo.c
-o
./_include_server/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/lzo/minilzo.o
-W -Wall -Wimplicit -Wuninitialized -Wshadow -Wpointer-arith
-Wcast-align -Waggregate-return -Wstrict-prototypes -Wnested-externs
-Werror -Wp,-U_FORTIFY_SOURCE
gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -O2 -pipe -MD -W
-Wall -Wimplicit -Wuninitialized -Wshadow -Wpointer-arith -Wcast-align
-Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wmissing-declarations
-D_REENTRANT -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR=/etc
-DPKGDATADIR=/usr/share/distcc -Isrc -I./src -I./lzo -fPIC
-D_GNU_SOURCE=1 -Isrc -I./src -I./lzo -I/usr/include/python2.5 -c
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c
-o
./_include_server/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.o
-W -Wall -Wimplicit -Wuninitialized -Wshadow -Wpointer-arith
-Wcast-align -Waggregate-return -Wstrict-prototypes -Wnested-externs
-Werror -Wp,-U_FORTIFY_SOURCE
cc1: warnings being treated as errors
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:26:
error: initialization discards qualifiers from pointer target type
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:31:
error: initialization discards qualifiers from pointer target type
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:
In function 'XArgv':
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:217:
error: dereferencing type-punned pointer will break strict-aliasing
rules
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:219:
error: dereferencing type-punned pointer will break strict-aliasing
rules
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:
In function 'OsPathExists':
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:252:
error: dereferencing type-punned pointer will break strict-aliasing
rules
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:253:
error: dereferencing type-punned pointer will break strict-aliasing
rules
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:
In function 'OsPathIsFile':
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:286:
error: dereferencing type-punned pointer will break strict-aliasing
rules
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:287:
error: dereferencing type-punned pointer will break strict-aliasing
rules
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:288:
error: dereferencing type-punned pointer will break strict-aliasing
rules
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:
At top level:
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:384:
error: no previous prototype for 'initdistcc_pump_c_extensions'
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:
In function 'initdistcc_pump_c_extensions':
/home/teo/pkgbuilds/distcc-svn/src/distcc-read-only-build/include_server/c_extensions/distcc_pump_c_extensions_module.c:388:
error: passing argument 1 of 'PyErr_NewException' discards qualifiers
from pointer target type
error: command 'gcc' failed with exit status 1
make: *** [include-server] Error 1
==> ERROR: Build Failed.
   Aborting...

As I'm normally a spoiled Qt/C++ junior dev I can't make much sense of it.
This is the build() function of the PKGBUILD:
build() {
 cd ${srcdir}
 msg "Starting SVN checkout..."
 mkdir $_svnmod

 if [ -d $_svnmod/.svn ]; then
   (cd $_svnmod && svn up -r $pkgver)
 else
   svn co $_svnroot --config-dir ./ -r $pkgver $_svnmod
 fi
 msg "SVN checkout done or server timeout"
 msg "Starting make..."
 cp -r $_svnmod $_svnmod-build
 cd $_svnmod-build
 ./autogen.sh
 ./configure --prefix=/usr --sysconfdir=/etc
 make || return 1
 make DESTDIR=$startdir/pkg install
 install -D -m644 ../../distccd.conf.d $startdir/pkg/etc/conf.d/distccd
 install -D -m755 ../../distccd $startdir/pkg/etc/rc.d/distccd

 mkdir -p $startdir/pkg/usr/lib/${pkgname}/bin
 ln -sf /usr/bin/${_realname} $startdir/pkg/usr/lib/${_realname}/bin/cc
 ln -sf /usr/bin/${_realname} $startdir/pkg/usr/lib/${_realname}/bin/gcc
 ln -sf /usr/bin/${_realname} $startdir/pkg/usr/lib/${_realname}/bin/g++
 ln -sf /usr/bin/${_realname} $startdir/pkg/usr/lib/${_realname}/bin/cpp
}
So as you see, nothing really fancy going on there.
Can you guys please help me with this issue?
Cheers
Teo Mrnjavac
Amarok developer
__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the distcc mailing list