How to fix 'failure occurred in build ()' error when running makepkg -si?

Hey everyone,
How do I fix the ‘failure occurred in build ()’ error when trying to run makepkg -si? I have already cloned the yay repository and changed the directory, but I am still ending up with that error.

Hi @Abdo_tux

It might help if the actual package you’re trying to build is known. Others could then make a better guess than the information provided thus far allows.


Welcome to the Manjaro community

As a new or infrequent forum user, please take some time to familiarise yourself with Forum requirements; in particular, the many ways to use the forum to your benefit:


Required Reading:

Resources:


Update Announcements:

The Update Announcements contain update related information and a Known Issues and Solutions section that should generally be checked before posting a request for support.


System Information:

Output of the following command (formatted according to forum requirements) may be useful for those wishing to help:

inxi --admin --verbosity=8 --filter --no-host --width

Be prepared to provide more information and outputs from other commands when asked.


Regards.

2 Likes

Hi @Abdo_tux, and welcome!

In order for us, or anyone for that matter, to be able to provide assistance, more information is necessary. To that end, please see:

Please also note and heed: Forum Rules - Manjaro

Hope you manage!


:bangbang: Tip for legibility: :bangbang:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby improving legibility and making it much easier for those trying to be of assistance.


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Please edit your post accordingly.

Note that the above text is partially pre-prepared as a general introduction for new forum users. Please take the time to follow links given and learn how to create effective support requests and encourage quality responses.


TL;DR: We needz mawr infoz! Please provide more details as well as the output you’re troubleshooting.

2 Likes

To answer the question - you need to fix the error whether that is buildscript or source.

Another option is to contact the maintainer of the script (use the AUR page for the script)

All systems has pamac installed - but if you need yay, then it is in the repo

sudo pacman -Syu yay

Please inform yourself, see → [Need-To-Know] About Manjaro and AUR - and be sure to switch to unstable for best results with AUR.

sudo pacman-mirrors --api --set-branch --unstable 
sudo pacman -Syu
3 Likes

“Yay” is a small word and easily missed when reading a post quickly. :blush:

This comment from @linux-aarhus by extension suggests you can avoid the trouble that you’re experiencing simply by installing yay from the official Manjaro repository.

Regards.

1 Like

Even this:

pamac install yay
3 Likes