#16813: valgrind does not support x86_64
-------------------------+-------------------------------------
Reporter: anonymous | Owner: developers
Type: enhancement | Status: new
Priority: normal | Milestone: Barrier Breaker (trunk)
Component: packages | Version: Trunk
Keywords: |
-------------------------+-------------------------------------
There's two elements that are missing from the support - --enable-
only32bit flag in the CONFIGURE_ARGS, and .xml files.
It works for me given following hack:
{{{
diff --git a/package/devel/valgrind/Makefile
b/package/devel/valgrind/Makefile
index 6c22348..a6b976b 100644
--- a/package/devel/valgrind/Makefile
+++ b/package/devel/valgrind/Makefile
@@ -28,7 +28,7 @@ include $(INCLUDE_DIR)/kernel.mk
define Package/valgrind
SECTION:=devel
CATEGORY:=Development
- DEPENDS:=@mips||mipsel||i386||powerpc||arm_v7 +libpthread +librt
+ DEPENDS:=@mips||mipsel||i386||x86_64||powerpc||arm_v7 +libpthread
+librt
TITLE:=debugging and profiling tools for Linux
URL:=http://www.valgrind.org
endef
@@ -77,13 +77,10 @@ define Package/valgrind/description
to speed up and reduce memory use of your programs.
endef
-CPU := $(patsubst x86,i386,$(LINUX_KARCH))
-
CONFIGURE_VARS += \
UNAME_R=$(LINUX_VERSION)
CONFIGURE_ARGS += \
- --enable-only32bit \
--enable-tls \
--without-x \
--without-uiout \
@@ -92,7 +89,7 @@ CONFIGURE_ARGS += \
--disable-valgrindtk \
--without-included-gettext
-define Package/valgrind/install
+define Package/valgrind/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/valgrind* $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/lib/valgrind
@@ -100,9 +97,7 @@ define Package/valgrind/install
./files/default.supp \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/none-* \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/vgpreload_core*.so \
- $(PKG_INSTALL_DIR)/usr/lib/valgrind/$(CPU)-*.xml \
- $(PKG_INSTALL_DIR)/usr/lib/valgrind/32bit-core*.xml \
- $(PKG_INSTALL_DIR)/usr/lib/valgrind/32bit-linux*.xml \
+ $(PKG_INSTALL_DIR)/usr/lib/valgrind/*.xml \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/memcheck-* \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/vgpreload_memcheck*.so
\
$(1)/usr/lib/valgrind/
}}}
but you probably want to be more specific about the xml files to use..
(XML files' size is ~1% of Valgrind installed size, so I just included
them all. I'm sure it's not neat but it works for me.)
--
Ticket URL: <https://dev.openwrt.org/ticket/16813>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets