Desperate vith build errors..

Help with using MiniMyth's build system

Moderator: Pablo

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

Desperate vith build errors..

Post by m_kane » Mon Jan 24, 2011 5:15 pm

I am a little desperate, because I can't get minimyth to build.

First I tried to build with my opensuse 11.1 ==>

- Need to comment four last lines of minimyth.conf.mk to get building start, otherwise I get this odd "too many files open"-error :

Code: Select all

/bin/sh: pipe error: Too many open files
/bin/sh: pipe error: Too many open files
/bin/sh: pipe error: Too many open files
/bin/sh: pipe error: Too many open files
/bin/sh: pipe error: Too many open files
I tried to increase user and filesystem max open files because it errored about it. I had max 65500 files for user and 368000 files for os, but it still didn't start to compile.

- After building over night, it stops in error that it can't find file to patch (xine-ui):

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: 
After that I tried with my CentOs virtual machine. ==>

- I also needed to comment four last lines of minimyth.conf.mk
- It stops with different error I can't find what is causing it:

Code: Select all

==> 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]$ 
Third, I installed new debian system and installed depedencies. ==>

- Also needed comment out four last lines of minimyth.conf.mk
- Building stops with same patch error:

Code: Select all

 ==> Running checksum on xine-ui-xtest_disable.patch
cb872e135776c91c12357393232a5034  download/xine-ui-xtest_disable.patch
file xine-ui-xtest_disable.patch passes checksum test!
 ==> Running checksum on xine-ui-desktop_disable.patch
6f8d2c49c2a8a28f0e5f9369047ea94d  download/xine-ui-desktop_disable.patch
file xine-ui-desktop_disable.patch passes checksum test!
	[checksum] complete for xine-ui.
