You are not logged in.

#1 2011-01-04 00:22:19

iso
Member
Registered: 2008-12-27
Posts: 46

[Solved] makepkg suddenly throws an error all the time

After making some tweaks to my dwm/config.h file the makepkg now no longer works and returns the error: An unknown error has occurred. Exiting...

It doesn't seem like it is the config.h file since I am unable to compile to backed up config.h file.

I have read elsewhere that the compiling is failing due to the terminal coloring, but running the makepkg with --nocolor results in the same error.

The odd thing is that things were working then suddenly stopped within the same terminal session.

Any ideas?

Last edited by iso (2011-01-04 04:43:11)

Offline

#2 2011-01-04 00:26:13

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: [Solved] makepkg suddenly throws an error all the time

Post the makepkg output.

Offline

#3 2011-01-04 00:33:43

iso
Member
Registered: 2008-12-27
Posts: 46

Re: [Solved] makepkg suddenly throws an error all the time

I should have mentioned that lack of details in the error message smile

[chris@chris-archlinux dwm]$ makepkg -sf >> PKGBUILD
usage: dwm [-v]
==> ERROR: An unknown error has occurred. Exiting...

Extra info:
> dwm -v
> dwm-5.8.2, © 2006-2010 dwm engineers, see LICENSE for details

Offline

#4 2011-01-04 00:38:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] makepkg suddenly throws an error all the time

Why aren't you using makepkg -efi if you are just making changes to config.h?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2011-01-04 00:42:53

iso
Member
Registered: 2008-12-27
Posts: 46

Re: [Solved] makepkg suddenly throws an error all the time

makepkg -efi returns the same error.

As for why, I am pretty new to makepkg so I can't give you a solid answer on that one smile

Offline

#6 2011-01-04 00:52:55

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [Solved] makepkg suddenly throws an error all the time

iso wrote:

[chris@chris-archlinux dwm]$ makepkg -sf >> PKGBUILD

this looks really not right... I believe your PKGBUILD doesn't look right anymore too... take a new, fresh PKGBUILD and try with jason command

Offline

#7 2011-01-04 01:01:25

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: [Solved] makepkg suddenly throws an error all the time

iso wrote:

I should have mentioned that lack of details in the error message smile

[chris@chris-archlinux dwm]$ makepkg -sf >> PKGBUILD
usage: dwm [-v]
==> ERROR: An unknown error has occurred. Exiting...

Extra info:
> dwm -v
> dwm-5.8.2, © 2006-2010 dwm engineers, see LICENSE for details

It looks like the PKGBUILD is making a call to "dwm" with the wrong options which is causing an error and makepkg to abort.

Offline

#8 2011-01-04 01:06:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] makepkg suddenly throws an error all the time

Follow the instructions in the Wiki: https://wiki.archlinux.org/index.php/Dw … g_config.h

especially this bit:

$ makepkg -efi

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2011-01-04 04:42:49

iso
Member
Registered: 2008-12-27
Posts: 46

Re: [Solved] makepkg suddenly throws an error all the time

I think it was the makepkg -s >> PKGBUILD that goofed things up, instead of using the -g option.

After fooling around with the params, the only way I could get things working again was to download the dwm build scripts and redo things from scratch.

Thanks for the help.

Offline

Board footer

Powered by FluxBB