building with old lirc

Help with using MiniMyth's build system

Moderator: Pablo

Post Reply
m_kane
Contributor
Posts: 377
Joined: Sun Mar 25, 2007 8:32 pm

building with old lirc

Post by m_kane » Sun Dec 19, 2010 11:28 am

Dear Pablo,

I tried to build latest code with lirc 0.8.4a because it is last working version with my imon vfd display. Also my serial receivers don't work with latest 0.24 build. However, build stops with error:

Code: Select all

    All kernel modules will be built.

    Now enter 'make' and 'make install' to compile and install the package.

            [configure] complete for lirc.
    ==> Running make in work/main.d/lirc-0.8.4a
    make[6]: Entering directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a'
    make  all-recursive
    make[7]: Entering directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a'
    Making all in drivers
    make[8]: Entering directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers'
    Making all in lirc_dev
    make[9]: Entering directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev'
    cp ./../lirc_dev/Module*.symvers .
    cp: cannot stat `./../lirc_dev/Module*.symvers': No such file or directory
    make[9]: [lirc_dev.o] Error 1 (ignored)
    mv Makefile Makefile.automake
    cp ./../Makefile.kernel Makefile
    CPPFLAGS="" CFLAGS="" LDFLAGS="" \
            make -C /home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/images/main/lib/modules/2.6.36.2/source/ SUBDIRS=/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev modules \
                    KBUILD_VERBOSE=1
    make[10]: Entering directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/kernel-2.6.36/linux/work/main.d/linux-2.6.36.2'
    test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
            echo;                                                           \
            echo "  ERROR: Kernel configuration is invalid.";               \
            echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
            echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
            echo;                                                           \
            /bin/false)
    mkdir -p /home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev/.tmp_versions ; rm -f /home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev/.tmp_versions/*
    make -f scripts/Makefile.build obj=/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev
      i586-minimyth-linux-gnu-gcc -Wp,-MD,/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev/.lirc_dev.o.d  -nostdinc -isystem /home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i586-minimyth-linux-gnu/4.5.2/include -I/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/kernel-2.6.36/linux/work/main.d/linux-2.6.36.2/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=pentium-mmx -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I../.. -I/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev/. -I/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev/. -I/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev/../.. -I/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev/../.. -I/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/images/main/lib/modules/2.6.36.2/source//include/ -I/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/images/main/lib/modules/2.6.36.2/source//drivers/media/video/  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)"  -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)"  -c -o /home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev/lirc_dev.o /home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev/lirc_dev.c
    /home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev/lirc_dev.c:35:28: fatal error: linux/autoconf.h: No such file or directory
    compilation terminated.
    make[11]: *** [/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev/lirc_dev.o] Error 1
    make[10]: *** [_module_/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev] Error 2
    make[10]: Leaving directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/kernel-2.6.36/linux/work/main.d/linux-2.6.36.2'
    make[9]: *** [lirc_dev.o] Error 2
    make[9]: Leaving directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers/lirc_dev'
    make[8]: *** [all-recursive] Error 1
    make[8]: Leaving directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a/drivers'
    make[7]: *** [all-recursive] Error 1
    make[7]: Leaving directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a'
    make[6]: *** [all] Error 2
    make[6]: Leaving directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc/work/main.d/lirc-0.8.4a'
    make[5]: *** [build-work/main.d/lirc-0.8.4a/Makefile] Error 2
    make[5]: Leaving directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/lirc'
    make[4]: *** [../../system/lirc/cookies/main.d/install] Error 2
    make[4]: Leaving directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/irxkeys'
    make[3]: *** [imgdep-main] Error 2
    make[3]: Leaving directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/system/irxkeys'
    make[2]: *** [../../system/irxkeys/cookies/main.d/install] Error 2
    make[2]: Leaving directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/meta/minimyth'
    make[1]: *** [imgdep-main] Error 2
    make[1]: Leaving directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/meta/minimyth'
    make: *** [build] Error 2


Do you think that there is any chance to get this working? I have never found working solution with my imon vfd and newer lirc versions.. here is old discussion:
viewtopic.php?f=1&t=2150&p=10819&hilit=payload#p10819

-kane

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: building with old lirc

Post by Pablo » Tue Dec 21, 2010 5:03 am

The LIRC package contains kernel drivers. As a result, whenever the kernel interfaces change, the LIRC package kernel drivers need to be updated so that they are compatible with this changes. Recently, there have been some kernel changes (most impactfully, how ioctl and locking are handled) that have impacted the LIRC package kernel drivers. Therefore, it is often the case that older versions of the LIRC package kernel drivers cannot work with newer versions of the kernel.

In addition, there has been an effort carried forward by Jarod Wilson to move the LIRC kernel drivers out of the LIRC package and in to the main-line kernel. As of of Linux 2.6.36, most LIRC drivers are either accepted main-line kernel drivers or staging kernel drivers. In addition, with the Linux 2.6.36 kernel, the LIRC package began to depend on the core LIRC driver (i.e. lirc_dev) in the kernel rather than in the LIRC package. Therefore, it is possible that there are interface incompatibilities between the core IRC driver in the kernel and the LIRC package kernel drivers.

Finally, MiniMyth has been dragging along the additional imon_vfd driver that may no longer be needed and my be causing problems.

Sadly, all these dimensions will likely make it difficult to fix the problem using an up-to-date kernel and an up-to-date LIRC package. Equally, sadly, building MiniMyth with an older kernel similarly difficult.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

m_kane
Contributor
Posts: 377
Joined: Sun Mar 25, 2007 8:32 pm

Re: building with old lirc

Post by m_kane » Tue Dec 21, 2010 8:12 pm

Ok, that is what I was afraid of.

I hope Jarod can solve serial receiver problems soon. I have four frontends with serial receiver built in. Also I built new server to use with 0.24..

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: building with old lirc

Post by Pablo » Tue Dec 21, 2010 9:03 pm

m_kane wrote:Ok, that is what I was afraid of.

I hope Jarod can solve serial receiver problems soon. I have four frontends with serial receiver built in. Also I built new server to use with 0.24..
Hopefully, this fixes the serial issues. Either this fix or the in-tree kernel drivers (from which the fix was backported), will be in the next build.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

m_kane
Contributor
Posts: 377
Joined: Sun Mar 25, 2007 8:32 pm

Re: building with old lirc

Post by m_kane » Tue Dec 28, 2010 7:39 pm

Pablo,

I tried to build latest code, because I saw that there is changes with lirc. But building stops with error:

Code: Select all

 ake[2]: Entering directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/mediaplayers/xine-ui'
[===== NOW BUILDING:    xine-ui-3073    =====]
        [fetch] complete for xine-ui.
        [checksum] complete for xine-ui.
        [extract] complete for xine-ui.
 ==> Applying patch download/xine-ui-librt.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur xine-ui-3073-old/src/xitk/Makefile.am xine-ui-3073-new/src/xitk/Makefile.am
|--- xine-ui-3073-old/src/xitk/Makefile.am      2010-12-17 07:49:44.000000000 -0800
|+++ xine-ui-3073-new/src/xitk/Makefile.am      2010-12-17 07:49:48.000000000 -0800
--------------------------
File to patch: 
I have checked that patch files are in right place and symlinks too. I then removed xine-ui-librt.patch from makefile, but then it stops to next patch with same "not found" error.
I can't figure out what is wrong, because all files seem to be in place.. and names are correct too :(

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: building with old lirc

Post by Pablo » Fri Dec 31, 2010 6:49 pm

Odd. Are you still building on a CentOS 5 system? If so, is it a 32-bit or a 64-bit CentOS system.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

m_kane
Contributor
Posts: 377
Joined: Sun Mar 25, 2007 8:32 pm

Re: building with old lirc

Post by m_kane » Fri Dec 31, 2010 8:01 pm

No, now I build with my main computer, using opensuse 11.1 32-bit.

I did compile it with same computer when i tried old lirc. I assume that xine-ui is compiled before lirc.. then it did compile xine-ui ok, and stopped to lirc.

I haven't change anything, but loaded latest code and make garchive. I don't understand.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: building with old lirc

Post by Pablo » Fri Dec 31, 2010 8:48 pm

m_kane wrote:I did compile it with same computer when i tried old lirc. I assume that xine-ui is compiled before lirc.. then it did compile xine-ui ok, and stopped to lirc.
The MiniMyth build system should compile system/lirc before mediaplayers/xine-ui as Xine includes LIRC support. Does your mediaplayers/xine-ui/Makefile have system/lirc as one of the DEPENDS line items?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

m_kane
Contributor
Posts: 377
Joined: Sun Mar 25, 2007 8:32 pm

Re: building with old lirc

Post by m_kane » Fri Dec 31, 2010 9:52 pm

Pablo wrote:
m_kane wrote:I did compile it with same computer when i tried old lirc. I assume that xine-ui is compiled before lirc.. then it did compile xine-ui ok, and stopped to lirc.
The MiniMyth build system should compile system/lirc before mediaplayers/xine-ui as Xine includes LIRC support. Does your mediaplayers/xine-ui/Makefile have system/lirc as one of the DEPENDS line items?
Yes it does. So, the problem could be there when I built it last time. But I don't have any clue why it is failing. I tried to run 'make garchive' again, but after that same results. Your system is building ok latest code? If so, can you upload built to test?

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: building with old lirc

Post by Pablo » Fri Dec 31, 2010 10:50 pm

Try running 'make clean' in the gar-minimyth directory and then running 'make build' in the 'gar-minimyth/script/meta/minimyth' directory.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

m_kane
Contributor
Posts: 377
Joined: Sun Mar 25, 2007 8:32 pm

Re: building with old lirc

Post by m_kane » Sun Jan 02, 2011 11:22 am

Pablo wrote:Try running 'make clean' in the gar-minimyth directory and then running 'make build' in the 'gar-minimyth/script/meta/minimyth' directory.
I did that and build stops to same error. Can it be some kind of problem in my system? Hmm.. I will try with Centos next.

m_kane
Contributor
Posts: 377
Joined: Sun Mar 25, 2007 8:32 pm

Re: building with old lirc

Post by m_kane » Sun Jan 02, 2011 9:59 pm

Building with CentOs stops to different error:

Code: Select all

-redhat-linux/4.5.2/include" || //minimyth/minimyth-read-only/gar-minimyth/images/build/bin-build-system/mkdir -p "//minimyth/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i386-redhat-linux/4.5.2/include"
 //minimyth/minimyth-read-only/gar-minimyth/images/build/bin-build-system/install -c -m 644 omp.h '//minimyth/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i386-redhat-linux/4.5.2/include'
make[12]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/devel/gcc/work/build_build.d/gcc-4.5.2_build/i386-redhat-linux/libgomp'
make[11]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/devel/gcc/work/build_build.d/gcc-4.5.2_build/i386-redhat-linux/libgomp'
make[10]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/devel/gcc/work/build_build.d/gcc-4.5.2_build/i386-redhat-linux/libgomp'
make[9]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/devel/gcc/work/build_build.d/gcc-4.5.2_build'
make[8]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/devel/gcc/work/build_build.d/gcc-4.5.2_build'
echo " ==> Installing GPL2 license text"
 ==> Installing GPL2 license text
install -d //minimyth/minimyth-read-only/gar-minimyth/images/build/usr/licenses/gcc/
install -m 644 ../../licenses/GPL2.txt //minimyth/minimyth-read-only/gar-minimyth/images/build/usr/licenses/gcc/
mkdir -p cookies/build_build.d/. && date >> cookies/build_build.d/install-license-GPL2
echo " ==> Installing LGPL2_1 license text"
 ==> Installing LGPL2_1 license text
install -d //minimyth/minimyth-read-only/gar-minimyth/images/build/usr/licenses/gcc/
install -m 644 ../../licenses/LGPL2_1.txt //minimyth/minimyth-read-only/gar-minimyth/images/build/usr/licenses/gcc/
mkdir -p cookies/build_build.d/. && date >> cookies/build_build.d/install-license-LGPL2_1
        [install] complete for gcc.
make[7]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/devel/gcc'
make[5]: *** [../../lib/libgcc/cookies/build.d/install] Segmentation fault
make[5]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/lang/c'
make[4]: *** [imgdep-build] Error 2
make[4]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/lang/c'
make[3]: *** [../../lang/c/cookies/build.d/install] Error 2
make[3]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/utils/coreutils'
make[2]: *** [imgdep-build] Error 2
make[2]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/utils/coreutils'
make[1]: *** [../../utils/coreutils/cookies/build.d/install] Error 2
make[1]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/meta/minimyth'
make: *** [imgdep-build] Error 2
[morgan@localhost minimyth]$ 

As usual, I have no clue what is wrong.. :)

m_kane
Contributor
Posts: 377
Joined: Sun Mar 25, 2007 8:32 pm

Re: building with old lirc

Post by m_kane » Sun Jan 02, 2011 10:04 pm

If I try 'make build' again (without make clean) I get odd error:

Code: Select all

[morgan@localhost minimyth]$ make build
[===== NOW BUILDING:    minimyth-0.24.0-75      =====]
make[1]: Entering directory `/minimyth/minimyth-read-only/gar-minimyth/script/meta/minimyth'
[===== NOW BUILDING:    minimyth-0.24.0-75      =====]
        [fetch] complete for minimyth.
        [checksum] complete for minimyth.
        [extract] complete for minimyth.
        [patch] complete for minimyth.
        [configure] complete for minimyth.
        [build] complete for minimyth.
