You are not logged in.

#1 2025-07-21 15:11:30

Beesh
Member
Registered: 2022-01-09
Posts: 39

[SOLVED] A failure occurred in build() during makepkg

I'm trying to compile the latest argyllcms package. I took the PKGBUILD from there and edited the pkgver and sha256sums variables. But when I launch the makepkg -si command in the PKGBUILD directory, it stop after a while with this error:

==> ERROR: A failure occurred in build().
    Aborting...

I tried to compile the PKGBUILD without any edits and to my surprise it fails too. So I tried to compile it in a clean arch instance but it fails there too.
How can I debug it? is there a way to get a more verbose error?

there are the custom PKGBUILD and the makepkg command full output

# Maintainer: Bruno Pagani <archange@archlinux.org>
# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Frank Ickstadt (frank dot ickstadt at gmail dot com)

pkgname=argyllcms
pkgver=3.4.0
pkgrel=1
pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
arch=(x86_64)
url="https://www.argyllcms.com/"
license=(GPL AGPL)
depends=(libpng libtiff libxss libxinerama libxxf86vm libxrandr openssl)
makedepends=(ftjam zip unzip)
source=("https://www.argyllcms.com/Argyll_V${pkgver}_src.zip")
sha256sums=('946b096ae25d67819626f6992e9f7fb1c65f512ac9484697771b2cda5a16d3b3')

prepare() {
  cd Argyll_V${pkgver}
  # Use hwdb builtin, instead of the obsolete usb-db in the udev rules.
  sed -i 's:^TEST=="/lib/udev/usb-db", IMPORT{program}="usb-db %p":IMPORT{builtin}="hwdb --subsystem=usb":' usb/55-Argyll.rules

  # Use LDFLAGS
  echo "LINKFLAGS += ${LDFLAGS} ;" >>Jamtop
}

build() {
  cd Argyll_V${pkgver}
  CCOPTFLAG="$CFLAGS"
  jam -q -fJambase ${MAKEFLAGS} -sPREFIX=/usr -sDESTDIR="${pkgdir}" -sREFSUBDIR=share/argyllcms/ref all
}

