[Clfs-support] build error in PPL-0.12.1 (chapter 5.12)
Hugo Villeneuve
hugo at hugovil.com
Sat Jun 1 18:52:35 PDT 2013
On Sat, 01 Jun 2013 21:26:50 -0400
Daniel King <dking888 at columbus.rr.com> wrote:
> Hello All,
>
> I am currently following the the cross compiled linux from
> scratch(Version GIT-20130531-x86_64-Multilib). I am using Ubuntu 13.04on
> an AMD FX system. I was building PPL 0.12.1 when make returned the
> following error.
>
> make all-am
> make[3]: Entering directory `/mnt/lfs/sources/ppl-0.12.1/src'
> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I.. -I.. -I../src -I/cross-tools/include -I/cross-tools/include -g
> -frounding-math -W -Wall -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c
> -o assert.lo assert.cc
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src
> -I/cross-tools/include -I/cross-tools/include -g -frounding-math -W
> -Wall -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c assert.cc -fPIC
> -DPIC -o .libs/assert.o
> mv -f .deps/assert.Tpo .deps/assert.Plo
> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I.. -I.. -I../src -I/cross-tools/include -I/cross-tools/include -g
> -frounding-math -W -Wall -MT Box.lo -MD -MP -MF .deps/Box.Tpo -c -o
> Box.lo Box.cc
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src
> -I/cross-tools/include -I/cross-tools/include -g -frounding-math -W
> -Wall -MT Box.lo -MD -MP -MF .deps/Box.Tpo -c Box.cc -fPIC -DPIC -o
> .libs/Box.o
> In file included from checked.defs.hh:30:0,
> from Checked_Number.defs.hh:28,
> from Coefficient.types.hh:16,
> from Coefficient.defs.hh:27,
> from Box.defs.hh:29,
> from Box.cc:25:
> mp_std_bits.defs.hh:47:7: error: redefinition of 'class
> std::numeric_limits<__gmp_expr<__mpz_struct [1], __mpz_struct [1]> >'
> In file included from checked.defs.hh:29:0,
> from Checked_Number.defs.hh:28,
> from Coefficient.types.hh:16,
> from Coefficient.defs.hh:27,
> from Box.defs.hh:29,
> from Box.cc:25:
> /cross-tools/include/gmpxx.h:3270:21: error: previous definition of
> 'class std::numeric_limits<__gmp_expr<__mpz_struct [1], __mpz_struct [1]> >'
> In file included from checked.defs.hh:30:0,
> from Checked_Number.defs.hh:28,
> from Coefficient.types.hh:16,
> from Coefficient.defs.hh:27,
> from Box.defs.hh:29,
> from Box.cc:25:
> mp_std_bits.defs.hh:108:7: error: redefinition of 'class
> std::numeric_limits<__gmp_expr<__mpq_struct [1], __mpq_struct [1]> >'
> In file included from checked.defs.hh:29:0,
> from Checked_Number.defs.hh:28,
> from Coefficient.types.hh:16,
> from Coefficient.defs.hh:27,
> from Box.defs.hh:29,
> from Box.cc:25:
> /cross-tools/include/gmpxx.h:3307:21: error: previous definition of
> 'class std::numeric_limits<__gmp_expr<__mpq_struct [1], __mpq_struct [1]> >'
> make[3]: *** [Box.lo] Error 1
> make[3]: Leaving directory `/mnt/lfs/sources/ppl-0.12.1/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/mnt/lfs/sources/ppl-0.12.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/mnt/lfs/sources/ppl-0.12.1'
> make: *** [all] Error 2
Hi,
the following patch solved the problem for me:
http://www.hugovil.com/repository/hvlinux/patches/ppl-0.12.1-resolve-conflicts-with-gmp-5.1.0.patch
Hugo.
More information about the Clfs-support
mailing list