1. Stanislav Sedov
  2. valgrind-freebsd
  3. Issues
Issue #14 new

Build fails without --enable-only64bit in lzodefs.h

Bryan Drewery
created an issue

When building on amd64 without --enable-only64bit, the build fails in lzodefs.h:

cc -DHAVE_CONFIG_H -I. -I..  -I..  -I../include  -I../VEX/pub  -DVGA_x86=1  -DVGO_freebsd=1  -DVGP_x86_freebsd=1  -DVGPV_x86_freebsd_vanilla=1  -I../coregrind  -DVG_LIBDIR="\"/usr/local/lib/valgrind"\"  -DVG_PLATFORM="\"x86-freebsd\""  -B/usr/lib32 -m32   -O2 -g  -Wall  -Wmissing-prototypes  -Wshadow  -Wpointer-arith  -Wstrict-prototypes  -Wmissing-declarations  -Wno-format-zero-length  -fno-strict-aliasing  -fno-builtin   -Wno-long-long -O2 -pipe -fno-strict-aliasing -Wwrite-strings -fno-stack-protector -MT m_debuginfo/libcoregrind_x86_freebsd_a-image.o -MD -MP -MF m_debuginfo/.deps/libcoregrind_x86_freebsd_a-image.Tpo -c -o m_debuginfo/libcoregrind_x86_freebsd_a-image.o `test -f 'm_debuginfo/image.c' || echo './'`m_debuginfo/image.c
In file included from m_debuginfo/lzoconf.h:75,
                 from m_debuginfo/minilzo.h:60,
                 from m_debuginfo/image.c:47:
m_debuginfo/lzodefs.h:849:6: error: #error "this should not happen"
*** [m_debuginfo/libcoregrind_x86_freebsd_a-image.o] Error code 1

Stop in /usr/home/bryan/freebsd/ports.clean/devel/valgrind-devel/work/valgrind-freebsd-3.9.0.rc1/coregrind.


#  if (ULONG_MAX != LZO_0xffffffffL)
#    error "this should not happen"
#  endif

ULONG_MAX: 0xffffffffffffffff
LZO_0xffffffffL: 4294967295ul

Comments (2)

  1. Stanislav Sedov repo owner

    Are you using clang? It does not work well with clang yet, even in 64 bit mode (memcheck sorta works, but e.g. "none" segfaults, and there are other problems as well).

  2. Log in to comment