Root debian compilation error

Hello,

I’m using a debian system with gcc 3.3.6 and am trying to install root without success.
After running configure:
configure linux --prefix=/usr/local/root --libdir=/usr/local/root/lib --etcdir=/usr/local/root/etc --enable-soversion --enable-rpath

I ran:
sudo make debian

And get this output:
///////////////////////////////////////////
Making debian/control (special)
rm -rf debian/control.tmp
atlas1:~/setups/root-5.12.00> sudo dpkg-buildpackage -rfakeroot -us -uc -i"G__|^debian|root-bin.png|.d$$“
dpkg-buildpackage: source package is root
dpkg-buildpackage: source version is 5.12.00-1
dpkg-buildpackage: source changed by Nir Amram
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 5.12.00-1
fakeroot debian/rules clean
Making debian/libroot-ruby-dev.links from debian/libroot-ruby-dev.links.in
Making debian/root-bin.desktop from debian/root-bin.desktop.in
Making debian/root-bin.menu from debian/root-bin.menu.in
Making debian/root-bin.postinst from debian/root-bin.postinst.in
Making debian/root-bin.prerm from debian/root-bin.prerm.in
Making debian/root-common.postinst from debian/root-common.postinst.in
Making debian/root-common.postrm from debian/root-common.postrm.in
Making debian/root-proofd.init from debian/root-proofd.init.in
Making debian/root-proofd.postinst from debian/root-proofd.postinst.in
Making debian/root-rootd.init from debian/root-rootd.init.in
Making debian/root-rootd.postinst from debian/root-rootd.postinst.in
Making debian/root-xrootd.init from debian/root-xrootd.init.in
Making debian/ttf-root-installer.postinst from debian/ttf-root-installer.postinst.in
Making debian/ttf-root-installer.prerm from debian/ttf-root-installer.prerm.in
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp build-arch-cint-stamp
config.status configure-stamp config.log
rm -rf minuit2/src/Minuit-1_7_6
rm -rf freetype/src/freetype-2.1.9
rm -rf asimage/src/libAfterImage
rm -rf debian/.files debian/.install
rm -f macros/html.C
rm -f etc/daemons/proofd.rc.d
rm -f etc/daemons/proofd.xinetd
rm -f etc/daemons/rootd.rc.d
rm -f etc/daemons/rootd.xinetd
rm -f etc/daemons/olbd.rc.d
rm -f etc/daemons/xrootd.rc.d
rm -f qtgsi/src/G__QtGSI.cxx qtgsi/src/G__QtGSI.h
rm -f qt/moc_.cxx
find . -name ".#
” | xargs rm -rf

Add here commands to clean up after the build process.