install -d work/main.d
 ==> Extracting download/xine-ui-3074.tar.bz2
	[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 double checked that patches are in place. Also, if I comment those patch files in makefile, it just stops to next patch. I feel like it has some buffer ran full, but I don't have a clue what it might be.
I have ran "make clean", I have loaded everything from svn three times and also made "make garchive" three times, to get clean build system for each machine.

I can't think anything else I could try.

Have you others have success with build?

My goal is to build minimyth with xorg 7.4 to get my one frontend to work. I'm not even sure that it is xorg, but frontend loads everything ok, but no picture to tv, it instead says "no signal" and goes to sleep. I of cource have tried different modelines and MM_X_DRIVER and MM_X_OUTPUT variables. It works fine with my old 0.21 minimyth..

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

Re: Desperate vith build errors..

Post by m_kane » Mon Jan 24, 2011 5:17 pm

This is my minimyth.conf.mk:

Code: Select all

#-------------------------------------------------------------------------------
# Values in this file can be overridden by including the desired value in
# '$(HOME)/.minimyth/minimyth.conf.mk'.
#-------------------------------------------------------------------------------
-include $(HOME)/.minimyth/minimyth.conf.mk

# The version of MiniMyth.
mm_VERSION                ?= $(mm_VERSION_MYTH)-$(mm_VERSION_MINIMYTH)$(mm_VERSION_EXTRA)
mm_VERSION_MYTH           ?= $(strip \
                                $(if $(filter 0.22  ,$(mm_MYTH_VERSION)),0.22.0) \
                                $(if $(filter 0.23  ,$(mm_MYTH_VERSION)),0.23.1) \
                                $(if $(filter 0.24  ,$(mm_MYTH_VERSION)),0.24.0) \
                                $(if $(filter master,$(mm_MYTH_VERSION)),master) \
                              )
mm_VERSION_MINIMYTH       ?= 75
mm_VERSION_EXTRA          ?= $(strip \
                                $(if $(filter yes,$(mm_DEBUG)),-debug) \
                              )

# Configuration file (minimyth.conf) version.
mm_CONF_VERSION           ?= 57

#-------------------------------------------------------------------------------
# Variables that you are likely to be override based on your environment.
#-------------------------------------------------------------------------------
# Indicates whether or not to enable debugging in the image.
# Valid values for mm_DEBUG are 'yes' and 'no'.
mm_DEBUG                  ?= no
# Indicates whether or not to enable debugging in the build system.
# Valid values for mm_DEBUG_BUILD are 'yes' and 'no'.
mm_DEBUG_BUILD            ?= no
# Lists the graphics drivers supported.
# Valid values for mm_GRAPHICS are one or more of 'intel', 'geode', 'nouveau',
# 'nvidia', 'openchrome', 'radeon', 'savage', 'sis', and 'vmware'.
mm_GRAPHICS               ?= intel \
                             $(if $(filter $(mm_GARCH_FAMILY),i386),geode) \
                             nouveau \
                             nvidia \
# Lists the software to be supported.
# Valid values for MM_SOFTWARE are zero or more of 'mythbrowser', 'mythgallery',
# 'mythgame', 'mythmusic', 'mythnetvision', 'mythnews', 'mythstream',
# 'mythvideo', 'mythweather', 'mythzoneminder', 'flash', 'hulu', 'mplayer-svn',
# 'mplayer-vld', 'vlc' 'xine', 'transcode', 'mame', 'bdremote', 'wiimote',
# 'backend','python', 'debug'.
mm_SOFTWARE               ?= mythbrowser \
                             mythgallery \
                             mythgame \
                             mythmusic \
                             $(if $(filter-out $(mm_MYTH_VERSION),0.22),mythnetvision) \
                             mythnews \
                             mythstream \
                             mythvideo \
                             mythweather \
                             mythzoneminder \
                             flash \
                             mplayer-svn \
                             mplayer-vld \
                             vlc \
                             xine \
                             python \
                             $(if $(filter $(mm_DEBUG),yes),debug)
# Indicates the microprocessor architecture.
# Valid values for mm_GARCH are 'atom', 'c3', 'c3-2', 'pentium-mmx' and 'x86-64'.
mm_GARCH                  ?= pentium-mmx
# Indicates whether or not to create the RAM based part of the distribution.
mm_DISTRIBUTION_RAM       ?= yes
# Indicates whether or not to create the NFS based part of the distribution.
mm_DISTRIBUTION_NFS       ?= no
# Indicates whether or not to create the local distribution.
mm_DISTRIBUTION_LOCAL     ?= no
# Indicates whether or not to create the share distribution.
mm_DISTRIBUTION_SHARE     ?= no
# Indicates whether or not to install the MiniMyth files needed to network boot
# with a RAM root file system. This will cause files to be installed in
# directory $(mm_TFTP_ROOT)/minimyth-$(mm_VERSION)/.
# Valid values for mm_INSTALL_RAM_BOOT are 'yes' and 'no'.
mm_INSTALL_RAM_BOOT       ?= no
# Indicates whether or not to install the MiniMyth files needed to network boot
# with an NFS root file system. This will cause files to be installed in
# directories $(mm_TFTP_ROOT)/minimyth-$(mm_VERSION) and
# $(mm_NFS_ROOT)/minimyth-$(mm_VERSION).
# Valid values for mm_INSTALL_NFS_BOOT are 'yes' and 'no'.
mm_INSTALL_NFS_BOOT       ?= no
# Indicates whether or not to install the MiniMyth files needed to run the
# mm_local_install and mm_local_update. These files will be installed in
# directory $(mm_TFTP_ROOT)/latest so that they can be downloaded via TFTP. It
# is called latest because that is the directory name used in the public
# MiniMyth distribution download directory.
# Valid values for mm_INSTALL_LATEST are 'yes' and 'no'.
mm_INSTALL_LATEST         ?= no
# Indicates the directory where the GAR MiniMyth build system is installed.
mm_HOME                   ?= $(HOME)/minimyth_build/minimyth-read-only/gar-minimyth
# Indicates the pxeboot TFTP directory.
# The MiniMyth kernel, the MiniMyth file system image and MiniMyth themes are
# installed in this directory. The files will be installed in a subdirectory
# named 'minimyth-$(mm_VERSION)'.
mm_TFTP_ROOT              ?= /var/tftpboot/minimyth
# Indicates the directory in which the directory containing the MiniMyth root
# file system for mounting using NFS. The MiniMyth root file system will be
# installed in a subdirectory named 'minimyth-$(mm_VERSION)'.
mm_NFS_ROOT               ?= /home/public/minimyth
# The version of kernel headers to use.
# Valid values are '2.6.37'.
mm_KERNEL_HEADERS_VERSION ?= 2.6.37
# The version of kernel to use.
# Valid values are '2.6.37'.
mm_KERNEL_VERSION         ?= 2.6.37
# The kernel configuration file to use.
# When set, the kernel configuration file $(HOME)/.minimyth/$(mm_KERNEL_CONFIG) will be used.
# When not set, a built-in kernel configuration file will be used.
mm_KERNEL_CONFIG          ?=
# The version of Myth to use.
# Valid values are '0.22', '0.23', '0.24' and 'master'.
mm_MYTH_VERSION           ?= 0.24
# The version of the NVIDIA driver.
# Valid values are '96.43.19' (legacy), '173.14.28' (legacy), '260.19.36'.
mm_NVIDIA_VERSION         ?= 260.19.36
# The version of xorg to use.
# Valid values are '7.4' and '7.6'.
mm_XORG_VERSION           ?= 7.4
# MythTV master version built. If the version changes too much then the patches
# may no longer work. The version string format is:
# master-<date>-<mythtv-git-commit>-<myththemes-git-commit>, where <date> has
# the format YYYYMMDD.
mm_MYTHTV_MASTER_VERSION  ?= master-20110114-5707d26-45d6b63
# Lists additional packages to build when minimyth is built.
mm_USER_PACKAGES          ?=
# Lists additional binaries to include in the MiniMyth image
# by adding to the lists found in minimyth-bin-list* and bins-share-list files.
mm_USER_BIN_LIST          ?=
# Lists additional configs to include in the MiniMyth image
# by adding to the lists found in minimyth-etc-list* and extras-etc-list files.
mm_USER_ETC_LIST          ?=
# Lists additional libraries to include in the MiniMyth image
# by adding to the lists found in minimyth-lib-list* and extras-lib-list files.
mm_USER_LIB_LIST          ?=
# Lists additional files to remove from the MiniMyth image
# by adding to the lists found in minimyth-remove-list* and extras-remote-list files.
mm_USER_REMOVE_LIST       ?=
# Lists additional data to include in the MiniMyth image
# by adding to the lists found in minimyth-share-list* and extras-share-list files.
mm_USER_SHARE_LIST        ?=

#-------------------------------------------------------------------------------
# Variables that you are not likely to override.
#-------------------------------------------------------------------------------
mm_GARCH_FAMILY           ?= $(strip \
                                 $(if $(filter atom       ,$(mm_GARCH)),x86_64) \
                                 $(if $(filter c3         ,$(mm_GARCH)),i386  ) \
                                 $(if $(filter c3-2       ,$(mm_GARCH)),i386  ) \
                                 $(if $(filter pentium-mmx,$(mm_GARCH)),i386  ) \
                                 $(if $(filter x86-64     ,$(mm_GARCH)),x86_64) \
                              )
mm_GARHOST                ?= $(strip \
                                 $(if $(filter atom       ,$(mm_GARCH)),x86_64) \
                                 $(if $(filter c3         ,$(mm_GARCH)),i586  ) \
                                 $(if $(filter c3-2       ,$(mm_GARCH)),i586  ) \
                                 $(if $(filter pentium-mmx,$(mm_GARCH)),i586  ) \
                                 $(if $(filter x86-64     ,$(mm_GARCH)),x86_64) \
                              )-minimyth-linux-gnu
mm_CFLAGS                 ?= $(strip \
                                 -pipe                                                                                       \
                                 $(if $(filter atom        ,$(mm_GARCH)),-march=atom        -mtune=atom    -O2 -mfpmath=sse -ftree-vectorize -mmovbe) \
                                 $(if $(filter c3          ,$(mm_GARCH)),-march=c3          -mtune=c3      -Os             ) \
                                 $(if $(filter c3-2        ,$(mm_GARCH)),-march=c3-2        -mtune=c3-2    -Os -mfpmath=sse) \
                                 $(if $(filter pentium-mmx ,$(mm_GARCH)),-march=pentium-mmx -mtune=generic -Os             ) \
                                 $(if $(filter x86-64      ,$(mm_GARCH)),-march=x86-64      -mtune=generic -O3 -mfpmath=sse) \
                                 -ftree-loop-distribution                                                                    \
                                 -floop-interchange                                                                          \
                                 -floop-strip-mine                                                                           \
                                 -floop-block                                                                                \
                                 -fgraphite-identity                                                                         \
                                 -flto                                                                                       \
                                 $(if $(filter i386  ,$(mm_GARCH_FAMILY)),-m32)                                              \
                                 $(if $(filter x86_64,$(mm_GARCH_FAMILY)),-m64)                                              \
                                 $(if $(filter yes,$(mm_DEBUG)),-g)                                                          \
                              )
mm_CXXFLAGS               ?= $(mm_CFLAGS)
mm_DESTDIR                ?= $(mm_HOME)/images/mm

#-------------------------------------------------------------------------------
# Variables that you cannot override.
#-------------------------------------------------------------------------------
# Set the language for gettext to English so the configure scripts for packages
# such as lib/libjpeg do not yield incorrect results.
LANGUAGE=en
export LANGUAGE

# Stop attempts to check out patches from perforce.
PATCH_GET=0
export PATCH_GET

# Set the number of parallel makes to the number of processors.
PARALLELMFLAGS=-j$(shell cat /proc/cpuinfo | grep -c '^processor[[:cntrl:]]*:')
export PARALLELMFLAGS

# Get rid of Qt environment variables
#$(foreach var, $(shell set | grep '^QMAKE' | sed 's%=.*$$%%'), $(eval $(var) :=))
#$(foreach var, $(shell set | grep '^QMAKE' | sed 's%=.*$$%%'), $(eval unexport $(var)))
#$(foreach var, $(shell set | grep '^QT' | sed 's%=.*$$%%'), $(eval $(var) :=))
#$(foreach var, $(shell set | grep '^QT' | sed 's%=.*$$%%'), $(eval unexport $(var)))

Post Reply