package() {
  cd Argyll_V${pkgver}
  jam -q -fJambase ${MAKEFLAGS} -sPREFIX=/usr -sDESTDIR="${pkgdir}" -sREFSUBDIR=share/argyllcms/ref install

  rm "${pkgdir}"/usr/bin/License.txt

  rm {doc,ref}/afiles
  install -Dm644 doc/*.* -t "${pkgdir}"/usr/share/${pkgname}/doc/
  install -Dm644 doc/ccmxs/*.ccmx -t "${pkgdir}"/usr/share/${pkgname}/doc/ccmxs/

  install -Dm644 usb/55-Argyll.rules -t "${pkgdir}"/usr/lib/udev/rules.d/
}
[1m[32m==>[m[1m Making package: argyllcms 3.4.0-1 (Mon Jul 21 16:59:08 2025)[m
[1m[32m==>[m[1m Checking runtime dependencies...[m
[1m[32m==>[m[1m Checking buildtime dependencies...[m
[1m[32m==>[m[1m Retrieving sources...[m
[1m[34m  ->[m[1m Downloading Argyll_V3.4.0_src.zip...[m
[1m[32m==>[m[1m Validating source files with sha256sums...[m
[1m[32m==>[m[1m Extracting sources...[m
[1m[34m  ->[m[1m Extracting Argyll_V3.4.0_src.zip with bsdtar[m
[1m[32m==>[m[1m Starting prepare()...[m
[1m[32m==>[m[1m Starting build()...[m
We're on a 64 bit host 
Argyll Jamtop has been read 
DESTDIR = '/home/andrea/argyllcms/pkg/argyllcms', PREFIX = '/usr', REFSUBDIR = 'share/argyllcms/ref' 
Using system TIFF library 
Using system JPEG library 
Using system PNG library 
Using system Z library 
Using system SSL library 
HOME =  /home/andrea 
PWD =  /home/andrea/argyllcms/src/Argyll_V3.4.0 
...patience...
...found 1151 target(s)...
...updating 438 target(s)...
Cc_ numlib/numsup.o 
Cc_ numlib/dnsq.o 
Cc_ numlib/powell.o 
Cc_ numlib/dhsx.o 
Cc_ numlib/varmet.o 
Cc_ numlib/ludecomp.o 
Cc_ numlib/svd.o 
Cc_ numlib/zbrent.o 
Cc_ numlib/rand.o 
Cc_ numlib/sobol.o 
Cc_ numlib/aatree.o 
Cc_ numlib/quadprog.o 
Cc_ numlib/gnewt.o 
Cc_ numlib/roots.o 
Cc_ numlib/ui.o 
Cc_ plot/plot.o 
Cc_ plot/vrml.o 
Cc_ icc/icc.o 
Cc_ cgats/pars.o 
Cc_ cgats/cgats.o 
Cc_ xml/mxml-attr.o 
Cc_ xml/mxml-entity.o 
Cc_ xml/mxml-file.o 
Cc_ xml/mxml-get.o 
Cc_ xml/mxml-index.o 
Cc_ xml/mxml-node.o 
Cc_ xml/mxml-private.o 
Cc_ xml/mxml-search.o 
Cc_ xml/mxml-set.o 
Cc_ xml/mxml-string.o 
Cc_ yajl/yajl.o 
Cc_ yajl/yajl_alloc.o 
Cc_ yajl/yajl_buf.o 
Cc_ yajl/yajl_encode.o 
Cc_ yajl/yajl_gen.o 
Cc_ yajl/yajl_lex.o 
Cc_ yajl/yajl_parser.o 
Cc_ yajl/yajl_tree.o 
Cc_ yajl/yajl_version.o 
Cc_ rspl/rspl.o 
Cc_ rspl/scat.o 
Cc_ rspl/rev.o 
Cc_ rspl/gam.o 
Cc_ rspl/spline.o 
Cc_ rspl/opt.o 
Cc_ gamut/gamut.o 
Cc_ gamut/gammap.o 
Cc_ gamut/nearsmth.o 
Cc_ xicc/xicc.o 
Cc_ xicc/xspect.o 
Cc_ xicc/xcolorants.o 
Cc_ xicc/xutils.o 
Cc_ xicc/iccjpeg.o 
Cc_ xicc/xcam.o 
Cc_ xicc/cam97s3.o 
Cc_ xicc/cam02.o 
Cc_ xicc/mpp.o 
Cc_ xicc/ccmx.o 
Cc_ xicc/ccss.o 
Cc_ xicc/xfit.o 
Cc_ xicc/moncurve.o 
Cc_ xicc/xcal.o 
Cc_ xicc/bt1886.o 
Cc_ xicc/tm3015.o 
Archive numlib/libui.a 
Cc_ xicc/xcolorants2.o 
Cc_ xicc/xutils2.o 
Cc_ xicc/iccjpeg2.o 
Cc_ imdi/imdi_make.o 
Cc_ imdi/imdi_gen.o 
Cc_ imdi/cgen.o 
Cc_ imdi/imdi_tab.o 
Cc_ spectro/inst.o 
Cc_ spectro/insttypes.o 
Cc_ spectro/icoms.o 
Cc_ spectro/disptechs.o 
Cc_ spectro/rspec.o 
Cc_ spectro/xrga.o 
Cc_ spectro/dtp22.o 
Cc_ spectro/dtp41.o 
Cc_ spectro/dtp51.o 
Cc_ spectro/ss.o 
Cc_ spectro/ss_imp.o 
Cc_ spectro/dtp20.o 
Cc_ spectro/i1disp.o 
Cc_ spectro/i1d3.o 
Cc_ spectro/i1pro.o 
Cc_ spectro/i1pro_imp.o 
Cc_ spectro/i1pro3.o 
Cc_ spectro/i1pro3_imp.o 
Cc_ spectro/munki.o 
Archive xicc/libxutils.a 
Cc_ spectro/munki_imp.o 
Cc_ spectro/hcfr.o 
Cc_ spectro/spyd2.o 
Cc_ spectro/spydX.o 
Cc_ spectro/spydX2.o 
Cc_ spectro/huey.o 
Cc_ spectro/colorhug.o 
...on 100th target...
Cc_ spectro/ex1.o 
Cc_ spectro/usbio.o 
Cc_ spectro/hidio.o 
Cc_ spectro/specbos.o 
Cc_ spectro/kleink10.o 
Cc_ spectro/smcube.o 
Cc_ spectro/dtp92.o 
Cc_ spectro/dispsup.o 
Cc_ spectro/dispwin.o 
Cc_ spectro/webwin.o 
Cc_ spectro/ccwin.o 
Cc_ spectro/dummywin.o 
Cc_ spectro/mongoose.o 
Cc_ spectro/insttypes2.o 
Archive xicc/libxcolorants.a 
Archive yajl/libyajl.a 
Cc_ spectro/xrga2.o 
Cc_ spectro/disptechs2.o 
Cc_ spectro/xdg_bds.o 
Cc_ spectro/aglob.o 
Cc_ spectro/conv.o 
Cc_ spectro/base64.o 
Cc_ spectro/pollem.o 
Cc_ spectro/instappsup.o 
Cc_ scanin/scanrd.o 
Cc_ profile/profin.o 
Cc_ profile/profout.o 
Cc_ render/render.o 
Cc_ render/thscreen.o 
Cc_ namedc/namedc.o 
Cc_ ccast/ccmdns.o 
Cc_ ccast/ccpacket.o 
Archive spectro/libinsttypes.a 
Cc_ ccast/ccmes.o 
Cc_ ccast/ccast.o 
Cc_ ccast/chan/cast_channel.pb-c.o 
Cc_ ccast/chan/protobuf-c.o 
Cc_ ccast/dpat.o 
Cc_ zlib/adler32.o 
Cc_ zlib/compress.o 
Cc_ zlib/zcrc32.o 
Archive spectro/libdisptechs.a 
Cc_ zlib/deflate.o 
Cc_ zlib/gzclose.o 
Cc_ zlib/gzlib.o 
Cc_ zlib/gzread.o 
Cc_ zlib/gzwrite.o 
Archive spectro/libconv.a 
Cc_ zlib/infback.o 
Cc_ zlib/inffast.o 
Cc_ zlib/inflate.o 
Cc_ zlib/inftrees.o 
Cc_ zlib/trees.o 
Cc_ zlib/uncompr.o 
Cc_ zlib/zutil.o 
Archive xml/libmxml.a 
Cc_ jcnf/jcnf.o 
Archive plot/libplot.a 
Cc_ ucmm/ucmm.o 
Cc_ numlib/dnsqtest.o 
Cc_ numlib/tpowell.o 
Cc_ numlib/tconjgrad.o 
Cc_ numlib/tvarmet.o 
Cc_ numlib/tdhsx.o 
Cc_ numlib/LUtest.o 
Cc_ numlib/svdtest.o 
Cc_ numlib/zbrenttest.o 
Cc_ numlib/soboltest.o 
Cc_ numlib/qptest.o 
Archive cgats/libcgats.a 
Cc_ plot/plot_plot.o 
Archive spectro/libinstapp.a 
Cc_ icc/icctest.o 
Cc_ icc/lutest.o 
Cc_ icc/iccdump.o 
Cc_ icc/icclu.o 
Cc_ icc/iccrw.o 
Cc_ icc/mkDispProf.o 
Cc_ cgats/pars_pars.o 
Cc_ cgats/cgats_cgats.o 
Cc_ xml/testmxml.o 
Cc_ yajl/yajl_test.o 
Cc_ yajl/json_verify.o 
Cc_ rspl/revbench.o 
Cc_ rspl/c1.o 
Cc_ rspl/cw1.o 
Cc_ rspl/cw3.o 
Cc_ rspl/c1df.o 
Cc_ rspl/t2d.o 
Cc_ rspl/t2ddf.o 
Cc_ rspl/t3d.o 
Cc_ rspl/t3ddf.o 
Cc_ rspl/tnd.o 
Cc_ rspl/trnd.o 
Cc_ rspl/smtnd.o 
Cc_ rspl/smtmpp.o 
Link_ yajl/json_verify 
Cc_ rspl/sm1.o 
Cc_ rspl/sm2.o 
Link_ yajl/yajl_test 
Chmod1 yajl/json_verify 
...on 200th target...
Cc_ rspl/sm3.o 
Cc_ gamut/viewgam.o 

	cc -c -o rspl/c1df.o -g -DUNIX -D_THREAD_SAFE -pipe -fPIC -m64 -O2 -DARGYLLCMS -DALLINSTS -Irspl -Ih -Inumlib -Iplot -I/usr/local/include rspl/c1df.c

...failed Cc_ rspl/c1df.o ...
Archive ucmm/libucmm.a 
Chmod1 yajl/yajl_test 
Link_ xml/testmxml 
Link_ rspl/sm1 
Link_ rspl/sm2 
Archive plot/libvrml.a 
Chmod1 xml/testmxml 
Chmod1 rspl/sm2 
Chmod1 rspl/sm1 
Link_ rspl/sm3 
Chmod1 rspl/sm3 
Archive jcnf/libjcnf.a 
Archive namedc/libnamedc.a 
Link_ cgats/pars 
Chmod1 cgats/pars 
Cc_ imdi/cgen.o 
Link_ gamut/viewgam 

	cc -o gamut/viewgam  gamut/viewgam.o  gamut/libgammap.a gamut/libgamut.a xicc/libxicc.a rspl/librspl.a icc/libicc.a cgats/libcgats.a plot/libplot.a numlib/libnum.a numlib/libui.a plot/libvrml.a  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -flto=auto -ldl -lrt -ltiff -ljpeg -lpng -lz -lssl -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -lm -lpthread  

...failed Link_ gamut/viewgam ...
Archive zlib/libz.a 
Archive render/librender.a 
Archive numlib/libnum.a 
Archive ccast/libccast.a 
Link_ numlib/dnsqtest 
Link_ numlib/tpowell 
Link_ numlib/tconjgrad 
Link_ numlib/tvarmet 
Link_ numlib/tdhsx 
Link_ numlib/LUtest 
Link_ numlib/svdtest 
Link_ numlib/zbrenttest 
Link_ numlib/soboltest 
Link_ numlib/qptest 
Archive gamut/libgammap.a 
Chmod1 numlib/soboltest 
Chmod1 numlib/tconjgrad 
Chmod1 numlib/svdtest 
Chmod1 numlib/tpowell 
Chmod1 numlib/zbrenttest 
Chmod1 numlib/tdhsx 
Chmod1 numlib/dnsqtest 
Chmod1 numlib/LUtest 
Chmod1 numlib/qptest 
Chmod1 numlib/tvarmet 
Link_ cgats/cgats 
Chmod1 cgats/cgats 
Archive spectro/libdisp.a 
Link_ plot/plot 
Chmod1 plot/plot 
Archive gamut/libgamut.a 
Link_ imdi/imdi_make 
Archive profile/libprof.a 
Chmod1 imdi/imdi_make 
GenFileND1 imdi/imdi_k.h 
Cc_ imdi/imdi.o 
Archive scanin/libscanrd.a 
Archive xicc/libxicc.a 
Archive spectro/libinst.a 
Archive rspl/librspl.a 
Archive icc/libicc.a 
Link_ icc/icctest 
Link_ icc/lutest 
Link_ icc/iccdump 
Link_ icc/icclu 
Link_ icc/iccrw 
Link_ icc/mkDispProf 
Link_ rspl/revbench 
Link_ rspl/c1 
Link_ rspl/cw1 
Link_ rspl/cw3 
...skipped <rspl>c1df for lack of <rspl>c1df.o...
Link_ rspl/t2d 
Link_ rspl/t2ddf 
Link_ rspl/t3d 
Link_ rspl/t3ddf 
Link_ rspl/tnd 
Link_ rspl/trnd 
Link_ rspl/smtnd 
Link_ rspl/smtmpp 
Chmod1 icc/iccrw 
Chmod1 icc/icctest 
Chmod1 icc/icclu 
Chmod1 icc/lutest 
Chmod1 icc/mkDispProf 
Chmod1 icc/iccdump 
Chmod1 rspl/trnd 
Chmod1 rspl/tnd 
Chmod1 rspl/revbench 
Chmod1 rspl/c1 
Chmod1 rspl/cw1 
Chmod1 rspl/cw3 
Chmod1 rspl/t2ddf 
Chmod1 rspl/t2d 
Chmod1 rspl/t3ddf 
Chmod1 rspl/smtnd 
Chmod1 rspl/t3d 
Chmod1 rspl/smtmpp 
Archive imdi/libimdi.a 
...failed updating 2 target(s)...
...skipped 1 target(s)...
...updated 256 target(s)...

Last edited by Beesh (2025-07-22 11:57:35)

Offline

#2 2025-07-21 15:39:51

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,445
Website

Re: [SOLVED] A failure occurred in build() during makepkg

If you search the build log for "failed" you can find the actual errors:

cc -c -o rspl/c1df.o -g -DUNIX -D_THREAD_SAFE -pipe -fPIC -m64 -O2 -DARGYLLCMS -DALLINSTS -Irspl -Ih -Inumlib -Iplot -I/usr/local/include rspl/c1df.c
...failed Cc_ rspl/c1df.o ...
Link_ gamut/viewgam 
cc -o gamut/viewgam  gamut/viewgam.o  gamut/libgammap.a gamut/libgamut.a xicc/libxicc.a rspl/librspl.a icc/libicc.a cgats/libcgats.a plot/libplot.a numlib/libnum.a numlib/libui.a plot/libvrml.a  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -flto=auto -ldl -lrt -ltiff -ljpeg -lpng -lz -lssl -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -lm -lpthread  
...failed Link_ gamut/viewgam ...

Offline

#3 2025-07-21 15:55:12

loqs
Member
Registered: 2014-03-06
Posts: 18,729

Re: [SOLVED] A failure occurred in build() during makepkg

rspl/c1df.c:64:8: error: conflicting types for ‘lin’; have ‘double(double,  double *, double *, int)’
   64 | double lin(double x, double xa[], double ya[], int n);
      |        ^~~
rspl/c1df.c:37:8: note: previous declaration of ‘lin’ with type ‘double(void)’
   37 | double lin();
      |        ^~~
rspl/c1df.c:289:1: error: conflicting types for ‘lin’; have ‘double(double,  double *, double *, int)’
  289 | lin(
      | ^~~
rspl/c1df.c:37:8: note: previous declaration of ‘lin’ with type ‘double(void)’
   37 | double lin();
      |        ^~~

	cc -c -o rspl/c1df.o -g -DUNIX -D_THREAD_SAFE -pipe -fPIC -m64 -O2 -DARGYLLCMS -DALLINSTS -Irspl -Ih -Inumlib -Iplot -I/usr/local/include rspl/c1df.c

...failed Cc_ rspl/c1df.o ...

Remove the duplicate parameterless prototype for lin:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 # Contributor: Frank Ickstadt (frank dot ickstadt at gmail dot com)
 
 pkgname=argyllcms
-pkgver=3.3.0
+pkgver=3.4.0
 pkgrel=1
 pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
 arch=(x86_64)
@@ -12,10 +12,13 @@ license=(GPL AGPL)
 depends=(libpng libtiff libxss libxinerama libxxf86vm libxrandr openssl)
 makedepends=(ftjam zip unzip)
 source=("https://www.argyllcms.com/Argyll_V${pkgver}_src.zip")
-sha256sums=('69db1c9ef66f8cacbbbab4ed9910147de6100c3afd17a0a8c12e6525b778e8ce')
+sha256sums=('946b096ae25d67819626f6992e9f7fb1c65f512ac9484697771b2cda5a16d3b3')
 
 prepare() {
     cd Argyll_V${pkgver}
+
+    sed -i '/double lin();/d' rspl/c1df.c
+
     # Use hwdb builtin, instead of the obsolete usb-db in the udev rules.
     sed -i 's:^TEST=="/lib/udev/usb-db", IMPORT{program}="usb-db %p":IMPORT{builtin}="hwdb --subsystem=usb":' usb/55-Argyll.rules
 

Offline

#4 2025-07-22 11:56:35

Beesh
Member
Registered: 2022-01-09
Posts: 39

Re: [SOLVED] A failure occurred in build() during makepkg

that worked flawlessly and will give me something new to chew on, thank you so much

Offline

Board footer

Powered by FluxBB