Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysterious iberty dep fails #32

Closed
sgbeal opened this issue May 24, 2012 · 9 comments
Closed

mysterious iberty dep fails #32

sgbeal opened this issue May 24, 2012 · 9 comments
Labels

Comments

@sgbeal
Copy link

sgbeal commented May 24, 2012

stephan@tiny:~/cvs/grive$ cmake .
...
-- Found GDBM: /usr/lib/i386-linux-gnu/libgdbm.so
CMake Warning (dev) at libgrive/CMakeLists.txt:13 (find_package):
A logical block opening on the line

/home/stephan/cvs/grive/cmake/Modules/FindIberty.cmake:16 (IF)

closes on the line

/home/stephan/cvs/grive/cmake/Modules/FindIberty.cmake:18 (ENDIF)

with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
IBERTY_LIBRARY
linked by target "grive" in directory /home/stephan/cvs/grive/libgrive

-- Configuring incomplete, errors occurred!

i've tried skipping that with -Wno-dev, but then cannot build:

stephan@tiny:~/cvs/grive$ make
-- Found JSON-C: /usr/lib/i386-linux-gnu/libjson.so
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
IBERTY_LIBRARY
linked by target "grive" in directory /home/stephan/cvs/grive/libgrive

-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1

i cannot find any seemingly relevant reference to "iberty" in the package dbs for Ubuntu. What is it and where do we get it?

@sgbeal
Copy link
Author

sgbeal commented May 24, 2012

stephan@tiny:/cvs/grive$ dpkg -S libiberty
dpkg-query: no path found matching pattern libiberty.
stephan@tiny:
/cvs/grive$ dpkg -S iberty
dpkg-query: no path found matching pattern iberty.
stephan@tiny:~/cvs/grive$ cat /etc/issue
Ubuntu 11.10 \n \l

@match065
Copy link
Member

I was told that libiberty needs to be linked in order to be compiled on OpenSUSE 12.1. In my Fedora box grive can be built without libiberty. I guess ubuntu doesn't need it either.

Can you please remove "REQUIRED" in the find_package line in the libgrive/CMakeLists and try again? Thanks.

@sgbeal
Copy link
Author

sgbeal commented May 24, 2012

It now looks like this:

find_package(Iberty)

but

stephan@tiny:~/cvs/grive$ rm CMakeCache.txt; cmake .
...
CMake Warning (dev) at libgrive/CMakeLists.txt:13 (find_package):
A logical block opening on the line

/home/stephan/cvs/grive/cmake/Modules/FindIberty.cmake:16 (IF)

closes on the line

/home/stephan/cvs/grive/cmake/Modules/FindIberty.cmake:18 (ENDIF)

with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
IBERTY_LIBRARY
linked by target "grive" in directory /home/stephan/cvs/grive/libgrive

-- Configuring incomplete, errors occurred!

The first error about IF/ENDIF appears to me to be a blatant lie:

IF ( CPPUNIT_FOUND )
set( OPT_INCS ${CPPUNIT_INCLUDE_DIR} )
ENDIF ( CPPUNIT_FOUND )

i have no idea why it still complains about iberty. i worked around it by removing that line entirely.

@DavidLeeEvans
Copy link

IBERTY_LIBRARY
linked by target "grive" in directory /home/myhomedir/grive/libgrive

-- Configuring incomplete, errors occurred!

Yeah, I ran into this error, while trying to compile grive. I am running Fedora core 15 32-bit, the solution for me was to install the binutils-devel rpm package.

@Zaxuhe
Copy link

Zaxuhe commented May 27, 2012

@DavidLeeEvans thank you! it worked on debian (installed binutils-dev)

@match065
Copy link
Member

Any patch for the CMakeLists? I can't try to build in all platforms.

@sgbeal
Copy link
Author

sgbeal commented May 27, 2012

After installing binutils (thanks for the tip, David!), it works out of the box for me. Before that i was having to remove all of the lines dealing with iberty in libgrive/CMakeLists.txt.

@nestal
Copy link
Member

nestal commented Jun 6, 2012

Mind if I close the issue?

@ParsaAkbari
Copy link

Unfortunately installing binutils-dev doesn't seem to have solved the issue for me
Running Linux Mint 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants