pkgcon/pkg-config cannot find epics-base or epics-base-linux-x86_64

Bug #2067894 reported by Jens Georg
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
epics-base (Debian)
Fix Released
Unknown
epics-base (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I am not sure if this is an epics-dev problem or a pkgcon/pkg-config issue, but since pkg-config works fine for other packages, I assumed the former.

I have installed epics-dev. It contains the epics-base.pc and the epics-base-linux-x86_64.pc files, yet pkg-config (or pgkcon) cannot find it:

jgeorg @jgeorg-ubuntu2404 /usr/share $ dpkg -l | grep epics
ii epics-dev 7.0.7+dfsg1-5 amd64 EPICS header files

jgeorg @jgeorg-ubuntu2404 /usr/share $ dpkg -L epics-dev | grep pc$
/usr/share/pkg-config/epics-base-linux-x86_64.pc
/usr/share/pkg-config/epics-base.pc

jgeorg @jgeorg-ubuntu2404 /usr/share $ pkg-config --modversion epics-base
Package epics-base was not found in the pkg-config search path.
Perhaps you should add the directory containing `epics-base.pc'
to the PKG_CONFIG_PATH environment variable
Package 'epics-base', required by 'virtual:world', not found

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: epics-dev 7.0.7+dfsg1-5
ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
Uname: Linux 6.8.0-31-generic x86_64
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudID: none
CloudName: none
CloudPlatform: none
CloudSubPlatform: config
Date: Mon Jun 3 10:15:37 2024
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: epics-base
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jens Georg (yg-jensge) wrote :
Revision history for this message
Jens Georg (yg-jensge) wrote :

According to debian changelog of epics-dev, this is was also reported as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%231059706 and has been fixed in epics-base (7.0.8+dfsg1-1)

We would highly appreciate to get at least that pc fix cherry-picked into ubuntu 24.04 LTS

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in epics-base (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris (christian-staats) wrote :

Today we rebuilt Epics from Git on an Ubuntu 24.0 4 machine. Version 7.0.8
```
git clone -b ubuntu/devel https://git.launchpad.net/ubuntu/+source/epics-base
cd epics-base
dpkg-buildpackage -b -uc -us
```
We then installed these and built our software against them.
Everything works.
If we try build against the 7.0.7 version delivered with noble, compilerSpecific.h is not found.
Although everything is specified correctly in the include path, something must have to do with the compiler versions or prerequisites for compilers

Revision history for this message
Chris (christian-staats) wrote :

diff /usr/share/pkg-config/epics-base-linux-x86_64.pc /usr/share/pkgconfig/epics-base-linux-x86_64.pc.7.0.8.1+dfsg1-2
2c2
< prefix=/build/epics-base-1slepS/epics-base-7.0.7+dfsg1
---
> prefix=/usr
21,22c21,23
< includedir_osd=${prefix}/include/os/Linux
< includedir_comp=${prefix}/include/compiler/gcc
---
> includedir_epicsd=${prefix}/include/epics
> includedir_osd=${prefix}/include/epics/os/Linux
> includedir_comp=${prefix}/include/epics/compiler/gcc
24c25
< includedirs=${includedir_osi} ${includedir_osd} ${includedir_comp}
---
> includedirs=${includedir_osi} ${includedir_epicsd} ${includedir_osd} ${includedir_comp}
38c39
< Version: 7.0.7.0
---
> Version: 7.0.8.1
40c41
< Cflags: -I${includedir_osi} -I${includedir_osd} -I${includedir_comp} -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -ffile-prefix-map=/build/epics-base-1slepS/epics-base-7.0.7+dfsg1=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fdebug-prefix-map=/build/epics-base-1slepS/epics-base-7.0.7+dfsg1=/usr/src/epics-base-7.0.7+dfsg1-5 -D_FORTIFY_SOURCE=2 -ffile-prefix-map=/build/epics-base-1slepS/epics-base-7.0.7+dfsg1=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fdebug-prefix-map=/build/epics-base-1slepS/epics-base-7.0.7+dfsg1=/usr/src/epics-base-7.0.7+dfsg1-5 -D_FORTIFY_SOURCE=2 -mtune=generic -m64
---
> Cflags: -I${includedir_osi} -I${includedir_epicsd} -I${includedir_osd} -I${includedir_comp}

Revision history for this message
Chris (christian-staats) wrote (last edit ):

diff /usr/share/pkg-config/epics-base.pc /usr/share/pkgconfig/epics-base.pc.7.0.8.1+dfsg1-2

2c2
< prefix=/build/epics-base-1slepS/epics-base-7.0.7+dfsg1
---
> prefix=/usr
18,19c18,20
< includedir_osd=${prefix}/include/os/Linux
< includedir_comp=${prefix}/include/compiler/gcc
---
> includedir_epicsd=${prefix}/include/epics
> includedir_osd=${prefix}/include/epics/os/Linux
> includedir_comp=${prefix}/include/epics/compiler/gcc
21c22
< includedirs=${includedir_osi} ${includedir_osd} ${includedir_comp}
---
> includedirs=${includedir_osi} ${includedir_epicsd} ${includedir_osd} ${includedir_comp}
27c28
< Version: 7.0.7.0
---
> Version: 7.0.8.1
29c30
< Requires: epics-base-linux-x86_64 = 7.0.7.0
---
> Requires: epics-base-linux-x86_64 = 7.0.8.1

Revision history for this message
Chris (christian-staats) wrote :

7.0.8
:~# unset PKG_CONFIG_PATH
:~# pkg-config --cflags epics-base
-I/usr/include/epics -I/usr/include/epics/os/Linux -I/usr/include/epics/compiler/gcc
:~# pkg-config --cflags epics-base

Revision history for this message
Chris (christian-staats) wrote :

7.0.7
pkg-config --cflags epics-base
Package epics-base was not found in the pkg-config search path.
Perhaps you should add the directory containing `epics-base.pc'

export PKG_CONFIG_PATH=/usr/share/pkg-config
pkg-config --cflags epics-base
-I/build/epics-base-1slepS/epics-base-7.0.7+dfsg1/include -I/build/epics-base-1slepS/epics-base-7.0.7+dfsg1/include/os/Linux -I/build/epics-base-1slepS/epics-base-7.0.7+dfsg1/include/compiler/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -ffile-prefix-map=/build/epics-base-1slepS/epics-base-7.0.7+dfsg1=. -D_FORTIFY_SOURCE=2 -ffile-prefix-map=/build/epics-base-1slepS/epics-base-7.0.7+dfsg1=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fdebug-prefix-map=/build/epics-base-1slepS/epics-base-7.0.7+dfsg1=/usr/src/epics-base-7.0.7+dfsg1-5 -D_FORTIFY_SOURCE=2 -mtune=generic -m64

Changed in epics-base (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.