You are not logged in.
Hi everyone.
I need to install system fonts package as dependency of an R package (leafpop). But, I get the follow error:
* installing *source* package ‘systemfonts’ ...
** package ‘systemfonts’ successfully unpacked and MD5 sums checked
** using staged installation
Using PKG_CFLAGS=
Using PKG_LIBS=-lfontconfig -lfreetype
** libs
rm -f systemfonts.so caches.o cpp11.o dev_metrics.o font_matching.o font_registry.o ft_cache.o string_shape.o font_metrics.o string_metrics.o emoji.o cache_store.o init.o unix/FontManagerLinux.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/tux/R/x86_64-pc-linux-gnu-library/4.0/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c caches.cpp -o caches.o
In file included from caches.h:7,
from caches.cpp:1:
ft_cache.h:9:10: fatal error: ft2build.h: No such file or directory
9 | #include <ft2build.h>
| ^~~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib64/R/etc/Makeconf:181: caches.o] Erro 1
ERROR: compilation failed for package ‘systemfonts’
* removing ‘/home/tux/.cache/yay/r-systemfonts/src/systemfonts’
* restoring previous ‘/home/tux/.cache/yay/r-systemfonts/src/systemfonts’
==> ERRO: Uma falha ocorreu em build().
Abortando...
erro ao construir: r-systemfonts
Searching the forum I saw that I need to include the path of ‘ft2build.h' as:
include_directories (/usr/include/freetype2)
#include <ft2build.h>
in ft_cache.h file line 9, correct?
But, I can't find this file. What's wrong in my thinking?
Thank you for your patience!
Last edited by numpy (2020-10-25 23:23:31)
Offline
https://github.com/r-lib/systemfonts/bl … re#L29-L48
This is likely broken as it completely ignores pkg-config if $INCLUDE_DIR or $LIB_DIR are in the environment. But your logs don't match the configure script so I don't know if I've diagnosed the issue correctly ...
EDIT: Or yes, you might have totally failed to follow the first sentence of https://wiki.archlinux.org/index.php/Makepkg#Usage
Last edited by eschwartz (2020-10-25 21:54:21)
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Is pkgconf installed?
==> Making package: r-systemfonts 0.3.2-1 (Sun 25 Oct 2020 09:47:54 PM UTC)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found systemfonts_0.3.2.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
-> Extracting systemfonts_0.3.2.tar.gz with bsdtar
==> Starting build()...
* installing *source* package ‘systemfonts’ ...
** package ‘systemfonts’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
Using PKG_LIBS=-lfontconfig -lfreetype
** libs
rm -f systemfonts.so caches.o cpp11.o dev_metrics.o font_matching.o font_registry.o ft_cache.o string_shape.o font_metrics.o string_metrics.o emoji.o cache_store.o init.o unix/FontManagerLinux.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c caches.cpp -o caches.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c cpp11.cpp -o cpp11.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c dev_metrics.cpp -o dev_metrics.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c font_matching.cpp -o font_matching.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c font_registry.cpp -o font_registry.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c ft_cache.cpp -o ft_cache.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c string_shape.cpp -o string_shape.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c font_metrics.cpp -o font_metrics.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c string_metrics.cpp -o string_metrics.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c emoji.cpp -o emoji.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c cache_store.cpp -o cache_store.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c init.cpp -o init.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I'/usr/lib/R/library/cpp11/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c unix/FontManagerLinux.cpp -o unix/FontManagerLinux.o
g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o systemfonts.so caches.o cpp11.o dev_metrics.o font_matching.o font_registry.o ft_cache.o string_shape.o font_metrics.o string_metrics.o emoji.o cache_store.o init.o unix/FontManagerLinux.o -lfontconfig -lfreetype -L/usr/lib64/R/lib -lR
installing to /build/r-systemfonts/src/00LOCK-systemfonts/00new/systemfonts/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (systemfonts)
==> Entering fakeroot environment...
Offline
https://github.com/r-lib/systemfonts/bl … re#L29-L48
This is likely broken as it completely ignores pkg-config if $INCLUDE_DIR or $LIB_DIR are in the environment. But your logs don't match the configure script so I don't know if I've diagnosed the issue correctly ...
EDIT: Or yes, you might have totally failed to follow the first sentence of https://wiki.archlinux.org/index.php/Makepkg#Usage
Thank you for your attention!
I really did not pay attention this issue from base-devel group!
Installing pkconfig (as asked by loqs) was enougth to solve this problem.
Sorry for silly question!
Live long and prosper!
Offline