/usr/bin/make distclean
make[1]: Entering directory /home/atlas2/nir/setups/root-5.12.00' for cintdll in vector list deque map map2 set multimap multimap2 multiset stack queue exception complex stdfunc stdcxxfunc posix ipc; do \ rm -f cint/lib/dll_stl/rootcint_${cintdll}.o \ cint/lib/dll_stl/G__cpp_${cintdll}.o \ metautils/src/stlLoader_${cintdll}.o; done rm -f cint/stl/vector.dll cint/stl/list.dll cint/stl/deque.dll cint/stl/map.dll cint/stl/map2.dll cint/stl/set.dll cint/stl/multimap.dll cint/stl/multimap2.dll cint/stl/multiset.dll cint/stl/stack.dll cint/stl/queue.dll cint/stl/exception.dll cint/stl/complex.dll cint/stl/stdfunc.dll cint/stl/stdcxxfunc.dll cint/include/posix.so cint/include/sys/ipc.so lib/libvectorDict.so lib/liblistDict.so lib/libdequeDict.so lib/libmapDict.so lib/libmap2Dict.so lib/libsetDict.so lib/libmultimapDict.so lib/libmultimap2Dict.so lib/libmultisetDict.so \ cint/lib/posix/exten.o cint/stl/posix.dll \ cint/lib/posix/G__c_posix.o for cintdll in vector list deque map map2 set multimap multimap2 multiset stack queue exception complex stdfunc stdcxxfunc posix ipc; do \ rm -f cint/lib/dll_stl/rootcint_${cintdll}.* \ cint/lib/dll_stl/G__cpp_${cintdll}.* \ metautils/src/stlLoader_${cintdll}.*; done rm -f cint/stl/vector.dll cint/stl/list.dll cint/stl/deque.dll cint/stl/map.dll cint/stl/map2.dll cint/stl/set.dll cint/stl/multimap.dll cint/stl/multimap2.dll cint/stl/multiset.dll cint/stl/stack.dll cint/stl/queue.dll cint/stl/exception.dll cint/stl/complex.dll cint/stl/stdfunc.dll cint/stl/stdcxxfunc.dll cint/include/posix.so cint/include/sys/ipc.so lib/libvectorDict.so lib/liblistDict.so lib/libdequeDict.so lib/libmapDict.so lib/libmap2Dict.so lib/libsetDict.so lib/libmultimapDict.so lib/libmultimap2Dict.so lib/libmultisetDict.so \ cint/lib/posix/G__c_posix.* cint/lib/posix/mktypes make[2]: Entering directory/home/atlas2/nir/setups/root-5.12.00/qtgsi/test’
make[3]: Entering directory /home/atlas2/nir/setups/root-5.12.00/qtgsi/test/example1' Makefile:7: /config/Makefile.config: No such file or directory Makefile:8: /test/Makefile.arch: No such file or directory make[3]: *** No rule to make target/test/Makefile.arch’. Stop.
make[3]: Leaving directory /home/atlas2/nir/setups/root-5.12.00/qtgsi/test/example1' make[3]: Entering directory/home/atlas2/nir/setups/root-5.12.00/qtgsi/test/example2’
make[3]: Leaving directory /home/atlas2/nir/setups/root-5.12.00/qtgsi/test/example2' make[2]: Leaving directory/home/atlas2/nir/setups/root-5.12.00/qtgsi/test’
make[2]: root-config: Command not found
make[2]: Entering directory /home/atlas2/nir/setups/root-5.12.00/smatrix/test' make[2]: root-config: Command not found make[2]: root-config: Command not found make[2]: root-config: Command not found make[2]: root-config: Command not found make[2]: root-config: Command not found make[2]: root-config: Command not found ../../test/Makefile.arch:556: *** invalid architecture. Stop. make[2]: Leaving directory/home/atlas2/nir/setups/root-5.12.00/smatrix/test’
make[1]: [distclean-smatrix] Error 2 (ignored)
make[2]: root-config: Command not found
make[2]: Entering directory /home/atlas2/nir/setups/root-5.12.00/test' make[2]: root-config: Command not found make[2]: root-config: Command not found make[2]: root-config: Command not found make[2]: root-config: Command not found make[2]: root-config: Command not found make[2]: root-config: Command not found Makefile.arch:556: *** invalid architecture. Stop. make[2]: Leaving directory/home/atlas2/nir/setups/root-5.12.00/test’
make[1]: [distclean] Error 2 (ignored)
make[1]: Leaving directory `/home/atlas2/nir/setups/root-5.12.00’
build/unix/makecintdlls.sh clean
make: build/unix/makecintdlls.sh: Command not found
make: *** [clean] Error 127
/////////////////////////////////////

I’ve tried it with various architectures but it still wouldn’t work. Can anyone tell me what I’m doing wrong?
Thanks!

Silly. I forgot to mention it’s 5.12/00

[quote=“Nir”]Hello,

I’m using a debian system with gcc 3.3.6 and am trying to install root without success.

[/quote]

I just succeeded in compiling under Debian Sarge.

Here are the packages I’ve installed to compile it:
sron.nl/~mverwijs/files/astr … selections

Download them and run:

apt-get update dpkg --set-selections < dpkg-selections apt-get dselect-upgrade

Apt will now install the needed packages.

I had an error compiling a different app (astroroot), but maybe my settings will help you? See:
http://root.cern.ch/phpBB2/viewtopic.php?t=3700

Finally: I use pbuilder to create a small chroot environment in which I build. I recommend you use it. If you mess up, just exit the chroot and restart pbuilder. You will have a fresh Debian Sarge environment anytime you need it, without having to fear messing up your working environment.

Hi,

for now do export ROOTSYS=/home/atlas2/nir/setups/root-5.12.00 (for sh, setenv for csh) before running make debian. qtgsi seems to use it although it shouldn’t. I’ll provide a fix.

Cheers, Axel.