denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] The lilypond build system adopted to build Denemo for


From: Richard Shann
Subject: Re: [Denemo-devel] The lilypond build system adopted to build Denemo for various OS
Date: Mon, 13 Jul 2009 11:34:54 +0100

On Sun, 2009-07-12 at 19:47 +0200, Jan Nieuwenhuizen wrote:
> On zo, 2009-07-12 at 17:00 +0100, Richard Shann wrote:
> > On Sun, 2009-07-12 at 13:19 +0200, Jan Nieuwenhuizen wrote:
> > > On zo, 2009-07-12 at 10:08 +0100, Richard Shann wrote:
> 
> > I see that you have .libs/libasprintf.so.0.0.0 so I tried diffing the
> > Makefile that should generate it, allowing for the difference in the
> > location of gub the diff shows only this:
> 
> Okay.  Here's what happens when I rebuild it.
> 
> $ rm libasprintf.la 
> 19:42:45 
> address@hidden:~/vc/gub/target/tools/build/gettext-0.15/gettext-runtime/libasprintf
> $ make
> make  all-am
> make[1]: Map 
> '/home/janneke/vc/gub/target/tools/build/gettext-0.15/gettext-runtime/libasprintf'
>  wordt binnengegaan
> /bin/bash ./libtool --tag=CXX --mode=link g++  -g -O2  
> -L/home/janneke/vc/gub/target/tools/root/usr/lib -o libasprintf.la -rpath 
> /home/janneke/vc/gub/target/tools/root/usr/lib  lib-asprintf.lo 
> autosprintf.lo   || \
>       /bin/bash ./libtool --tag=CC --mode=link gcc  
> -I/home/janneke/vc/gub/target/tools/root/usr/include  
> -L/home/janneke/vc/gub/target/tools/root/usr/lib -o libasprintf.la -rpath 
> /home/janneke/vc/gub/target/tools/root/usr/lib  lib-asprintf.lo 
> autosprintf.lo  
> libtool: link: rm -fr  .libs/libasprintf.a .libs/libasprintf.la 
> .libs/libasprintf.lai .libs/libasprintf.so .libs/libasprintf.so.0 
> .libs/libasprintf.so.0.0.0
> libtool: link: g++ -shared -nostdlib 
> /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib/crti.o 
> /usr/lib/gcc/x86_64-linux-gnu/4.3.3/crtbeginS.o  .libs/lib-asprintf.o 
> .libs/autosprintf.o   -L/home/janneke/vc/gub/target/tools/root/usr/lib 
> -L/home/janneke/vc/gub/target/tools/root/usr/lib/../lib 
> -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3 
> -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib -L/lib/../lib 
> -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../.. -lstdc++ -lm 
> -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.3.3/crtendS.o 
> /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib/crtn.o    -Wl,-soname 
> -Wl,libasprintf.so.0 -o .libs/libasprintf.so.0.0.0
> libtool: link: (cd ".libs" && rm -f "libasprintf.so.0" && ln -s 
> "libasprintf.so.0.0.0" "libasprintf.so.0")
> libtool: link: (cd ".libs" && rm -f "libasprintf.so" && ln -s 
> "libasprintf.so.0.0.0" "libasprintf.so")
> libtool: link: ar cru .libs/libasprintf.a  lib-asprintf.o autosprintf.o
> libtool: link: ranlib .libs/libasprintf.a
> libtool: link: ( cd ".libs" && rm -f "libasprintf.la" && ln -s 
> "../libasprintf.la" "libasprintf.la" )
> make[1]: Map 
> '/home/janneke/vc/gub/target/tools/build/gettext-0.15/gettext-runtime/libasprintf'
>  wordt verlaten
> 19:42:47 
> address@hidden:~/vc/gub/target/tools/build/gettext-0.15/gettext-runtime/libasprintf
> $ 
> 
when I try to force a make the line you have that makes the .so.0.0.0
just does not exist:

 mv libasprintf.la hidelibasprintf.la
address@hidden:~/gub/target/tools/build/gettext-0.15/gettext-runtime/libasprintf$
 make
make  all-am
make[1]: Entering directory
`/home/rshann/gub/target/tools/build/gettext-0.15/gettext-runtime/libasprintf'
/bin/sh ./libtool --tag=CXX --mode=link g++  -g -O2
-L/home/rshann/gub/target/tools/root/usr/lib -o libasprintf.la
-rpath /home/rshann/gub/target/tools/root/usr/lib  lib-asprintf.lo
autosprintf.lo   || \
        /bin/sh ./libtool --tag=CC --mode=link gcc
-I/home/rshann/gub/target/tools/root/usr/include
-L/home/rshann/gub/target/tools/root/usr/lib -o libasprintf.la
-rpath /home/rshann/gub/target/tools/root/usr/lib  lib-asprintf.lo
autosprintf.lo  
libtool: link: rm
-fr  .libs/libasprintf.a .libs/libasprintf.la .libs/libasprintf.lai 
.libs/libasprintf.so .libs/libasprintf.so.0
libtool: link: (cd ".libs" && rm -f "libasprintf.so.0" && ln -s
"libasprintf.so.0.0.0" "libasprintf.so.0")
libtool: link: (cd ".libs" && rm -f "libasprintf.so" && ln -s
"libasprintf.so.0.0.0" "libasprintf.so")
libtool: link: ar cru .libs/libasprintf.a  lib-asprintf.o autosprintf.o
libtool: link: ranlib .libs/libasprintf.a
libtool: link: ( cd ".libs" && rm -f "libasprintf.la" && ln -s
"../libasprintf.la" "libasprintf.la" )
make[1]: Leaving directory
`/home/rshann/gub/target/tools/build/gettext-0.15/gettext-runtime/libasprintf'
address@hidden:~/gub/target/tools/build/gettext-0.15/gettext-runtime/libasprintf$
 

