https://bugs.kde.org/show_bug.cgi?id=440016

            Bug ID: 440016
           Summary: Build error: undefined reference to `sleep'
           Product: valgrind
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: ajstewart...@gmail.com
  Target Milestone: ---

Created attachment 140167
  --> https://bugs.kde.org/attachment.cgi?id=140167&action=edit
Build log

SUMMARY

I'm trying to compile valgrind 3.17.0 but I'm encountering a build error.

STEPS TO REPRODUCE
1. configure --enable-ubsan --enable-only64bit
2. make

OBSERVED RESULT

The build error looks like:

../coregrind/link_tool_exe_linux 0x58000000
/mnt/a/u/sciteam/stewart1/spack/lib/spack/env/gcc/gcc     -o
memcheck-amd64-linux  -m64 -O2 -g -Wall -Wmissing-prototypes -Wshadow
-Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align
-Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-signedness
-Wformat-security -Wignored-qualifiers -Wmissing-parameter-type -Wlogical-op
-Wimplicit-fallthrough=2 -Wold-style-declaration -finline-functions
-fno-stack-protector -fsanitize=undefined -fno-sanitize=alignment
-fno-strict-aliasing -fno-builtin  -fomit-frame-pointer -O2 -static
-nodefaultlibs -nostartfiles -u _start -Wl,--build-id=none -m64
memcheck_amd64_linux-mc_leakcheck.o memcheck_amd64_linux-mc_malloc_wrappers.o
memcheck_amd64_linux-mc_main.o memcheck_amd64_linux-mc_main_asm.o
memcheck_amd64_linux-mc_translate.o memcheck_amd64_linux-mc_machine.o
memcheck_amd64_linux-mc_errors.o ../coregrind/libcoregrind-amd64-linux.a
../VEX/libvex-amd64-linux.a -lgcc ../coregrind/libgcc-sup-amd64-linux.a
/opt/cray/atp/2.0.4/libApp/libAtpSigHandler.a(atpSigHandler.o): In function
`mySleep':
atpSigHandler.c:(.text+0x59): undefined reference to `sleep'
/opt/cray/atp/2.0.4/libApp/libAtpSigHandler.a(atpSigHandler.o): In function
`logAltStack':
atpSigHandler.c:(.text+0xe6): undefined reference to `syscall'
/opt/cray/atp/2.0.4/libApp/libAtpSigHandler.a(atpSigHandler.o): In function
`getApid':
atpSigHandler.c:(.text+0x174): undefined reference to `__getpid'
atpSigHandler.c:(.text+0x192): undefined reference to `ioctl'
/opt/cray/atp/2.0.4/libApp/libAtpSigHandler.a(atpSigHandler.o): In function
`isEnvVarTrue':
atpSigHandler.c:(.text+0x1cf): undefined reference to `getenv'
/opt/cray/atp/2.0.4/libApp/libAtpSigHandler.a(atpSigHandler.o): In function
`defaultEnvVar':
atpSigHandler.c:(.text+0x23b): undefined reference to `getenv'
atpSigHandler.c:(.text+0x252): undefined reference to `atoi'
/opt/cray/atp/2.0.4/libApp/libAtpSigHandler.a(atpSigHandler.o): In function
`atpAppSigHandler':
atpSigHandler.c:(.text+0x333): undefined reference to `syscall'
atpSigHandler.c:(.text+0x386): undefined reference to `syscall'
atpSigHandler.c:(.text+0x3a4): undefined reference to `syscall'

EXPECTED RESULT

I would expect things to compile without issue.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Cray CNL5

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to