Dwarves Archive on lore.kernel.org
 help / color / Atom feed
* Re: building pahole on Ubuntu 8.04 AMD64
       [not found] ` <20080320200244.GS3247-8+3tsXFunua1C7ntjtBYng@public.gmane.org>
@ 2008-03-20 20:51   ` Arnaldo Carvalho de Melo
       [not found]     ` <20080320205109.GE4034-f8uhVLnGfZaxAyOMLChx1axOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2008-03-20 20:51 UTC (permalink / raw)
  To: Florin Iucha; +Cc: dwarves-u79uwXL29TY76Z2rM5mHXA

Em Thu, Mar 20, 2008 at 03:02:44PM -0500, Florin Iucha escreveu:
> Hi Arnaldo,
> 
> I'm trying to build the pahole tools on Ubuntu 8.04 AMD64 and I'm
> getting a build error:
> 
> $ make
> [  5%] Building C object CMakeFiles/dwarves.dir/dwarves.o
> [ 11%] Building C object CMakeFiles/dwarves.dir/ctf_loader.o
> [ 17%] Building C object CMakeFiles/dwarves.dir/libctf.o
> [ 23%] Building C object CMakeFiles/dwarves.dir/dwarf_loader.o
> Linking C shared library libdwarves.so
> /usr/bin/ld:
> /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib64/libdw.a(dwarf_begin.o):
> relocation R_X86_64_32 against `a local symbol' can not be used when
> making a shared object; recompile with -fPIC
> /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib64/libdw.a: could
> not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [libdwarves.so.1.0.0] Error 1
> make[1]: *** [CMakeFiles/dwarves.dir/all] Error 2
> make: *** [all] Error 2
> 
> I grepped for -fPIC and it seems to be passed on the command line for
> many of the sources.  I'm using libdw-dev version 0.131-3 and binutils
> 2.18.1~cvs20080103-0uubuntu1 as packaged by Ubuntu.

Strange, looks like you have libdw-dev 32bits installed? can you check
that? I.e. that cmake is not mixing somehow libraries?

Also I'm adding dwarves-u79uwXL29TY76Z2rM5mHXA@public.gmane.org to the CC list, you don't have to
subscribe, but it would be a good idea, there are more people there that
I know have built this code on ubuntu/debian and that could be of more
help than me, that use debian rarely :-\

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: building pahole on Ubuntu 8.04 AMD64
       [not found]     ` <20080320205109.GE4034-f8uhVLnGfZaxAyOMLChx1axOck334EZe@public.gmane.org>
@ 2008-03-20 21:03       ` Thomas Girard
  2008-03-20 21:48       ` Florin Iucha
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Girard @ 2008-03-20 21:03 UTC (permalink / raw)
  To: Florin Iucha; +Cc: dwarves-u79uwXL29TY76Z2rM5mHXA

Hello,

Le jeudi 20 mars 2008 à 17:51 -0300, Arnaldo Carvalho de Melo a écrit :
> Em Thu, Mar 20, 2008 at 03:02:44PM -0500, Florin Iucha escreveu:
> > Hi Arnaldo,
> > 
> > I'm trying to build the pahole tools on Ubuntu 8.04 AMD64 and I'm
> > getting a build error:
> > 
> > $ make
> > [  5%] Building C object CMakeFiles/dwarves.dir/dwarves.o
> > [ 11%] Building C object CMakeFiles/dwarves.dir/ctf_loader.o
> > [ 17%] Building C object CMakeFiles/dwarves.dir/libctf.o
> > [ 23%] Building C object CMakeFiles/dwarves.dir/dwarf_loader.o
> > Linking C shared library libdwarves.so
> > /usr/bin/ld:
> > /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib64/libdw.a(dwarf_begin.o):
> > relocation R_X86_64_32 against `a local symbol' can not be used when
> > making a shared object; recompile with -fPIC
> > /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib64/libdw.a: could
> > not read symbols: Bad value
> > collect2: ld returned 1 exit status
> > make[2]: *** [libdwarves.so.1.0.0] Error 1
> > make[1]: *** [CMakeFiles/dwarves.dir/all] Error 2
> > make: *** [all] Error 2
> > 
> > I grepped for -fPIC and it seems to be passed on the command line for
> > many of the sources.  I'm using libdw-dev version 0.131-3 and binutils
> > 2.18.1~cvs20080103-0uubuntu1 as packaged by Ubuntu.
> 
> Strange, looks like you have libdw-dev 32bits installed? can you check
> that? I.e. that cmake is not mixing somehow libraries?
> 
> Also I'm adding dwarves-u79uwXL29TY76Z2rM5mHXA@public.gmane.org to the CC list, you don't have to
> subscribe, but it would be a good idea, there are more people there that
> I know have built this code on ubuntu/debian and that could be of more
> help than me, that use debian rarely :-\ 

