Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96521 - memprof compile error amd64 port
Summary: memprof compile error amd64 port
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-19 06:02 UTC by aLeJ
Modified: 2005-07-12 08:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
First patch to apply (p1_amd64.patch,732 bytes, patch)
2005-06-19 06:03 UTC, aLeJ
Details | Diff
Second patch (p2_amd64.patch,392 bytes, patch)
2005-06-19 06:03 UTC, aLeJ
Details | Diff
Third patch (both archs) (p3_amd64-x86.patch,378 bytes, patch)
2005-06-19 06:04 UTC, aLeJ
Details | Diff
The new bfd.h (bfd.h.gz.gz,36.64 KB, application/x-gzip)
2005-06-19 14:52 UTC, aLeJ
Details
The nasty ebuild (memprof-0.5.1.ebuild,721 bytes, text/plain)
2005-06-19 14:54 UTC, aLeJ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aLeJ 2005-06-19 06:02:41 UTC
After adding an ~amd64 to the ebuild, an error ocurrs when compiling memprof-0.5.1:

stack-frame.c: In function `mi_call_with_signal_backtrace':
stack-frame.c:152: error: `stack_frame' undeclared (first use in this function)
stack-frame.c:152: error: (Each undeclared identifier is reported only once
stack-frame.c:152: error: for each function it appears in.)
stack-frame.c:152: error: `frame' undeclared (first use in this function)
stack-frame.c:156: warning: left-hand operand of comma expression has no effect
stack-frame.c:158: warning: implicit declaration of function `next_frame'
stack-frame.c:158: warning: left-hand operand of comma expression has no effect
stack-frame.c:160: warning: implicit declaration of function `frame_return_address'
stack-frame.c:160: warning: initialization makes pointer from integer without a cast
stack-frame.c:156: warning: value computed is not used
stack-frame.c:156: warning: value computed is not used
make[2]: *** [stack-frame.lo] Error 1
make[2]: *** Se espera a que terminen otras tareas....
memintercept-utils.c: In function `mi_atomic_increment':
memintercept-utils.c:275: error: `p' undeclared (first use in this function)
memintercept-utils.c:275: error: (Each undeclared identifier is reported only once
memintercept-utils.c:275: error: for each function it appears in.)
memintercept-utils.c: In function `mi_atomic_decrement':
memintercept-utils.c:290: error: `p' undeclared (first use in this function)

As the vars used there are declared into a #define i386 section, i have modified
it (patch avaiable) and now it's working.
I also think that i386 version needs a patch too (also included).

With the patches is working, but maybe it needs further coding :)

Reproducible: Always
Steps to Reproduce:
1.add ~amd64 to the ebuild
2.ebuild digest
3.emerge memprof

Actual Results:  
error while compiling

Expected Results:  
compilation ok

nemesis ~ # emerge --info
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 13 2005, 10:10:05)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe -msse2 -mmmx -m3dnow"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse2 -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="es_ES"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa berkdb bitmap-fonts bonobo cdr cpudetection crypt curl
dbus dvd dvdr dvdread eds emul-linux-x86 encode esd fam font-server fortran gif
gnome gpm gstreamer gtk gtk2 hal imagemagick imlib ipv6 java javascript jp2 jpeg
lm_sensors lzw lzw-tiff mozilla mp3 mpeg ncurses nls nptl nptlonly nvidia
offensive ogg oggvorbis opengl oss pam perl png posix python qt readline samba
sdl ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb
userlocales vorbis wxwindows xine xml2 xmms xpm xrandr xv xvid zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LDFLAGS, LINGUAS
Comment 1 aLeJ 2005-06-19 06:03:41 UTC
Created attachment 61489 [details, diff]
First patch to apply
Comment 2 aLeJ 2005-06-19 06:03:57 UTC
Created attachment 61490 [details, diff]
Second patch
Comment 3 aLeJ 2005-06-19 06:04:18 UTC
Created attachment 61491 [details, diff]
Third patch (both archs)
Comment 4 Olivier Crete (RETIRED) gentoo-dev 2005-06-19 12:32:30 UTC
It does not build here if the third patch is applied (on amd64) .. and without
it, it does not work.. and there are assumptions that sizeof(int)==sizeof(void*)
in process.c at least.. This program seems dead upstream (no release since 2002)
Comment 5 aLeJ 2005-06-19 13:10:02 UTC
It's strange. For me works perfectly with 3 patches when using it without emerge
(./configure, make, make install) but with emerge fails.
Also, I have not fixed the original program problems, only make it compile/work
in amd64 :p
And if it seems dead.. as you wish: close the bug, fix the patches, leave all
as-is...
And sorry, I'm a newbie %-]
Comment 6 Olivier Crete (RETIRED) gentoo-dev 2005-06-19 13:55:45 UTC
if you can get it to build inside portage, I'll happily add them to the tree
Comment 7 Olivier Crete (RETIRED) gentoo-dev 2005-06-19 13:57:04 UTC
the problems is probably that the version in portage uses its own copy of bfd.h
from an old version of binutils
Comment 8 aLeJ 2005-06-19 14:52:07 UTC
Ok, now with my very own bfd.h (.gz) it works, but i dunno if it will work on
x86, cannot test :_(
I post the new bfd.h and a nasty ebuild :D
Comment 9 aLeJ 2005-06-19 14:52:48 UTC
Created attachment 61524 [details]
The new bfd.h
Comment 10 aLeJ 2005-06-19 14:54:00 UTC
Created attachment 61525 [details]
The nasty ebuild
Comment 11 Olivier Crete (RETIRED) gentoo-dev 2005-06-19 16:03:55 UTC
With your 3 patches and you bfd.h it compiles, but I can't seem to be able to
memprof any binary. And I the icons dont show up in the toolbar.l 
Comment 12 Simon Stelling (RETIRED) gentoo-dev 2005-07-12 08:57:07 UTC
closing per comment 11
however, feel free to re-open with a working patch