Discussion:
not able to build Oprofile on ubuntu 14.04
(too old to reply)
Shiva M
2017-01-18 21:30:56 UTC
Permalink
Raw Message
Hi

I am new to Oprofile tools. I have downloaded oprofile-1.1.0.tgz and ran
./configure but I see

configure: error: liberty library not found


I have built the dependencies but somehow not able to build Oprofile. I
have installed popt library and follwed binutils pass1 and pass2 from linux
from scratch website to build bintutils-2.27

http://www.linuxfromscratch.org/lfs/view/development/chapter05/binutils-pass2.html

Can someone help in building Oprofile-1.1.0.

Thanks,
Shiva
Michael Petlan
2017-01-19 13:01:25 UTC
Permalink
Raw Message
Hi Shiva,

on Debian, the package you need is called "libiberty-dev".
I expect it will be the same on Ubuntu.

Hope it helps.

Cheers,
Michael
Hi
I am new to Oprofile tools. I have downloaded oprofile-1.1.0.tgz and ran ./configure but I see
configure: error: liberty library not found
I have built the dependencies but somehow not able to build Oprofile.  I have installed popt library and follwed binutils pass1 and pass2 from linux from scratch website to build
bintutils-2.27
http://www.linuxfromscratch.org/lfs/view/development/chapter05/binutils-pass2.html
Can someone help in building Oprofile-1.1.0.
Thanks,
Shiva
Shiva M
2017-01-19 19:24:20 UTC
Permalink
Raw Message
Hi Michael,

Thank for your response. After copying libiberty.a to installed directory,
Error "configure: error: liberty library not found" got solved. But I see

configure: error: Unable to find clock_gettime function; required by ocount

I checked configure.ac and pe_couting/Makefile.am. Both these files are
latest. I tried copying lrt.a file to installed directory but its not
working.

Any help would really appreciated.

Thanks,
Shiva
Post by Michael Petlan
Hi Shiva,
on Debian, the package you need is called "libiberty-dev".
I expect it will be the same on Ubuntu.
Hope it helps.
Cheers,
Michael
Post by Shiva M
Hi
I am new to Oprofile tools. I have downloaded oprofile-1.1.0.tgz and ran
./configure but I see
configure: error: liberty library not found
I have built the dependencies but somehow not able to build Oprofile. I
have installed popt library and follwed binutils pass1 and pass2 from linux
from scratch website to build
bintutils-2.27
http://www.linuxfromscratch.org/lfs/view/development/chapter
05/binutils-pass2.html
Can someone help in building Oprofile-1.1.0.
Thanks,
Shiva
William Cohen
2017-01-19 20:29:39 UTC
Permalink
Raw Message
Post by Shiva M
Hi Michael,
Thank for your response. After copying libiberty.a to installed directory, Error "configure: error: liberty library not found" got solved. But I see
configure: error: Unable to find clock_gettime function; required by ocount
I checked configure.ac <http://configure.ac> and pe_couting/Makefile.am. Both these files are latest. I tried copying lrt.a file to installed directory but its not working.
Any help would really appreciated.
Thanks,
Shiva
Hi Shiva,

You might need to install additional packages to get oprofile to compile. Rather than running the config and having it fail a little farther in the process after another package is installed you might take a look at what packages are required to be installed when building the Ubuntu or debian oprofile package.

https://help.ubuntu.com/community/CompilingEasyHowTo
http://stackoverflow.com/questions/130894/how-to-build-a-debian-ubuntu-package-from-source

-Will
Post by Shiva M
Hi Shiva,
on Debian, the package you need is called "libiberty-dev".
I expect it will be the same on Ubuntu.
Hope it helps.
Cheers,
Michael
Hi
I am new to Oprofile tools. I have downloaded oprofile-1.1.0.tgz and ran ./configure but I see
configure: error: liberty library not found
I have built the dependencies but somehow not able to build Oprofile. I have installed popt library and follwed binutils pass1 and pass2 from linux from scratch website to build
bintutils-2.27
http://www.linuxfromscratch.org/lfs/view/development/chapter05/binutils-pass2.html <http://www.linuxfromscratch.org/lfs/view/development/chapter05/binutils-pass2.html>
Can someone help in building Oprofile-1.1.0.
Thanks,
Shiva
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
oprofile-list mailing list
https://lists.sourceforge.net/lists/listinfo/oprofile-list
Michael Petlan
2017-01-20 01:21:07 UTC
Permalink
Raw Message
Hi Shiva, I haven't understood why you copy libiberty.a and/or lrt.a anywhere...
This shouldn't be necessary to be done.

You just need to install packages:

apt-get install libiberty-dev binutils-dev libpopt-dev libc6-dev

The clock_gettime() function should be available in libc6-dev.

