Xfig installation fails

I tried installing aur/xfig 3.2.8b-2 but got building error. I read in similar aur failures that permission issues may cause the problem, so I took the chance to try yay -S xfig as root and the result was the same. Is there any other way to install besides yay?

yay -S xfig
 -> Avoid running yay as root/sudo.
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo Make:5]  xorg-fonts-alias-75dpi-1.0.4-1  xorg-fonts-75dpi-1.0.3-8  xorg-fonts-alias-100dpi-1.0.4-1  xorg-fonts-100dpi-1.0.3-8  fig2dev-3.2.8.b-1
[Aur:1]  xfig-3.2.8b-2

:: Remove make dependencies after install? [y/N] y
:: (1/1) Downloaded PKGBUILD: xfig
  1 xfig                                     (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> i
:: (1/1) Parsing SRCINFO: xfig
resolving dependencies...
looking for conflicting packages...

Packages (5) fig2dev-3.2.8.b-1  xorg-fonts-100dpi-1.0.3-8
             xorg-fonts-75dpi-1.0.3-8  xorg-fonts-alias-100dpi-1.0.4-1
             xorg-fonts-alias-75dpi-1.0.4-1

Total Installed Size:  23.61 MiB

:: Proceed with installation? [Y/n] y
(5/5) checking keys in keyring                     [######################] 100%
(5/5) checking package integrity                   [######################] 100%
(5/5) loading package files                        [######################] 100%
(5/5) checking for file conflicts                  [######################] 100%
(5/5) checking available disk space                [######################] 100%
:: Processing package changes...
(1/5) installing xorg-fonts-alias-75dpi            [######################] 100%
(2/5) installing xorg-fonts-75dpi                  [######################] 100%
(3/5) installing xorg-fonts-alias-100dpi           [######################] 100%
(4/5) installing xorg-fonts-100dpi                 [######################] 100%
(5/5) installing fig2dev                           [######################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating fontconfig cache...
==> Making package: xfig 3.2.8b-2 (Πεμ 15 Δεκ 2022 09:36:06 μμ EET)
==> Retrieving sources...
  -> Downloading xfig-3.2.8b.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   315  100   315    0     0    563      0 --:--:-- --:--:-- --:--:--   563
100 5256k  100 5256k    0     0  2971k      0  0:00:01  0:00:01 --:--:-- 11.2M
  -> Found xfig.patch
  -> Found LICENSE
==> Validating source files with sha1sums...
    xfig-3.2.8b.tar.xz ... Passed
    xfig.patch ... Passed
    LICENSE ... Passed
 -> xorg-fonts-75dpi not satisfied, flushing install queue
==> Making package: xfig 3.2.8b-2 (Πεμ 15 Δεκ 2022 09:36:09 μμ EET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found xfig-3.2.8b.tar.xz
  -> Found xfig.patch
  -> Found LICENSE
==> Validating source files with sha1sums...
    xfig-3.2.8b.tar.xz ... Passed
    xfig.patch ... Passed
    LICENSE ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting xfig-3.2.8b.tar.xz with bsdtar
==> Starting prepare()...
patching file app-defaults/Fig-color.bisque
patching file app-defaults/Fig.in
==> Sources are ready.
==> Making package: xfig 3.2.8b-2 (Πεμ 15 Δεκ 2022 09:36:10 μμ EET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... no
checking dependency style of gcc... none
checking for inline... inline
checking for grep that handles long lines and -e... /usr/bin/grep
checking for fgrep... /usr/bin/grep -F
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for a sed that does not truncate output... /usr/bin/sed
checking for ar... ar
checking the archiver (ar) interface... ar
checking for library containing pow... -lm
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking for vfork.h... no
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for X11/X.h... yes
checking for jpeglib.h... yes
checking for library containing jpeg_read_header... -ljpeg
checking for png.h... yes
checking for library containing png_read_info... -lpng
checking for tiffio.h... yes
checking for library containing TIFFOpen... -ltiff
checking for ghostscript/iapi.h... yes
checking for library containing gsapi_revision... -lgs
checking whether byte ordering is bigendian... no
checking for inline... (cached) inline
checking for C/C++ restrict keyword... __restrict__
checking for pid_t... yes
checking for size_t... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether S_IFDIR is declared... yes
checking whether S_IWRITE is declared... yes
checking whether REG_NOERROR is declared... yes
checking whether the linker accepts -Wl,--allow-multiple-definition... yes
checking for fork... yes
checking for vfork... yes
checking for getcwd... yes
checking for setlocale... yes
checking for strerror... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for isascii... yes
checking for strstr... yes
checking for strchr... yes
checking for strrchr... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strndup... yes
checking for library containing XpmFree... -lXpm
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating app-defaults/Fig
config.status: creating splash-image/spl_bckgnd.fig
config.status: creating src/Makefile
config.status: creating src/version.fig
config.status: creating doc/html/images/xfig-title.fig
config.status: creating doc/Makefile
config.status: creating doc/xfig.man
config.status: creating doc/xfig_man.html
config.status: creating tests/Makefile
config.status: creating tests/atlocal
config.status: creating config.h
config.status: executing depfiles commands
config.status: error: in `/var/cache/private/yay/xfig/src/xfig-3.2.8b':
config.status: error: Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking.  If GNU make was not used, consider
    re-running the configure script with MAKE="gmake" (or whatever is
    necessary).  You can also try re-running configure with the
    '--disable-dependency-tracking' option to at least be able to build
    the package (albeit without support for automatic dependency tracking).
See `config.log' for more details
==> ERROR: A failure occurred in build().
    Aborting...
checking dependencies...

Packages (5) fig2dev-3.2.8.b-1  xorg-fonts-100dpi-1.0.3-8
             xorg-fonts-75dpi-1.0.3-8  xorg-fonts-alias-100dpi-1.0.4-1
             xorg-fonts-alias-75dpi-1.0.4-1

Total Removed Size:  23.61 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/5) removing fig2dev                             [######################] 100%
(2/5) removing xorg-fonts-100dpi                   [######################] 100%
(3/5) removing xorg-fonts-alias-100dpi             [######################] 100%
(4/5) removing xorg-fonts-75dpi                    [######################] 100%
(5/5) removing xorg-fonts-alias-75dpi              [######################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating fontconfig cache...
 -> error making: xfig

Try xfig-git

Can’t reproduce, just built it. Make sure you have the prerequisites for using the AUR.

See:

Also, NEVER run an AUR helper as root:

:point_up:

Fresh installation.
After installing base-devel, everything went smoothly. :slightly_smiling_face:

Thank a lot