* compilation problem
@ 2008-08-13 3:52 Jun Koi
2008-08-13 12:07 ` Mark Wielaard
2008-08-13 14:02 ` Frank Ch. Eigler
0 siblings, 2 replies; 6+ messages in thread
From: Jun Koi @ 2008-08-13 3:52 UTC (permalink / raw)
To: SystemTAP
Hi,
I am trying to compile systemtap 0.7. To do so, I first try to compile
and install elfutils-0.131 (latest version?). However, this failed!
Here is how I did:
- Get elfutils-0.131.tar.gz and elfutils-portability.patch from
http://sourceware.mirrors.tds.net/pub/sourceware.org/systemtap/elfutils/
- Patch elfutils-0.131 with elfutils-portability.patch (Is this really
necessary? If so, why it is separated?)
- Run ./configure, then make inside elfutils-0.131/.
This results in error like below:
..........
Making all in libebl
make[2]: Entering directory `/home/jun/projects/elfutils-0.131/libebl'
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H
-DOBJDIR=\"/home/jun/projects/elfutils-0.131/libebl\" -I. -I.. -I.
-I../libelf -I../libdw -I../lib -I.. -fpic -Wall -Wshadow -Werror
-Wunused -Wextra -Wformat=2 -std=gnu99 -g -O2 -MT eblopenbackend.o -MD
-MP -MF .deps/eblopenbackend.Tpo -c -o eblopenbackend.o
eblopenbackend.c
cc1: warnings being treated as errors
In file included from ./libebl.h:54,
from ./libeblP.h:54,
from eblopenbackend.c:63:
../libdw/libdw.h:639: warning: C99 inline functions are not supported;
using GNU89
../libdw/libdw.h:639: warning: to disable this warning use
-fgnu89-inline or the gnu_inline function attribute
../libdw/libdw.h:646: warning: C99 inline functions are not supported;
using GNU89
make[2]: *** [eblopenbackend.o] Error 1
make[2]: Leaving directory `/home/jun/projects/elfutils-0.131/libebl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jun/projects/elfutils-0.131'
make: *** [all] Error 2
My machine is x86, compiler gcc 4.2.3 on Ubuntu 8.04
How can I fix this?
Many thanks,
Jun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: compilation problem
2008-08-13 3:52 compilation problem Jun Koi
@ 2008-08-13 12:07 ` Mark Wielaard
2008-08-14 3:52 ` Jun Koi
2008-08-13 14:02 ` Frank Ch. Eigler
1 sibling, 1 reply; 6+ messages in thread
From: Mark Wielaard @ 2008-08-13 12:07 UTC (permalink / raw)
To: Jun Koi; +Cc: SystemTAP
Hi Jun,
On Wed, 2008-08-13 at 12:51 +0900, Jun Koi wrote:
> I am trying to compile systemtap 0.7. To do so, I first try to compile
> and install elfutils-0.131 (latest version?).
The latest version of elfutils can be found at
https://fedorahosted.org/elfutils/ and is 0.135.
> - Patch elfutils-0.131 with elfutils-portability.patch (Is this really
> necessary? If so, why it is separated?)
I don't really remember. I believe the portability.patch isn't needed
anymore with newer elfutils. If a newer elfutils build works for you
without needing the patch then please let us know.
> - Run ./configure, then make inside elfutils-0.131/.
>
> This results in error like below:
>
> ..........
> Making all in libebl
> make[2]: Entering directory `/home/jun/projects/elfutils-0.131/libebl'
> gcc -D_GNU_SOURCE -DHAVE_CONFIG_H
> -DOBJDIR=\"/home/jun/projects/elfutils-0.131/libebl\" -I. -I.. -I.
> -I../libelf -I../libdw -I../lib -I.. -fpic -Wall -Wshadow -Werror
> -Wunused -Wextra -Wformat=2 -std=gnu99 -g -O2 -MT eblopenbackend.o -MD
> -MP -MF .deps/eblopenbackend.Tpo -c -o eblopenbackend.o
> eblopenbackend.c
> cc1: warnings being treated as errors
> In file included from ./libebl.h:54,
> from ./libeblP.h:54,
> from eblopenbackend.c:63:
> ../libdw/libdw.h:639: warning: C99 inline functions are not supported;
> using GNU89
> ../libdw/libdw.h:639: warning: to disable this warning use
> -fgnu89-inline or the gnu_inline function attribute
> ../libdw/libdw.h:646: warning: C99 inline functions are not supported;
> using GNU89
> make[2]: *** [eblopenbackend.o] Error 1
> make[2]: Leaving directory `/home/jun/projects/elfutils-0.131/libebl'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/jun/projects/elfutils-0.131'
> make: *** [all] Error 2
>
>
> My machine is x86, compiler gcc 4.2.3 on Ubuntu 8.04
>
> How can I fix this?
This sounds like the problem reported here:
http://sourceware.org/ml/systemtap/2008-q2/msg00276.html
Cheers,
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: compilation problem
2008-08-13 3:52 compilation problem Jun Koi
2008-08-13 12:07 ` Mark Wielaard
@ 2008-08-13 14:02 ` Frank Ch. Eigler
2008-08-14 3:49 ` Jun Koi
1 sibling, 1 reply; 6+ messages in thread
From: Frank Ch. Eigler @ 2008-08-13 14:02 UTC (permalink / raw)
To: Jun Koi; +Cc: SystemTAP
"Jun Koi" <junkoi2004@gmail.com> writes:
> I am trying to compile systemtap 0.7. To do so, I first try to compile
> and install elfutils-0.131 (latest version?). However, this failed!
> [...]
> My machine is x86, compiler gcc 4.2.3 on Ubuntu 8.04
I revised the README file to point out elfutils' new home. But are
you sure you need a custom build of elfutils at all? On my ubuntu 8
box, the system elfutils is sufficient; have you tried follow the
"SystemtanOnUbuntu" wiki page?
- FChE
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: compilation problem
2008-08-13 14:02 ` Frank Ch. Eigler
@ 2008-08-14 3:49 ` Jun Koi
0 siblings, 0 replies; 6+ messages in thread
From: Jun Koi @ 2008-08-14 3:49 UTC (permalink / raw)
To: Frank Ch. Eigler; +Cc: SystemTAP
On Wed, Aug 13, 2008 at 11:00 PM, Frank Ch. Eigler <fche@redhat.com> wrote:
> "Jun Koi" <junkoi2004@gmail.com> writes:
>
>> I am trying to compile systemtap 0.7. To do so, I first try to compile
>> and install elfutils-0.131 (latest version?). However, this failed!
>> [...]
>> My machine is x86, compiler gcc 4.2.3 on Ubuntu 8.04
>
> I revised the README file to point out elfutils' new home. But are
> you sure you need a custom build of elfutils at all?
Because I want to play with the source code of Systemtap.
Thanks,
Jun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: compilation problem
2008-08-13 12:07 ` Mark Wielaard
@ 2008-08-14 3:52 ` Jun Koi
2008-08-14 6:44 ` Mark Wielaard
0 siblings, 1 reply; 6+ messages in thread
From: Jun Koi @ 2008-08-14 3:52 UTC (permalink / raw)
To: Mark Wielaard; +Cc: SystemTAP
On Wed, Aug 13, 2008 at 9:06 PM, Mark Wielaard <mjw@redhat.com> wrote:
> Hi Jun,
>
> On Wed, 2008-08-13 at 12:51 +0900, Jun Koi wrote:
>> I am trying to compile systemtap 0.7. To do so, I first try to compile
>> and install elfutils-0.131 (latest version?).
>
> The latest version of elfutils can be found at
> https://fedorahosted.org/elfutils/ and is 0.135.
>
>> - Patch elfutils-0.131 with elfutils-portability.patch (Is this really
>> necessary? If so, why it is separated?)
>
> I don't really remember. I believe the portability.patch isn't needed
> anymore with newer elfutils. If a newer elfutils build works for you
> without needing the patch then please let us know.
Thanks, that works perfectly! So the portability patch seems not necessarily.
I compiled 0.135 with the below command:
./configure CFLAGS=-fgnu89-inline
make
So, how about having the -fgnu89-inline default option??
Many thanks,
Jun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: compilation problem
2008-08-14 3:52 ` Jun Koi
@ 2008-08-14 6:44 ` Mark Wielaard
0 siblings, 0 replies; 6+ messages in thread
From: Mark Wielaard @ 2008-08-14 6:44 UTC (permalink / raw)
To: Jun Koi; +Cc: SystemTAP
Hi Jun,
On Thu, 2008-08-14 at 12:51 +0900, Jun Koi wrote:
> On Wed, Aug 13, 2008 at 9:06 PM, Mark Wielaard <mjw@redhat.com> wrote:
> > On Wed, 2008-08-13 at 12:51 +0900, Jun Koi wrote:
> >> I am trying to compile systemtap 0.7. To do so, I first try to compile
> >> and install elfutils-0.131 (latest version?).
> >
> > The latest version of elfutils can be found at
> > https://fedorahosted.org/elfutils/ and is 0.135.
> >
> >> - Patch elfutils-0.131 with elfutils-portability.patch (Is this really
> >> necessary? If so, why it is separated?)
> >
> > I don't really remember. I believe the portability.patch isn't needed
> > anymore with newer elfutils. If a newer elfutils build works for you
> > without needing the patch then please let us know.
>
> Thanks, that works perfectly! So the portability patch seems not necessarily.
Thanks for checking!
> I compiled 0.135 with the below command:
>
> ./configure CFLAGS=-fgnu89-inline
> make
>
> So, how about having the -fgnu89-inline default option??
I don't really know how inline works across different gcc versions or
across distro versions. I see that various distributions patch elfutils
to contain something like:
#if defined(__GNUC_GNU_INLINE__) || defined(__GNUC_STDC_INLINE__)
#define inline inline __attribute__ ((gnu_inline))
#endif
Maybe that can be pushed upstream if it is the correct behavior that is
needed by elfutils.
Cheers,
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-08-14 6:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-13 3:52 compilation problem Jun Koi
2008-08-13 12:07 ` Mark Wielaard
2008-08-14 3:52 ` Jun Koi
2008-08-14 6:44 ` Mark Wielaard
2008-08-13 14:02 ` Frank Ch. Eigler
2008-08-14 3:49 ` Jun Koi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).