Unable to compile I-Nex, using arnieff's libcpuid library.

Bug #1358542 reported by Shirish Agarwal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
I-Nex
Invalid
Undecided
Unassigned

Bug Description

I first installed arnieff's libcpuid in /usr/lib/ as described below.

see :-

~/games/libcpuid$ git remote -v
origin https://github.com/anrieff/libcpuid.git (fetch)
origin https://github.com/anrieff/libcpuid.git (push)

the only change I did was while configuring libcpuid is :-

./configure --prefix=/usr/
the duplicate status is wrong because I'm using arnieff's libcpuid library only.
so when I did

~/games/libcpuid$sudo make install

it installed the libcpuid libthe duplicate status is wrong because I'm using arnieff's libcpuid library only. rary in /usr/lib/

/usr/lib$ ls libcpu*
libcpufreq.so.0 libcpufreq.so.0.0.0 libcpuid.a libcpuid.la libcpuid.so libcpuid.so.11 libcpuid.so.11.1.1

/usr/lib/pkgconfig$ ls libcpu*
libcpuid.pcthe duplicate status is wrong because I'm using arnieff's libcpuid library only.

Then tried to use fakeroot rules/build command.

~/games/I-Nex$ fakeroot debian/rules build
dh build --with autoreconf
   dh_testdir
   debian/rules override_dh_autoreconf
make[1]: Entering directory '/data/shirish/Games/I-Nex'
cd I-Nex && autoreconf -i
configure.ac:4: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.ac:4: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
make[1]: Leaving directory '/data/shirish/Games/I-Nex'
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/data/shirish/Games/I-Nex'
dh_auto_configure --sourcedirectory=I-Nex
configure: WARNING: unrecognized options: --disable-maintainer-mode, --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gambas3 binaries... Ok
checking for gambas3 components path... Ok
checking for gb.image component... Ok
checking for gb.qt4 component... Ok
checking for gb.form component... Ok
checking for gb.desktop component... Ok
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
configure: WARNING: unrecognized options: --disable-maintainer-mode, --disable-dependency-tracking
make[1]: Leaving directory '/data/shirish/Games/I-Nex'
   dh_auto_build
