You are not logged in.

#1 2016-02-12 15:57:41

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,601
Website

Help with compiling some old software [solved]

I am maintaining athcool in the AUR.  It is an older piece of software which is i686 only.  Recently, compiling it fails for reasons that are not obvious to me.  Can someone with some more experience take a peek?  I'd like to keep this obscure software for those running these older chips.  Thanks.

Here is where it fails when building an arch32 chroot:

==> Starting build()...
gcc -O2 -Wall -I. -I/usr/include -DPACKAGE=\"athcool\" -DVERSION=\"0.3.12\" -c athcool.c -o athcool.o
gcc -O2 -Wall -I. -I/usr/include -DPACKAGE=\"athcool\" -DVERSION=\"0.3.12\" -c scanpci.c -o scanpci.o
athcool.c:63:21: fatal error: pci/pci.h: No such file or directory
compilation terminated.
Makefile:50: recipe for target 'athcool.o' failed
make: *** [athcool.o] Error 1
make: *** Waiting for unfinished jobs....
scanpci.c:9:21: fatal error: pci/pci.h: No such file or directory
compilation terminated.
Makefile:50: recipe for target 'scanpci.o' failed
make: *** [scanpci.o] Error 1

Last edited by graysky (2016-02-12 17:52:13)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2016-02-12 16:02:46

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,618

Re: Help with compiling some old software [solved]

pci/pci.h seems to be in pciutils

Offline

#3 2016-02-12 17:50:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,601
Website

Re: Help with compiling some old software [solved]

Thanks, Scimmia.  That was the problem.  Compiled for years without that.. I was combing through the Makefile looking for some reason.

% pkgfile pci.h
core/glibc
core/linux-api-headers
core/linux-headers
core/linux-lts-headers
core/pciutils
extra/linux-zen-headers
community/kernel-headers-musl
community/linux-grsec-headers

I assumed glibc.

Last edited by graysky (2016-02-12 17:51:46)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2016-02-12 19:06:54

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Help with compiling some old software [solved]

[eschwartz@arch ~]$ pkgfile -vr pci/pci.h
core/pciutils 3.4.0-1	/usr/include/pci/pci.h

Makes it more immediately obvious which package you need.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2016-02-12 19:36:48

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,601
Website

Re: Help with compiling some old software [solved]

@Eschwartz.  Good tip, thanks.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB