Hi, in gettext package, there is libbfd.a. When I'm trying to compile backtrace-mingw, ld said that cannot find -liberty (I've installed binutils).
I've searching via pacman, it seems that there's no libiberty. So which package include it, or will it be added in some package later?
Do you use mingw-w64-{i686,x86_64}-{gcc,binutils} packages?
If you install just binutils,gcc then it not right because it MSYS versions of packages.
I have mingw-w64-i686-gcc, mingw-w64-i686-binutils (and x86_64) installed, not the msys version (msys2-dev).
Before I install mingw-w64-i686-gettext, libbfd is not available too. Then I installed gettext, now my /mingw32/lib/binutils is:
$ ls /mingw32/lib/binutils/
libbfd.a libopcodes.a
No libiberty.a found in those folders (via find -name).
Fixed in binutils-2.24-5
Thanks. But I can't upgrade the x86_64 version of binutils, pacman report a 404 (I'll try later).
I've tested the i686 version, now there is libiberty.a in /mingw32/lib/binutils/, so problem solved. Thank you for your work.
Hi,
I have same problem - missing "libiberty.a". But if it was fixed in binutils 2.24.5 then why doesn't it exist in new binutils 2.25.1-1 ?
Look into /mingw*/lib/binutils
I don't see "binutils" folder under "mingw32\lib". I have installed all mingw32-binutils 2.25.2-1 package classes. .bin package creates "mingw32\lib\ldscripts" folder with some files but the rest don't put anything there.
I use Win7 64-bit. MinGW is the regular 32-bit.
I also created a new issue because this topic is under msys: https://sourceforge.net/p/mingw/bugs/2287/
Last edit: Mikk 2016-03-08
We have nothing to do with msys or mingw. We are MSYS2 and use mingw-w64. libiberty is a convenience library in autotools terms which means it should not be packaged. So really If
you have some project that needs it then that project is meant to import the sources from gcc, the same way that gdb/binutils does.
Last edit: Ray Donnelly 2016-03-14
Hi Ray,
Does this mean that the libiberty is actually not meant to be part of the msys and mingw anymore?
I know this is msys forum but it's really hard to find release notes or any official statement about what has happened to libiberty.
I relied on the sentence in this guide that tells to install binutils "dev" package to get libiberty:
http://www.mingw.org/wiki/howto_install_the_mingw_gcc_compiler_suite
And since i couldn't get the library i considered it as an issue.
Look carefully into /mingw32/lib folder. There are "binutils" folder there.
We package it on MSYS2 as Alexey said. But Mikk, you are not using MSYS2 as far as I can tell! I was making a general point about convenience libraries. In the case of libiberty I agree with the decision to package it with binutils (or gdb or separately).
Hi,
I have made hidden files visible and i have browsed the mingw-get XML files and there is no libiberty.a installed. I also manually downloaded all binutils files from here:
https://sourceforge.net/projects/mingw/files/MinGW/Base/binutils/binutils-2.25.1/
And none of them contains mingw32\lib\libiberty.a
Last binutils which contained it was binutils-2.23.2-1-mingw32-dev.tar.lzma
However libiberty source is in binutils-2.25.1-1-mingw32-src.tar.xz
If it's true that library binary isn't part of the binutils dev anymore then i could try building it also. Maybe after building it ends up in mingwer/lib folder?
We are MSYS2 and share nothing in common with mingw.org. Install MSYS2 if you want support from us
Sorry guys... i didn't do enough homework about msys and msys2. I thought they are the same and tighty related with mingw so i continued the disucssion here.
But now i found a post from you Ray:
http://stackoverflow.com/questions/25019057/how-are-msys-msys2-and-msysgit-related-to-each-other
That explains it :)
Anyway i will try to get help from mingw team directly.
No problem. You are welcome to use MSYS2, where as Alexey said, we have libiberty (and countless other benefits)