Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#19863 - mpfr update breaks program compilation using gcc

Attached to Project: Arch Linux
Opened by Anonymous Submitter - Saturday, 19 June 2010, 16:34 GMT
Last edited by Allan McRae (Allan) - Saturday, 19 June 2010, 21:44 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

mpfr 3.0.0-1 does not allow me to compile any package

The error obtained is

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

mpfr 2.4.2-2 works fine (downgraded the package)

Additional info:

Also attached grub2 bzr configure config.log

[keshav_pr@keshav-laptop grub2_BZR]$ ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for cmp... cmp
checking for bison... bison
checking for gawk... (cached) gawk
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/keshav_pr/Desktop/grub2_BZR':
configure: error: C compiler cannot create executables
See `config.log' for more details.

What is the actual problem?
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 19 June 2010, 21:44 GMT
Reason for closing:  Not a bug
Comment by Anonymous Submitter - Saturday, 19 June 2010, 17:01 GMT
A simple "sudo ln /usr/lib/libmpfr.so /usr/lib/libmpfr.so.1" command (mpfr 3.0.0-1) solved the problem.
Comment by xduugu (xduugu) - Saturday, 19 June 2010, 17:03 GMT
gcc version? gcc 4.5.0-6 works fine here (x86_64).

$ readelf -d /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1

Dynamic section at offset 0x9d9538 contains 31 entries:
Tag Type Name/Value
[...]
0x0000000000000001 (NEEDED) Shared library: [libmpfr.so.4]
[...]
Comment by Ionut Biru (wonder) - Saturday, 19 June 2010, 17:39 GMT
never symlink. post the output of pacman -Qs gcc
Comment by Allan McRae (Allan) - Saturday, 19 June 2010, 21:44 GMT
Fully update your system. Gcc definitely links to the new mpfr.

Loading...