elfutils in Debian does not provide libdw as a shared library, only as a
static one.

I'm on my way to update dwarves in Debian from 1.3 to 1.6. It would
probably be easier to ask for an Ubuntu merge after that.

Regards,

Thomas


--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: building pahole on Ubuntu 8.04 AMD64
       [not found]     ` <20080320205109.GE4034-f8uhVLnGfZaxAyOMLChx1axOck334EZe@public.gmane.org>
  2008-03-20 21:03       ` Thomas Girard
@ 2008-03-20 21:48       ` Florin Iucha
  1 sibling, 0 replies; 3+ messages in thread
From: Florin Iucha @ 2008-03-20 21:48 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: dwarves-u79uwXL29TY76Z2rM5mHXA


[-- Attachment #1: Type: text/plain, Size: 2256 bytes --]

On Thu, Mar 20, 2008 at 05:51:09PM -0300, Arnaldo Carvalho de Melo wrote:
> > I'm trying to build the pahole tools on Ubuntu 8.04 AMD64 and I'm
> > getting a build error:
> > 
> > $ make
> > [  5%] Building C object CMakeFiles/dwarves.dir/dwarves.o
> > [ 11%] Building C object CMakeFiles/dwarves.dir/ctf_loader.o
> > [ 17%] Building C object CMakeFiles/dwarves.dir/libctf.o
> > [ 23%] Building C object CMakeFiles/dwarves.dir/dwarf_loader.o
> > Linking C shared library libdwarves.so
> > /usr/bin/ld:
> > /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib64/libdw.a(dwarf_begin.o):
> > relocation R_X86_64_32 against `a local symbol' can not be used when
> > making a shared object; recompile with -fPIC
> > /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib64/libdw.a: could
> > not read symbols: Bad value
> > collect2: ld returned 1 exit status
> > make[2]: *** [libdwarves.so.1.0.0] Error 1
> > make[1]: *** [CMakeFiles/dwarves.dir/all] Error 2
> > make: *** [all] Error 2
> > 
> > I grepped for -fPIC and it seems to be passed on the command line for
> > many of the sources.  I'm using libdw-dev version 0.131-3 and binutils
> > 2.18.1~cvs20080103-0uubuntu1 as packaged by Ubuntu.
> 
> Strange, looks like you have libdw-dev 32bits installed? can you check
> that? I.e. that cmake is not mixing somehow libraries?
> 
> Also I'm adding dwarves-u79uwXL29TY76Z2rM5mHXA@public.gmane.org to the CC list, you don't have to
> subscribe, but it would be a good idea, there are more people there that
> I know have built this code on ubuntu/debian and that could be of more
> help than me, that use debian rarely :-\

$ ar x /usr/lib/libdw.a
$ ls | head -10
$ file dwarf_addrdie.o
dwarf_addrdie.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped

As I said in the other e-mail (private to Arnaldo), I could build
pahole & friends by compiling the individual files, then feeding them
together with the static libraries to the linker.  So that would indicate
the libraries and toolchain are fine, but maybe they don't provide all
the things that the build system expects.

Cheers,
florin

-- 
Bruce Schneier expects the Spanish Inquisition.
      http://geekz.co.uk/schneierfacts/fact/163

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20080320200244.GS3247@iris.iucha.org>
     [not found] ` <20080320200244.GS3247-8+3tsXFunua1C7ntjtBYng@public.gmane.org>
2008-03-20 20:51   ` building pahole on Ubuntu 8.04 AMD64 Arnaldo Carvalho de Melo
     [not found]     ` <20080320205109.GE4034-f8uhVLnGfZaxAyOMLChx1axOck334EZe@public.gmane.org>
2008-03-20 21:03       ` Thomas Girard
2008-03-20 21:48       ` Florin Iucha

Dwarves Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/dwarves/0 dwarves/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dwarves dwarves/ https://lore.kernel.org/dwarves \
		dwarves@vger.kernel.org
	public-inbox-index dwarves

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.dwarves


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git