[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GUB build attempt on Ubuntu 10.04.4
From: |
John Mandereau |
Subject: |
GUB build attempt on Ubuntu 10.04.4 |
Date: |
Mon, 20 Aug 2012 18:43:15 +0200 |
I've never got so far than this time, as I've managed to complete
make bootstrap
make -f lilypond.make bootstrap
at the price of ugly kludgy operations, so I thought a report would be
of some interest for GUB hackers.
After this, any attempt to build LilyPond with GUB failed at configure,
with a lot of dependencies not found, like FlexLexer.h, libguile,
Python.h, libpango1.0-dev. All these have been built in in 'tools' or
the specific targets during the bootstrap stages above. I porbably
won't investigate further before the meeting in Waltrop.
I used my Core2 Duo with a desktop Ubuntu
10.04.4 (Lucid Lynx LTS) i386, installed on an external hard disk using
a virtual machine, and then used by chrooting in it (so in case it
matters, I'm using a 3.x kernel 3.5.2-1.fc17.x86_64).
I reused downloads from a previous attempt, so I can't remember which
issues I had, but IIRC downloads not found by GUB were easily retrieved
by hand.
Here are the steps I did to work around failing builds/installs.
================================================================
building package: freebsd-x86::cross/binutils
*** Stage: download (cross/binutils, freebsd-x86)
*** Stage: untar (cross/binutils, freebsd-x86)
*** Stage: patch (cross/binutils, freebsd-x86)
*** Stage: autoupdate (cross/binutils, freebsd-x86)
*** Stage: configure (cross/binutils, freebsd-x86)
*** Stage: compile (cross/binutils, freebsd-x86)
Command barfed: cd
/home/john/git/newgub/target/freebsd-x86/build/cross/binutils-2.19.1 && make
-j4 MULTIOSDIR=../../lib
Tail of target/freebsd-x86/log/cross/binutils.log >>>>>>>>
make[1]: *** [configure-bfd] Error 1
make[1]: Leaving directory
`/home/john/git/newgub/target/freebsd-x86/build/cross/binutils-2.19.1'
make: *** [all] Error 2
Command barfed: cd
/home/john/git/newgub/target/freebsd-x86/build/cross/binutils-2.19.1 && make
-j4 MULTIOSDIR=../../lib
<<<<<<<< Tail of target/freebsd-x86/log/cross/binutils.log
*** Failed target: freebsd-x86::cross/binutils
make: *** [cross-compilers] Error 1
It complained about not finding libz.so, although
$ ls target/tools/root/usr/lib/libz.so*
libz.so libz.so.1 libz.so.1.2.3
Doing
aptitude install libz-dev
allowed to build the GUB package and go further.
================================================================
building package: tools::python
*** Stage: download (python, tools)
*** Stage: untar (python, tools)
*** Stage: patch (python, tools)
*** Stage: autoupdate (python, tools)
*** Stage: configure (python, tools)
*** Stage: compile (python, tools)
*** Stage: install (python, tools)
Command barfed: cd /home/john/git/newgub/target/tools/build/python-2.4.5 &&
make BLDLIBRARY='-Wl,-rpath -Wl,\$$ORIGIN/../lib -Wl,-rpath
-Wl,/home/john/git/newgub/target/tools/root/usr/lib -L. -lpython$(VERSION)'
DESTDIR=/home/john/git/newgub/target/tools/install/python-2.4.5-root install
Tail of target/tools/log/python.log >>>>>>>>
python$EXE ../../Tools/scripts/h2py.py -i '(u_long)'
/usr/include/netinet/in.h
python: error while loading shared libraries: libpython2.4.so.1.0: cannot
open shared object file: No such file or directory
make: ***
[/home/john/git/newgub/target/tools/src/python-2.4.5/Lib/plat-linux3] Error 127
Command barfed: cd /home/john/git/newgub/target/tools/build/python-2.4.5 &&
make BLDLIBRARY='-Wl,-rpath -Wl,\$$ORIGIN/../lib -Wl,-rpath
-Wl,/home/john/git/newgub/target/tools/root/usr/lib -L. -lpython$(VERSION)'
DESTDIR=/home/john/git/newgub/target/tools/install/python-2.4.5-root install
<<<<<<<< Tail of target/tools/log/python.log
*** Failed target: tools::python
make: *** [tools] Error 1
Well, this is a well-known issue:
http://lists.gnu.org/archive/html/lilypond-devel/2011-12/msg00719.html
I haven't been able to find a clean solution: there has been some
discussion on Python issue tracker about Linux 2/Linux 3 issues, and in
my case the running kernel is a 3.x, but I don't know how this is
supposed to affect dynamic libraries search. Whatever. After
unsuccessful searches, I had the idea of copying the freshly compiled
libpython2.4.so.1.0 (which was in the same build directory as the
freshly compiled python binary) to target/tools/root:
cd target/tools
cp build/python-2.4.5/libpython2.4.* root/usr/lib/
then after the usual
rm status/python-2.4.5-Python-2.4.5
I retried and tools::python build ran and completed.
===================================================================
building package: tools::guile
*** Stage: download (guile, tools)
*** Stage: untar (guile, tools)
*** Stage: patch (guile, tools)
*** Stage: autoupdate (guile, tools)
*** Stage: configure (guile, tools)
*** Stage: compile (guile, tools)
Command barfed: cd
/home/john/git/newgub/target/tools/build/guile-1.8.7/libguile && make
LD_LIBRARY_PATH=/home/john/git/newgub/target/tools/root/usr/lib CFLAGS='-O2
-I/home/john/git/newgub/target/tools/root/usr/include'
LDFLAGS='-L/home/john/git/newgub/target/tools/root/usr/lib -Wl,-rpath
-Wl,\$$ORIGIN/../lib -Wl,-rpath
-Wl,/home/john/git/newgub/target/tools/root/usr/lib' gen-scmconfig
guile_filter_doc_snarfage
Tail of target/tools/log/guile.log >>>>>>>>
make[1]: *** [/home/john/git/newgub/target/tools/src/guile-1.8.7/configure]
Error 1
make[1]: Leaving directory
`/home/john/git/newgub/target/tools/build/guile-1.8.7'
make: *** [/home/john/git/newgub/target/tools/src/guile-1.8.7/aclocal.m4]
Error 2
Command barfed: cd
/home/john/git/newgub/target/tools/build/guile-1.8.7/libguile && make
LD_LIBRARY_PATH=/home/john/git/newgub/target/tools/root/usr/lib CFLAGS='-O2
-I/home/john/git/newgub/target/tools/root/usr/include'
LDFLAGS='-L/home/john/git/newgub/target/tools/root/usr/lib -Wl,-rpath
-Wl,\$$ORIGIN/../lib -Wl,-rpath
-Wl,/home/john/git/newgub/target/tools/root/usr/lib' gen-scmconfig
guile_filter_doc_snarfage
<<<<<<<< Tail of target/tools/log/guile.log
*** Failed target: tools::guile
make: *** [tools] Error 1
More details:
invoking cd /home/john/git/newgub/target/tools/build/guile-1.8.7/libguile &&
make LD_LIBRARY_PATH=/home/john/git/newgub/target/tools/root/usr/lib
CFLAGS='-O2 -I/home/john/git/newgub/target/tools/root/usr/include'
LDFLAGS='-L/home/john/git/newgub/target/tools/root/usr/lib -Wl,-rpath
-Wl,\$$ORIGIN/../lib -Wl,-rpath
-Wl,/home/john/git/newgub/target/tools/root/usr/lib' gen-scmconfig
guile_filter_doc_snarfage
cd .. && make am--refresh
make[1]: Entering directory
`/home/john/git/newgub/target/tools/build/guile-1.8.7'
CDPATH="${ZSH_VERSION+.}:" && cd
/home/john/git/newgub/target/tools/src/guile-1.8.7 && /bin/bash
/home/john/git/newgub/target/tools/src/guile-1.8.7/build-aux/missing --run
aclocal-1.11 -I m4
configure.in:862: warning: macro `AM_GNU_GETTEXT' not found in library
cd /home/john/git/newgub/target/tools/src/guile-1.8.7 && /bin/bash
/home/john/git/newgub/target/tools/src/guile-1.8.7/build-aux/missing --run
automake-1.11 --gnu
CDPATH="${ZSH_VERSION+.}:" && cd
/home/john/git/newgub/target/tools/src/guile-1.8.7 && /bin/bash
/home/john/git/newgub/target/tools/src/guile-1.8.7/build-aux/missing --run
autoconf
configure.in:885: error: possibly undefined macro: AM_GNU_GETTEXT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make[1]: *** [/home/john/git/newgub/target/tools/src/guile-1.8.7/configure]
Error 1
make[1]: Leaving directory
`/home/john/git/newgub/target/tools/build/guile-1.8.7'
make: *** [/home/john/git/newgub/target/tools/src/guile-1.8.7/aclocal.m4] Error
2
GUB has completed the build of
tools::{autoconf,automake,gettext,make,libtool}, so it must be
some /usr/{bin,lib} hardcoded path. I installed gettext on the host
system through aptitude (that provides libgettext), but still no luck:
building package: tools::guile
*** Stage: download (guile, tools)
*** Stage: untar (guile, tools)
*** Stage: patch (guile, tools)
*** Stage: autoupdate (guile, tools)
*** Stage: configure (guile, tools)
*** Stage: compile (guile, tools)
Command barfed: cd
/home/john/git/newgub/target/tools/build/guile-1.8.7/libguile && make
LD_LIBRARY_PATH=/home/john/git/newgub/target/tools/root/usr/lib CFLAGS='-O2
-I/home/john/git/newgub/target/tools/root/usr/include'
LDFLAGS='-L/home/john/git/newgub/target/tools/root/usr/lib -Wl,-rpath
-Wl,\$$ORIGIN/../lib -Wl,-rpath
-Wl,/home/john/git/newgub/target/tools/root/usr/lib' gen-scmconfig
guile_filter_doc_snarfage
Tail of target/tools/log/guile.log >>>>>>>>
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
libtool: and run autoconf again.
make: *** [gen-scmconfig] Error 63
Command barfed: cd
/home/john/git/newgub/target/tools/build/guile-1.8.7/libguile && make
LD_LIBRARY_PATH=/home/john/git/newgub/target/tools/root/usr/lib CFLAGS='-O2
-I/home/john/git/newgub/target/tools/root/usr/include'
LDFLAGS='-L/home/john/git/newgub/target/tools/root/usr/lib -Wl,-rpath
-Wl,\$$ORIGIN/../lib -Wl,-rpath
-Wl,/home/john/git/newgub/target/tools/root/usr/lib' gen-scmconfig
guile_filter_doc_snarfage
<<<<<<<< Tail of target/tools/log/guile.log
*** Failed target: tools::guile
make: *** [tools] Error 1
I no longer have the whole config.log at hand, but it said something like
"Version mismatch: LT_INIT comes from libtool-2.2.6b [...] You should recreate
aclocal.m4 with macros from libtool 2.2.6"
2.2.6b is the version installed in /usr (Ubuntu 10.04.4). I tried
installing libtool 2.2.6 by compiling from source, but it didn't help,
so I installed it in /usr instead, and then "make -f lilypond.make
bootstrap" completed.
Cheers,
John
- GUB build attempt on Ubuntu 10.04.4,
John Mandereau <=