> 
> Most probably it's another libtool thing again.
(I don't know libtool, but here goes...)
>   You see how libtool 
> [re]generates .libs/libasprintf.so.0.0.0?.  See what happens on your
> side and try diffing our libtool scripts.
> 
> Oh, please use unified diffs, diff -u.  Much more readable.
>  
Here is the diff -u of the script libtool, having looked through it I
can't claim to be much the wiser...


--- libtool     2009-07-13 11:22:25.000000000 +0100
+++ 
/home/rshann/gub/target/tools/build/gettext-0.15/gettext-runtime/libasprintf/libtool
        2009-07-09 17:22:22.000000000 +0100
@@ -1,8 +1,8 @@
-#! /bin/bash
+#! /bin/sh
 
 # libtool - Provide generalized library-building support services.
 # Generated automatically by config.status (libtool) 2.2.6
-# Libtool was configured on host peder:
+# Libtool was configured on host debianrts:
 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
 #
 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
@@ -65,12 +65,12 @@
 
 # The host system.
 host_alias=
-host=x86_64-unknown-linux-gnu
+host=i686-pc-linux-gnu
 host_os=linux-gnu
 
 # The build system.
 build_alias=
-build=x86_64-unknown-linux-gnu
+build=i686-pc-linux-gnu
 build_os=linux-gnu
 
 # A sed program that does not truncate output.
@@ -95,7 +95,7 @@
 LN_S="ln -s"
 
 # What is the maximum length of a command?
-max_cmd_len=3458764513820540925
+max_cmd_len=98304
 
 # Object file suffix (normally "o").
 objext=o
@@ -156,7 +156,7 @@
 objdir=.libs
 
 # Shell to use when invoking shell scripts.
-SHELL="/bin/bash"
+SHELL="/bin/sh"
 
 # An echo program that does not interpret backslashes.
 ECHO="echo"
@@ -240,10 +240,10 @@
 hardcode_into_libs=yes
 
 # Compile-time system search path for libraries.
-sys_lib_search_path_spec="/home/rshann/gub/target/tools/root/usr/lib 
/usr/lib/gcc/x86_64-linux-gnu/4.3.3 /home/rshann/gub/target/tools/root/usr/lib 
/usr/lib /lib"
+sys_lib_search_path_spec="/home/rshann/gub/target/tools/root/usr/lib 
/usr/lib/gcc/i486-linux-gnu/4.3.2 /home/rshann/gub/target/tools/root/usr/lib 
/usr/lib /lib"
 
 # Run-time system search path for libraries.
-sys_lib_dlsearch_path_spec="/lib /home/rshann/gub/target/tools/root/usr/lib 
/usr/lib /usr/lib32/alsa-lib /usr/lib/alsa-lib /usr/local/lib 
/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu "
+sys_lib_dlsearch_path_spec="/lib /home/rshann/gub/target/tools/root/usr/lib 
/usr/lib /lib/i486-linux-gnu /usr/lib/i486-linux-gnu /usr/local/lib "
 
 # Whether dlopen is supported.
 dlopen_support=yes
@@ -255,12 +255,12 @@
 dlopen_self_static=no
 
 # Commands to strip libraries.
-old_striplib=""
-striplib=""
+old_striplib="strip --strip-debug"
+striplib="strip --strip-unneeded"
 
 
 # The linker used to build libraries.
-LD="/usr/bin/ld -m elf_x86_64"
+LD="/usr/bin/ld"
 
 # Commands used to build an old-style archive.
 old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib"
@@ -8915,31 +8915,31 @@
 # ### BEGIN LIBTOOL TAG CONFIG: CXX
 
 # The linker used to build libraries.
-LD="/usr/bin/ld -m elf_x86_64"
+LD=""
 
 # Commands used to build an old-style archive.
 old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib"
 
 # A language specific compiler.
-CC="g++"
+CC=""
 
 # Is the compiler the GNU compiler?
-with_gcc=yes
+with_gcc=
 
 # Compiler flag to turn off builtin functions.
-no_builtin_flag=" -fno-builtin"
+no_builtin_flag=""
 
 # How to pass a linker flag through the compiler.
-wl="-Wl,"
+wl=""
 
 # Additional compiler flags for building library objects.
-pic_flag=" -fPIC -DPIC"
+pic_flag=""
 
 # Compiler flag to prevent dynamic linking.
-link_static_flag="-static"
+link_static_flag=""
 
 # Does compiler simultaneously support -c and -o options?
-compiler_c_o="yes"
+compiler_c_o=""
 
 # Whether or not to add -lc for building shared libraries.
 build_libtool_need_lc=no
@@ -8948,10 +8948,10 @@
 allow_libtool_libs_with_static_runtimes=no
 
 # Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec="\${wl}--export-dynamic"
+export_dynamic_flag_spec=""
 
 # Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec="\${wl}--whole-archive\$convenience \
${wl}--no-whole-archive"
+whole_archive_flag_spec=""
 
 # Whether the compiler copes with passing no objects directly.
 compiler_needs_object="no"
@@ -8963,8 +8963,8 @@
 old_archive_from_expsyms_cmds=""
 
 # Commands used to build a shared archive.
-archive_cmds="\$CC -shared -nostdlib \$predep_objects \$libobjs \
$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname
-o \$lib"
-archive_expsym_cmds="\$CC -shared -nostdlib \$predep_objects \$libobjs
\$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname
\${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib"
+archive_cmds=""
+archive_expsym_cmds=""
 
 # Commands used to build a loadable module if different from building
 # a shared archive.
@@ -8972,7 +8972,7 @@
 module_expsym_cmds=""
 
 # Whether we are building with GNU ld or not.
-with_gnu_ld="yes"
+with_gnu_ld=""
 
 # Flag that allows shared libraries with undefined symbols to be built.
 allow_undefined_flag=""
@@ -8982,7 +8982,7 @@
 
 # Flag to hardcode $libdir into a binary during linking.
 # This must work even if $libdir does not exist
-hardcode_libdir_flag_spec="\${wl}-rpath \${wl}\$libdir"
+hardcode_libdir_flag_spec=""
 
 # If ld is used when linking, flag to hardcode $libdir into a binary
 # during linking.  This must work even if $libdir does not exist.
@@ -9028,10 +9028,10 @@
 always_export_symbols=no
 
 # The commands to list exported symbols.
-export_symbols_cmds="\$NM \$libobjs \$convenience | \
$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"
+export_symbols_cmds=""
 
 # Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*"
+exclude_expsyms=""
 
 # Symbols that must always be exported.
 include_expsyms=""
@@ -9043,21 +9043,21 @@
 file_list_spec=""
 
 # How to hardcode a shared library path into an executable.
-hardcode_action=immediate
+hardcode_action=
 
 # The directories searched by this compiler when creating a shared
library.
-compiler_lib_search_dirs="/home/rshann/gub/target/tools/root/usr/lib/../lib 
/usr/lib/gcc/x86_64-linux-gnu/4.3.3 /usr/lib/gcc/x86_64-linux-gnu/4.3.3 
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib /lib/../lib 
/home/rshann/gub/target/tools/root/usr/lib  /usr/lib/../lib 
/home/rshann/gub/target/tools/root/usr/lib 
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../.."
+compiler_lib_search_dirs=""
 
 # Dependencies to place before and after the objects being linked to
 # create a shared library.
-predep_objects="/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib/crti.o 
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/crtbeginS.o"
-postdep_objects="/usr/lib/gcc/x86_64-linux-gnu/4.3.3/crtendS.o 
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib/crtn.o"
+predep_objects=""
+postdep_objects=""
 predeps=""
-postdeps="-lstdc++ -lm -lgcc_s -lc -lgcc_s"
+postdeps=""
 
 # The library search path used internally by the compiler when linking
 # a shared library.
-compiler_lib_search_path="-L/home/rshann/gub/target/tools/root/usr/lib/../lib 
-L/usr/lib/gcc/x86_64-linux-gnu/4.3.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3 
-L/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib -L/lib/../lib 
-L/home/rshann/gub/target/tools/root/usr/lib -L/usr/lib/../lib 
-L/home/rshann/gub/target/tools/root/usr/lib 
-L/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../.."
+compiler_lib_search_path=""
 
 # ### END LIBTOOL TAG CONFIG: CXX
 
@@ -9362,7 +9362,7 @@
 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
 
 # The linker used to build libraries.
-LD="/usr/bin/ld -m elf_x86_64"
+LD="/usr/bin/ld"
 
 # Commands used to build an old-style archive.
 old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib"

*********************************** end of diff *****************

Nils reported getting to the denemo installer executable, but hit gtk
installation lacked the svg loader.
It's ok if you think it is not profitable to do this keyhole debugging
of my gub attempt - OTOH I am happy to keep on pushing through, as
uncovering facts such as "you need g++ installed for gub" is presumably
useful (?)

Richard



> > Sorry for being so clueless with all this. Nils is trying on a 32-bit
> > machine, so perhaps he will get there.
> 
> Possibly, fwiw I'm on 64 bit too.
> 
> Jan.
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]