I'm using Yocto "warrior" version.

It is setup for powerpc-nf
DEFAULTTUNE = "powerpc-nf"
DISTRO = "poky"

Everything seems to work find until I enable "valgrind".  'bitbake' fails
to compile valgrind

************************
:
| collect2: error: ld returned 1 exit status
| make[3]: *** [Makefile:1034: memcheck-ppc32-linux] Error 1
| make[3]: Leaving directory '$
{WORK_DIR}/powerpc-nf-poky-linux/valgrind/3.14.0-r0/build/memcheck'
| make[2]: *** [Makefile:1345: all-recursive] Error 1
| make[2]: Leaving directory '$
{WORK_DIR}/powerpc-nf-poky-linux/valgrind/3.14.0-r0/build/memcheck'
| make[1]: *** [Makefile:834: all-recursive] Error 1
| make[1]: Leaving directory '$
{WORK_DIR}/work/powerpc-nf-poky-linux/valgrind/3.14.0-r0/build'
| make: *** [Makefile:703: all] Error 2
| make: Leaving directory '$
{WORK_DIR}/powerpc-nf-poky-linux/valgrind/3.14.0-r0/build'
| ERROR: oe_runmake failed
| WARNING: $
{WORK_DIR}/powerpc-nf-poky-linux/valgrind/3.14.0-r0/temp/run.do_compile.23806:1
 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at $
{WORK_DIR}/powerpc-nf-poky-linux/valgrind/3.14.0-r0/temp/log.do_compile.23806)
ERROR: Task ($
{REPODIR}fips-build/meta/recipes-devtools/valgrind/valgrind_3.14.0.bb:do_compile)
 failed with exit code '1'
NOTE: Tasks Summary: Attempted 4091 tasks of which 4089 didn't need to be
rerun and 1 failed.

Summary: 1 task failed:
  $
{REPO_DIR}/fips-build/meta/recipes-devtools/valgrind/valgrind_3.14.0.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
*********************************************

Many link failure...
**********************************
 undefined reference to `__floatsidf'
 undefined reference to `__muldf3'
 undefined reference to `__ltdf2'
 undefined reference to `__fixdfsi'
 undefined reference to `__divdf3'
 undefined reference to `__floatunsidf'
 undefined reference to `__floatundidf'
 undefined reference to `__adddf3'
 undefined reference to `__fixunsdfdi'
 undefined reference to `__nedf2'
 undefined reference to `__gtdf2'
 undefined reference to `__subdf3'
 undefined reference to `__eqsf2'
 undefined reference to `__eqdf2'
 undefined reference to `__floatunsisf'
 undefined reference to `__divsf3'
***********************

Seems like many people were running into this issue for many reason.  Saw a
lot of suggestion in google, but seem like there is no real solution...
I try to create valgrind_%.bbappen with the following contents.  And did
not help...
#####################
#valgrind will not compile even with below changes
CFLAGS_prepend = " -lc -lm "
CFLAGS_append = " -ffast-math -static-libgcc -lgcc -ffreestanding -lc -lm "
#BASE_WORKDIR="/tmp/youhour/fips-build/m20210707a/fips-ppcnf/build/tmp/work"
#./powerpc-nf-poky-linux/valgrind/3.14.0-r0/recipe-sysroot/usr/lib/powerpc-poky-linux/8.3.0/libgcc.a
BUILD_LDFLAGS_append = " -L$
{BASE_WORKDIR}/powerpc-nf-poky-linux/valgrind/3.14.0-r0/recipe-sysroot/usr/lib/powerpc-poky-linux/8.3.0
 "
#####################

Any suggestion is appreciated.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54078): https://lists.yoctoproject.org/g/yocto/message/54078
Mute This Topic: https://lists.yoctoproject.org/mt/84078971/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to