checking ...
  build system binaries ...
    'ar' (from package 'binutils')
error: your system does not contain the program 'ar' (from package 'binutils').
make[1]: *** [mm-all] Error 1
make[1]: Leaving directory `/minimyth/minimyth-read-only/gar-minimyth/script/meta/minimyth'
make: *** [pre-everything] Error 2
I have binutils and ar installed.. and build did not wheeze about it at first time..

m_kane
Contributor
Posts: 377
Joined: Sun Mar 25, 2007 8:32 pm

Re: building with old lirc

Post by m_kane » Thu Jan 20, 2011 2:29 pm

m_kane wrote:Pablo,

I tried to build latest code, because I saw that there is changes with lirc. But building stops with error:

Code: Select all

 ake[2]: Entering directory `/home/morgan/minimyth_build/minimyth-read-only/gar-minimyth/script/mediaplayers/xine-ui'
[===== NOW BUILDING:    xine-ui-3073    =====]
        [fetch] complete for xine-ui.
        [checksum] complete for xine-ui.
        [extract] complete for xine-ui.
 ==> Applying patch download/xine-ui-librt.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur xine-ui-3073-old/src/xitk/Makefile.am xine-ui-3073-new/src/xitk/Makefile.am
|--- xine-ui-3073-old/src/xitk/Makefile.am      2010-12-17 07:49:44.000000000 -0800
|+++ xine-ui-3073-new/src/xitk/Makefile.am      2010-12-17 07:49:48.000000000 -0800
--------------------------
File to patch: 
I have checked that patch files are in right place and symlinks too. I then removed xine-ui-librt.patch from makefile, but then it stops to next patch with same "not found" error.
I can't figure out what is wrong, because all files seem to be in place.. and names are correct too :(
Any thoughts what may be wrong? I'd like to get working build system, but this error is too mysterious to me. Files are in right place, but still error. I removed whole directory and made svn checkout, make garchive and make build. And it still stops to same error.

Could it have something to do with four lines at bottom of minimyth.conf.mk that I must comment out to get it start building??

edit:
removing xine patch files from makefile causes it to stop to next step, xine-lib erroring similar missing patchfiles.
So, I think there is some kind of "buffer overflow" somewhere??

Post Reply