Having that (and build-essentials), you should be able to proceed through the
./configure pass without any other problems.
Post by Shiva M
Hi Michael,
Thank for your response.  After copying libiberty.a to installed directory,  Error "configure: error: liberty library not found" got solved. But I see
configure: error: Unable to find clock_gettime function; required by ocount
I checked configure.ac and pe_couting/Makefile.am. Both these files are latest. I tried copying lrt.a file to installed directory but its not working.
Any help would really appreciated.
Thanks,
Shiva
Hi Shiva,
on Debian, the package you need is called "libiberty-dev".
I expect it will be the same on Ubuntu.
Hope it helps.
Cheers,
Michael
Hi
I am new to Oprofile tools. I have downloaded oprofile-1.1.0.tgz and ran ./configure but I see
configure: error: liberty library not found
I have built the dependencies but somehow not able to build Oprofile.  I have installed popt library and follwed binutils pass1 and pass2 from linux from
scratch website to build
bintutils-2.27
http://www.linuxfromscratch.org/lfs/view/development/chapter05/binutils-pass2.html
Can someone help in building Oprofile-1.1.0.
Thanks,
Shiva
Shiva M
2017-01-20 06:40:10 UTC
Permalink
Raw Message
Hi Michael,

I am building libiberty-dev, binutils-dev from source. Trying to make it as
part of rootfs packages for our System.

Thanks,
Shiva
Post by Michael Petlan
Hi Shiva, I haven't understood why you copy libiberty.a and/or lrt.a anywhere...
This shouldn't be necessary to be done.
apt-get install libiberty-dev binutils-dev libpopt-dev libc6-dev
The clock_gettime() function should be available in libc6-dev.
Having that (and build-essentials), you should be able to proceed through the
./configure pass without any other problems.
Post by Shiva M
Hi Michael,
Thank for your response. After copying libiberty.a to installed
directory, Error "configure: error: liberty library not found" got solved.
But I see
configure: error: Unable to find clock_gettime function; required by ocount
I checked configure.ac and pe_couting/Makefile.am. Both these files are
latest. I tried copying lrt.a file to installed directory but its not
working.
Any help would really appreciated.
Thanks,
Shiva
Hi Shiva,
on Debian, the package you need is called "libiberty-dev".
I expect it will be the same on Ubuntu.
Hope it helps.
Cheers,
Michael
Hi
I am new to Oprofile tools. I have downloaded
oprofile-1.1.0.tgz and ran ./configure but I see
configure: error: liberty library not found
I have built the dependencies but somehow not able to build
Oprofile. I have installed popt library and follwed binutils pass1 and
pass2 from linux from
scratch website to build
bintutils-2.27
http://www.linuxfromscratch.org/lfs/view/development/chapter
05/binutils-pass2.html
Can someone help in building Oprofile-1.1.0.
Thanks,
Shiva
William Cohen
2017-01-20 15:07:26 UTC
Permalink
Raw Message
Post by Shiva M
Hi Michael,
I am building libiberty-dev, binutils-dev from source. Trying to make it as part of rootfs packages for our System.
Thanks,
Shiva
Hi Shiva,

Why build them from source when there are binaries already available? It would be much more easier to install the already built packages. As mentioned in previous email getting all the dependencies installed to build the package locally is the preferred way to get things set up.

-Will
Post by Shiva M
Hi Shiva, I haven't understood why you copy libiberty.a and/or lrt.a anywhere...
This shouldn't be necessary to be done.
apt-get install libiberty-dev binutils-dev libpopt-dev libc6-dev
The clock_gettime() function should be available in libc6-dev.
Having that (and build-essentials), you should be able to proceed through the
./configure pass without any other problems.
Hi Michael,
Thank for your response. After copying libiberty.a to installed directory, Error "configure: error: liberty library not found" got solved. But I see
configure: error: Unable to find clock_gettime function; required by ocount
I checked configure.ac <http://configure.ac> and pe_couting/Makefile.am. Both these files are latest. I tried copying lrt.a file to installed directory but its not working.
Any help would really appreciated.
Thanks,
Shiva
Hi Shiva,
on Debian, the package you need is called "libiberty-dev".
I expect it will be the same on Ubuntu.
Hope it helps.
Cheers,
Michael
Hi
I am new to Oprofile tools. I have downloaded oprofile-1.1.0.tgz and ran ./configure but I see
configure: error: liberty library not found
I have built the dependencies but somehow not able to build Oprofile. I have installed popt library and follwed binutils pass1 and pass2 from linux from
scratch website to build
bintutils-2.27
http://www.linuxfromscratch.org/lfs/view/development/chapter05/binutils-pass2.html <http://www.linuxfromscratch.org/lfs/view/development/chapter05/binutils-pass2.html>
Can someone help in building Oprofile-1.1.0.
Thanks,
Shiva
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
oprofile-list mailing list
https://lists.sourceforge.net/lists/listinfo/oprofile-list
Loading...