Discussion:
[lfs-support] meson build error while executing the configure command in 6.54. Systemd-239
Fletcher Barnes
2018-09-11 22:05:39 UTC
Permalink
I am in the process of build Linux From Scratch Version 8.3-systemd.
I am using an ubuntu 18.04.1 system with 16gb of memory.
I am at step 6.54 and receive the following message while executing the
configure command

Found pkg-config: /usr/bin/pkg-config (0.29.2)
Native dependency libcap found: YES 2.25

meson.build:800:0: ERROR: Native dependency 'mount' not found

A full log can be found at /sources/meson-logs/meson-log.txt


The last several lines of the above mentioned log.txt are as follows

Determining dependency 'libcap' with pkg-config executable
'/usr/bin/pkg-config'
Called `/usr/bin/pkg-config --modversion libcap` -> 0
2.25
Called `/usr/bin/pkg-config --cflags libcap` -> 0

Called `/usr/bin/pkg-config libcap --libs` -> 0
-L/lib64 -lcap
Called `/usr/bin/pkg-config libcap --libs` -> 0
-L/lib64 -lcap
Running compile:
Working directory: /tmp/tmpi18jbit_
Command line: c++ /tmp/tmpi18jbit_/testfile.cpp -pipe
-D_FILE_OFFSET_BITS=64 -o /tmp/tmpi18jbit_/output.exe -O0 -fpermissive
-Wl,--whole-archive -Wl,--start-group /usr/lib/libcap.so -Wl,--end-group
-Wl,--no-whole-archive

Code:
int main(int argc, char **argv) { return 0; }
Compiler stdout:

Compiler stderr:

Native dependency libcap found: YES 2.25
Determining dependency 'mount' with pkg-config executable
'/usr/bin/pkg-config'
Called `/usr/bin/pkg-config --modversion mount` -> 1


meson.build:800:0: ERROR: Native dependency 'mount' not found


Prior to this I in section 6.6 I had trouble with the following command
which I thought I resolved, but may not have

for pc in blkid mount uuid
do
/usr/lib/pkgconfig/${pc}.pc
done


I am at a loss as to what to do now. Any help would be appreciated.

Fletcher
Michael Shell
2018-09-12 00:43:07 UTC
Permalink
On Tue, 11 Sep 2018 18:05:39 -0400
Post by Fletcher Barnes
meson.build:800:0: ERROR: Native dependency 'mount' not found
This might be of help:

https://stackoverflow.com/questions/48690290/meson-cross-compiling-dependencies

meson uses pkg-config (.pc) files to detect dependencies. Also, libmount
is installed as part of the util-linux package.

So, either the mount.pc file does not exist, or cannot be located
by the system, or libmount and its headers were not installed as they
should have been with the util-linux package.


Cheers,

Mike Shell
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/
Loading...