|
From: Christophe L. <chr...@cs...> - 2022-06-16 16:50:41
|
Hi Carl, Le 16/06/2022 à 18:04, Carl Love a écrit : > Christophe: > > On Thu, 2022-06-16 at 10:51 +0000, Christophe Leroy wrote: >> Hello >> >> Trying to build valgrind-3.19.0. >> >> ./configure --host=ppc-linux --prefix=/usr --enable-only32bit -- >> disable-tls >> >> I'm using glibc-2.35 >> >> I end up with following errors (many more of the same kind follows): >> >> /opt/cldk-1.5.1rc1b1/lib/gcc/ppc-linux/11.2.0/../../../../ppc- >> linux/bin/ld: >> memcheck_ppc32_linux-mc_main.o: in function `gcSecVBitTable': >> /home/chleroy/ldb_base/ofs/packages/valgrind- >> 3.19.0/memcheck/mc_main.c:993: >> undefined reference to `__floatsidf' >> > > Not sure why your using cldk-1.5.1.1rc1b1 in /opt? Not sure what that > is? That's just the directory where sits my home built cross compiler. > > When I tried the configure on a Power 10 64-bit system: > > ./configure --host=ppc-linux --prefix=/home/carll --enable-only32bit > --disable-tls > > The configure went fine but the compile fails on > /usr/include/gnu/stubs.h:8:11: fatal error: gnu/stubs-32.h: No such > file or directory > > Not sure what system you are on and why you need the enable-only32bit? I'm building on a x86_64 for running on a board which has a 32 bits powerpc CPU. That CPU has no FPU. > > I normally build for 64-bit machines, so I tried: > > ./configure --host=ppc-linux --prefix=/home/carll --disable-tls > > I see at the end of the configure: > > Maximum build arch: ppc32 > Primary build arch: ppc32 > > and again get a ppc32 related build error. > > Since I am on a ppc64 LE system I did the following configure: > > ./configure --host=ppc64le-linux --prefix=/home/carll --disable-tls > > Note, I am using the distro compiler /usr/bin/gcc and glibc. The build > works fine with the distro gcc and glibc. Can you set your paths to > use the default distro gcc and glib? I can't, I need a cross-build compiler with glibc support for my target. It is GCC 11 with Glibc 2.35 > > Note, the version of glibc that I am using, as given by the ldd > command, is: > > $ ldd --version ldd > ldd (GNU libc) 2.34 > The point is: - libgcc doesn't include floating point functions on powerpc, they are in libc - valgrind is built statically against libgcc, without libc Christophe |