Bug 49774

Summary: configure: error: pci.ids not found, try --with-pci-ids-path=
Product: systemd Reporter: Maksim Melnikau <maxposedon>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Maksim Melnikau 2012-05-10 23:58:06 UTC
I'm trying "cross compile" systemd with uclibc.
During configure systemd (current master) cannot find pci.ids.
Its a bit strange, because it successfully finds usb.ids in same place.
Both pci.ids exists: /usr/share/misc/pci.ids and /usr/i686-pc-linux-uclibc/usr/share/misc/pci.ids

build.log
=========
>>> Emerging (1 of 1) sys-apps/systemd-45 from local for /usr/i686-pc-linux-uclibc/
 * systemd-45.tar.xz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking systemd-45.tar.xz to /usr/i686-pc-linux-uclibc/tmp/portage/sys-apps/systemd-45/work
>>> Source unpacked in /usr/i686-pc-linux-uclibc/tmp/portage/sys-apps/systemd-45/work
>>> Preparing source in /usr/i686-pc-linux-uclibc/tmp/portage/sys-apps/systemd-45/work/systemd-45 ...
ac-wrapper: warning: invalid WANT_AUTOCONF 'latest'; ignoring.
am-wrapper: aclocal: warning: invalid WANT_AUTOMAKE 'latest'; ignoring.
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: linking file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
am-wrapper: aclocal: warning: invalid WANT_AUTOMAKE 'latest'; ignoring.
am-wrapper: automake: warning: invalid WANT_AUTOMAKE 'latest'; ignoring.
configure.ac:60: installing `build-aux/compile'
configure.ac:37: installing `build-aux/config.guess'
configure.ac:37: installing `build-aux/config.sub'
configure.ac:35: installing `build-aux/install-sh'
configure.ac:35: installing `build-aux/missing'
Makefile.am: installing `build-aux/depcomp'

----------------------------------------------------------------
Initialized build system. For a common configuration please run:
----------------------------------------------------------------

./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64 --libexecdir=/usr/lib --enable-gtk-doc --with-rootprefix= --with-rootlibdir=/lib64 

 * Running elibtoolize in: systemd-45/build-aux/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying cross/link-ROOT patch ...
