After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 781092 - Can't build with meson on Arch Linux: libm not found
Can't build with meson on Arch Linux: libm not found
Status: RESOLVED DUPLICATE of bug 784189
Product: nautilus
Classification: Core
Component: general
master
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-04-09 10:20 UTC by ar
Modified: 2017-06-25 20:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ar 2017-04-09 10:20:32 UTC
Trying to invoke "meson build" (tried 0.39.1 & git) fails on Arch with:

Meson encountered an error in file meson.build, line 56, column 0:
C library 'libm' not found
Comment 1 Carlos Soriano 2017-04-09 10:22:20 UTC
(In reply to ar from comment #0)
> Trying to invoke "meson build" (tried 0.39.1 & git) fails on Arch with:
> 
> Meson encountered an error in file meson.build, line 56, column 0:
> C library 'libm' not found

So you are missing a library. Are you building with JHBuild? Otherwise, nautilus cannot be build without building all its dependencies of course.
Comment 2 Ernestas Kulik 2017-04-09 10:24:19 UTC
Which C library are you using?
Comment 3 ar 2017-04-09 10:26:54 UTC
glibc 2.25 (x64)

nautilus built fine before the switch to meson.

Aren't using JHBuild though, wasn't aware that's now a requirement.
Comment 4 Ernestas Kulik 2017-04-09 10:28:31 UTC
(In reply to ar from comment #3)
> glibc 2.25 (x64)
> 
> nautilus built fine before the switch to meson.
> 
> Aren't using JHBuild though, wasn't aware that's now a requirement.

Well, it works for me fine (I use Arch). JHBuild is not a requirement as far as this goes.
Comment 5 Carlos Soriano 2017-04-09 10:30:05 UTC
No, not a requirement. But if you are missing a library, either to have to build it/install it or use a tool like JHBuild that does it for you.
Comment 6 Ernestas Kulik 2017-04-09 10:38:06 UTC
(In reply to Carlos Soriano from comment #5)
> No, not a requirement. But if you are missing a library, either to have to
> build it/install it or use a tool like JHBuild that does it for you.

Yeah, try building with JHBuild.

In any case, I don’t believe it’s an issue on our side. Double-check your environment variables and the existence of libm (glibc ships it).
Comment 7 ar 2017-04-09 10:41:02 UTC
Dunno then. jhbuild gives me ~2.5 dozen nonsensical missing system packages, guess I still need to configure it right.

libm exists, otherwise I'd be in a wealth of pain anyway :)

Also… reverting the autotools removal (ie. 857a90c and the libgd move ec2af08) and using it again makes nautilus build properly again.
Comment 8 Ernestas Kulik 2017-04-09 10:53:10 UTC
I suggest that you prod Meson devs directly regarding this on IRC. That’s #mesonbuild on freenode.

You could also join #nautilus on GIMPNet and maybe we can help you there.

Closing this as NOTGNOME, at least for now.
Comment 9 Nelson Benitez 2017-06-25 20:57:59 UTC
I'm having this same problem on newish Fedora 26 beta, I created bug 784189 with a patch that fixes the problem.

I'm marking this bug as duplicate of that (even if older) because of the patch attached there.

*** This bug has been marked as a duplicate of bug 784189 ***