make[1]: Entering directory '/data/shirish/Games/I-Nex'
Build I-Nex...
make -C I-Nex
make[2]: Entering directory '/data/shirish/Games/I-Nex/I-Nex'
Compiling i-nex project...
OK
make[2]: Leaving directory '/data/shirish/Games/I-Nex/I-Nex'
Build JSON...
make -C JSON
make[2]: Entering directory '/data/shirish/Games/I-Nex/JSON'
Compile Static ⚑
Compile i-nex-edid ✔
gcc -o i-nex-edid i-nex-edid.c -g -Wall -O2
i-nex-edid.c: In function ‘detailed_block’:
i-nex-edid.c:194:2: warning: ‘width’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf(" %dx%d @ ( %s%s%s%s%s) Hz (%s%s preferred)\n", width, height,
  ^
i-nex-edid.c:155:9: note: ‘width’ was declared here
     int width, height;
         ^
i-nex-edid.c: In function ‘main’:
i-nex-edid.c:1656:26: warning: ‘conformant_extension’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  nonconformant_extension += parse_extension(x);
                          ^
i-nex-edid.c:110:5: warning: ‘v’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     printf("%s%s: %s (%d)\n", prefix, field->name, v->description, val);
     ^
i-nex-edid.c:95:19: note: ‘v’ was declared here
     struct value *v;
                   ^
i-nex-edid.c:1630:7: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       printf(" %dx%d@%dHz\n", x, y, refresh);
       ^
i-nex-edid.c:1417:2: warning: ‘ofd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  write(ofd, edid, edid_lines * 16);
  ^
Compile i-nex-cpuid ✔
gcc -o i-nex-cpuid i-nex-cpuid.c -static -I/usr/local/include/libcpuid -L/usr/local/lib -lcpuid -O2
i-nex-cpuid.c: In function ‘main’:
i-nex-cpuid.c:835:45: error: ‘CPU_FEATURE_CPB’ undeclared (first use in this function)
  printf(" \"VALUE\": %s \n", data.flags[CPU_FEATURE_CPB] ? "1 ," : "0 ,");
                                             ^
i-nex-cpuid.c:835:45: note: each undeclared identifier is reported only once for each function it appears in
i-nex-cpuid.c:843:45: error: ‘CPU_FEATURE_APERFMPERF’ undeclared (first use in this function)
  printf(" \"VALUE\": %s \n", data.flags[CPU_FEATURE_APERFMPERF] ? "1 ," : "0 ,");
                                             ^
i-nex-cpuid.c:851:45: error: ‘CPU_FEATURE_PFI’ undeclared (first use in this function)
  printf(" \"VALUE\": %s \n", data.flags[CPU_FEATURE_PFI] ? "1 ," : "0 ,");
                                             ^
i-nex-cpuid.c:859:45: error: ‘CPU_FEATURE_PA’ undeclared (first use in this function)
  printf(" \"VALUE\": %s \n", data.flags[CPU_FEATURE_PA] ? "1 ," : "0 ,");
                                             ^
Makefile:23: recipe for target 'compile-i-nex-cpuid' failed
make[2]: *** [compile-i-nex-cpuid] Error 1
make[2]: Leaving directory '/data/shirish/Games/I-Nex/JSON'
Makefile:24: recipe for target 'build-json' failed
make[1]: *** [build-json] Error 2
make[1]: Leaving directory '/data/shirish/Games/I-Nex'
dh_auto_build: make -j1 returned exit code 2
debian/rules:20: recipe for target 'build' failed
make: *** [build] Error 2

can you tell/share why the build errored out at the fakeroot debian/rules build stage itself ?

Revision history for this message
eloaders (eloaders) wrote :

Ubuntu builds must be always build in clean system. Fresh instalation.
You are using an old version of the library. check if you do not have a duplicate in /usr/local

I recommend using the Ubuntu ppa or change the static compilation by editing inex.mk.

Revision history for this message
Shirish Agarwal (shirishag75) wrote : Re: [Bug 1358542] Re: Unable to compile I-Nex, using arnieff's libcpuid library.
Download full text (6.6 KiB)

at bottom :-

On 8/21/14, eloaders <email address hidden> wrote:
> Ubuntu builds must be always build in clean system. Fresh instalation.
> You are using an old version of the library. check if you do not have a
> duplicate in /usr/local
>
> I recommend using the Ubuntu ppa or change the static compilation by
> editing inex.mk.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1358542
>
> Title:
> Unable to compile I-Nex, using arnieff's libcpuid library.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/i-nex/+bug/1358542/+subscriptions

You were right on the money. I had an old library lurking in
/usr/local/lib. Taking all of them out along with libcpuid.pc from
pkg_config in /usr/local/lib made a clean rules build.

~/games/I-Nex$ fakeroot debian/rules build
dh build --with autoreconf
   dh_testdir
   debian/rules override_dh_autoreconf
make[1]: Entering directory '/data/shirish/Games/I-Nex'
cd I-Nex && autoreconf -i
configure.ac:4: warning: AM_INIT_AUTOMAKE: two- and three-arguments
forms are deprecated. For more info, see:
configure.ac:4:
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
make[1]: Leaving directory '/data/shirish/Games/I-Nex'
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/data/shirish/Games/I-Nex'
dh_auto_configure --sourcedirectory=I-Nex
configure: WARNING: unrecognized options: --disable-maintainer-mode,
--disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gambas3 binaries... Ok
checking for gambas3 components path... Ok
checking for gb.image component... Ok
checking for gb.qt4 component... Ok
checking for gb.form component... Ok
checking for gb.desktop component... Ok
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
configure: WARNING: unrecognized options: --disable-maintainer-mode,
--disable-dependency-tracking
make[1]: Leaving directory '/data/shirish/Games/I-Nex'
   dh_auto_build
make[1]: Entering directory '/data/shirish/Games/I-Nex'
Build I-Nex...
make -C I-Nex
make[2]: Entering directory '/data/shirish/Games/I-Nex/I-Nex'
Compiling i-nex project...
OK
make[2]: Leaving directory '/data/shirish/Games/I-Nex/I-Nex'
Build JSON...
make -C JSON
make[2]: Entering directory '/data/shirish/Games/I-Nex/JSON'
Compile Static ⚑
Compile i-nex-edid ✔
gcc -o i-nex-edid i-nex-edid.c -g -Wall -O2
i-nex-edid.c: In function ‘detailed_block’:
i-nex-edid.c:194:2: warning: ‘width’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
  printf(" %dx%d @ ( %s%s%s%s%s) Hz (%s%s preferred)\n", width, height,
  ^
i-nex-edid.c:155:9: note: ‘width’ was declared here
     int width, height;
         ^
i-nex-edid.c...

Read more...

eloaders (eloaders)
Changed in i-nex:
status: New → Invalid
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.