>>> Source prepared.
>>> Configuring source in /usr/i686-pc-linux-uclibc/tmp/portage/sys-apps/systemd-45/work/systemd-45 ...
>>> Working in BUILD_DIR: "/usr/i686-pc-linux-uclibc/tmp/portage/sys-apps/systemd-45/work/systemd-45"
/usr/i686-pc-linux-uclibc/tmp/portage/sys-apps/systemd-45/work/systemd-45/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=i686-pc-linux-uclibc --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --docdir=/usr/share/doc/systemd-45 --with-distro=gentoo --with-rootprefix=/usr --with-rootlibdir=/usr/lib --with-pamlibdir=/lib/security --localstatedir=/var --enable-split-usr --disable-acl --disable-audit --disable-libcryptsetup --disable-xz --disable-pam --disable-plymouth --disable-selinux --disable-tcpwrap
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/crossdev/include/site/linux
configure: loading site script /usr/share/crossdev/include/site/linux-uclibc
configure: loading site script /usr/share/crossdev/include/site/i686-linux-uclibc
checking for i686-pc-linux-uclibc-gcc... i686-pc-linux-uclibc-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-uclibc-gcc accepts -g... yes
checking for i686-pc-linux-uclibc-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... i686-pc-linux-uclibc-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-pc-linux-uclibc-strip... i686-pc-linux-uclibc-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking dependency style of i686-pc-linux-uclibc-gcc... none
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... i686-pc-linux-uclibc
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by i686-pc-linux-uclibc-gcc... /usr/libexec/gcc/i686-pc-linux-uclibc/ld
checking if the linker (/usr/libexec/gcc/i686-pc-linux-uclibc/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/i686-pc-linux-uclibc-nm -B
checking the name lister (/usr/bin/i686-pc-linux-uclibc-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-linux-gnu file names to i686-pc-linux-uclibc format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/libexec/gcc/i686-pc-linux-uclibc/ld option to reload object files... -r
checking for i686-pc-linux-uclibc-objdump... i686-pc-linux-uclibc-objdump
checking how to recognize dependent libraries... pass_all
checking for i686-pc-linux-uclibc-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for i686-pc-linux-uclibc-ar... i686-pc-linux-uclibc-ar
checking for archiver @FILE support... @
checking for i686-pc-linux-uclibc-strip... (cached) i686-pc-linux-uclibc-strip
checking for i686-pc-linux-uclibc-ranlib... i686-pc-linux-uclibc-ranlib
checking command to parse /usr/bin/i686-pc-linux-uclibc-nm -B output from i686-pc-linux-uclibc-gcc object... ok
checking for sysroot... no
checking for i686-pc-linux-uclibc-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if i686-pc-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-pc-linux-uclibc-gcc option to produce PIC... -fPIC -DPIC
checking if i686-pc-linux-uclibc-gcc PIC flag -fPIC -DPIC works... yes
checking if i686-pc-linux-uclibc-gcc static flag -static works... yes
checking if i686-pc-linux-uclibc-gcc supports -c -o file.o... yes
checking if i686-pc-linux-uclibc-gcc supports -c -o file.o... (cached) yes
checking whether the i686-pc-linux-uclibc-gcc linker (/usr/libexec/gcc/i686-pc-linux-uclibc/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether NLS is requested... yes
checking for intltool >= 0.40.0... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.12.4
checking for XML::Parser... ok
checking whether ln -s works... yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for gawk... (cached) gawk
checking for i686-pc-linux-uclibc-gcc... (cached) i686-pc-linux-uclibc-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether i686-pc-linux-uclibc-gcc accepts -g... (cached) yes
checking for i686-pc-linux-uclibc-gcc option to accept ISO C89... (cached) none needed
checking for i686-pc-linux-uclibc-gcc option to accept ISO C99... -std=gnu99
checking whether i686-pc-linux-uclibc-gcc -std=gnu99 and cc understand -c and -o together... yes
checking whether i686-pc-linux-uclibc-gcc -std=gnu99 needs -traditional... no
checking for m4... /usr/bin/m4
checking for i686-pc-linux-uclibc-pkg-config... /usr/bin/i686-pc-linux-uclibc-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtkdoc-check... /usr/bin/gtkdoc-check
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for gobject-introspection... no
checking for i686-pc-linux-uclibc-objcopy... i686-pc-linux-uclibc-objcopy
checking for i686-pc-linux-uclibc-strings... i686-pc-linux-uclibc-strings
checking for i686-pc-linux-uclibc-gperf... no
checking for gperf... gperf
configure: WARNING: using cross tools not prefixed with host triplet
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -pipe in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wall in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -W in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wextra in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wno-inline in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wvla in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wundef in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wformat=2 in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wlogical-op in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wsign-compare in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wformat-security in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wmissing-include-dirs in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wformat-nonliteral in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wold-style-definition in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wpointer-arith in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Winit-self in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wdeclaration-after-statement in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wfloat-equal in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wmissing-prototypes in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wstrict-prototypes in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wredundant-decls in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wmissing-declarations in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wmissing-noreturn in envvar CFLAGS... 
yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wshadow in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wendif-labels in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wcast-align in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wstrict-aliasing=2 in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wwrite-strings in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wno-long-long in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wno-overlength-strings in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wno-unused-parameter in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wno-missing-field-initializers in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wno-unused-result in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Werror=overflow in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wp,-D_FORTIFY_SOURCE=2 in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -ffast-math in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -fno-common in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -fdiagnostics-show-option in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -fno-strict-aliasing in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -fvisibility=hidden in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -ffunction-sections in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -fdata-sections in envvar CFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wl,--as-needed in envvar LDFLAGS... yes
checking if i686-pc-linux-uclibc-gcc -std=gnu99 supports flag -Wl,--gc-sections in envvar LDFLAGS... yes
checking for library containing clock_gettime... none required
checking for library containing dlsym... -ldl
checking for library containing cap_init... -lcap
checking sys/capability.h usability... yes
checking sys/capability.h presence... yes
checking for sys/capability.h... yes
checking for DBUS... yes
checking for KMOD... yes
checking for BLKID... yes
checking for USBUTILS... yes
checking for USB database location... /usr/share/misc/usb.ids
configure: error: pci.ids not found, try --with-pci-ids-path=
===========

Part of config.log
===========
configure:16093: checking for USBUTILS
configure:16100: $PKG_CONFIG --exists --print-errors "usbutils >= 0.82"
configure:16103: $? = 0
configure:16117: $PKG_CONFIG --exists --print-errors "usbutils >= 0.82"
configure:16120: $? = 0
configure:16178: result: yes
configure:16187: checking for USB database location
configure:16189: result: /usr/share/misc/usb.ids
configure:16201: error: pci.ids not found, try --with-pci-ids-path=

## ---------------- ##
## Cache variables. ##
## ---------------- ##
============

============
m_melnikau-vaio / # stat /usr/share/misc/pci.ids                                                            
  File: ‘/usr/share/misc/pci.ids’
  Size: 742678          Blocks: 1456       IO Block: 4096   regular file
Device: dh/13d  Inode: 45464782    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2012-05-11 09:08:27.360001602 +0300
Modify: 2012-05-05 11:30:17.777027475 +0300
Change: 2012-05-05 11:30:20.779027545 +0300
 Birth: -

m_melnikau-vaio / # stat /usr/i686-pc-linux-uclibc/usr/share/misc/pci.ids
  File: ‘/usr/i686-pc-linux-uclibc/usr/share/misc/pci.ids’
  Size: 747648          Blocks: 1464       IO Block: 4096   regular file
Device: dh/13d  Inode: 49084489    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2012-05-11 09:49:08.340059615 +0300
Modify: 2012-05-11 09:41:11.062048272 +0300
Change: 2012-05-11 09:41:14.137048345 +0300
 Birth: -
===============
Comment 1 Maksim Melnikau 2012-05-11 00:09:36 UTC
I think pciids could be calculated in similar way as usbids.

# pkg-config --variable=usbids usbutils
/usr/share/misc/usb.ids
# pkg-config --variable=idsdir libpci  
/usr/share/misc

# stat /usr/share/misc/pci.ids
  File: ‘/usr/share/misc/pci.ids’
  Size: 742678          Blocks: 1456       IO Block: 4096   regular file
Device: dh/13d  Inode: 45464782    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2012-05-11 09:08:27.360001602 +0300
Modify: 2012-05-05 11:30:17.777027475 +0300
Change: 2012-05-05 11:30:20.779027545 +0300
 Birth: -
Comment 2 Kay Sievers 2012-05-21 17:37:43 UTC
Thanks!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.