Build error

Help with using MiniMyth's build system

Moderator: Pablo

Post Reply
pleeke
Contributor
Posts: 203
Joined: Thu Jun 30, 2005 10:25 pm

Build error

Post by pleeke » Tue Aug 14, 2012 5:42 pm

Hi,

I've been trying to build recent versons of Minimyth (have now been now trying svn9365), but have been hitting an error early on in the build process.

Code: Select all

install -d /home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/glibc-headers/cookies/main.d/sourcepkg-devel/glibc
	[fetch] complete for glibc.
 ==> Running checksum on glibc-2.16.0.tar.bz2
b1030e3c7150419bf8bd0ba0017cdbc7  download/glibc-2.16.0.tar.bz2
file glibc-2.16.0.tar.bz2 passes checksum test!
 ==> Running checksum on glibc-2.16.0-rpc_key_prot_h.patch
e02e88aaa252efe311b4cba47e8c3e1b  download/glibc-2.16.0-rpc_key_prot_h.patch
file glibc-2.16.0-rpc_key_prot_h.patch passes checksum test!
 ==> Running checksum on glibc-2.16.0-select_fd_type.patch
2ac15f6f50346a3dc9832ddffedb0b2e  download/glibc-2.16.0-select_fd_type.patch
file glibc-2.16.0-select_fd_type.patch passes checksum test!
 ==> Running checksum on glibc-2.16.0-build_lib.patch
8e3dee1a3b7ebca890e9ace899e06823  download/glibc-2.16.0-build_lib.patch
file glibc-2.16.0-build_lib.patch passes checksum test!
 ==> Running checksum on glibc-2.16.0-build_locale.patch
9bba48077b23fb0d7a874edf151b4b2f  download/glibc-2.16.0-build_locale.patch
file glibc-2.16.0-build_locale.patch passes checksum test!
 ==> Running checksum on glibc-2.16.0-build_sunrpc.patch
abad58f4d98120a14dca7f38b4e5e3e2  download/glibc-2.16.0-build_sunrpc.patch
file glibc-2.16.0-build_sunrpc.patch passes checksum test!
 ==> Running checksum on glibc-2.16.0-perl.patch.gar
8a184a36279a795aed1e64296c1a227a  download/glibc-2.16.0-perl.patch.gar
file glibc-2.16.0-perl.patch.gar passes checksum test!
 ==> Running checksum on glibc-2.16.0.patch
2b08f5abd20bb404fe573f22c48d8f60  download/glibc-2.16.0.patch
file glibc-2.16.0.patch passes checksum test!
 ==> Running checksum on glibc-2.16.0-ldd.patch
1b5ca78e5d2041ab8dea875c368f21f7  download/glibc-2.16.0-ldd.patch
file glibc-2.16.0-ldd.patch passes checksum test!
	[checksum] complete for glibc.
 ==> Extracting download/glibc-2.16.0.tar.bz2
	[extract] complete for glibc.
 ==> Applying patch download/glibc-2.16.0-rpc_key_prot_h.patch
patching file sunrpc/Makefile
 ==> Applying patch download/glibc-2.16.0-select_fd_type.patch
patching file misc/sys/select.h
 ==> Applying patch download/glibc-2.16.0-build_lib.patch
patching file Makefile.in
 ==> Applying patch download/glibc-2.16.0-build_locale.patch
patching file Makefile.in
 ==> Applying patch download/glibc-2.16.0-build_sunrpc.patch
patching file Makefile.in
 ==> Applying patch download/glibc-2.16.0-perl.patch.gar
patching file conform/conformtest.pl
patching file locale/gen-translit.pl
patching file manual/libm-err-tab.pl
patching file math/gen-libm-test.pl
patching file scripts/begin-end-check.pl
patching file scripts/test-installation.pl
 ==> Applying patch download/glibc-2.16.0.patch
patching file configure
 ==> Applying patch download/glibc-2.16.0-ldd.patch
patching file elf/ldd.bash.in
	[patch] complete for glibc.
make[18]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/glibc'
	[extract] complete for glibc-headers.
	[patch] complete for glibc-headers.
make[18]: Entering directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/glibc-headers'
make[18]: `../../kernel-headers/linux-headers/cookies/main.d/install' is up to date.
make[18]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/glibc-headers'
configure: loading cache config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-minimyth-linux-gnu
checking for x86_64-minimyth-linux-gnu-gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc... gcc
checking how to run the C preprocessor... gcc -E
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for sysdeps preconfigure fragments... x86_64 configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: $CXX
configure: error: unrecognized option: `-c'
Try `.//../../../work/main.d/glibc-2.16.0/configure --help' for more information
make[17]: *** [configure-custom] Error 1
make[17]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/glibc-headers'
make[16]: *** [../../devel/glibc-headers/cookies/main.d/install] Error 2
make[16]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/gcc-minimal-static'
make[15]: *** [imgdep-main] Error 2
make[15]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/gcc-minimal-static'
make[14]: *** [../../devel/gcc-minimal-static/cookies/build.d/install] Error 2
make[14]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/glibc-crtobjs'
make[13]: *** [imgdep-build] Error 2
make[13]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/glibc-crtobjs'
make[12]: *** [../../devel/glibc-crtobjs/cookies/main.d/install] Error 2
make[12]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/gcc-minimal-shared'
make[11]: *** [imgdep-main] Error 2
make[11]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/gcc-minimal-shared'
make[10]: *** [../../devel/gcc-minimal-shared/cookies/build.d/install] Error 2
make[10]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/glibc'
make[9]: *** [imgdep-build] Error 2
make[9]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/glibc'
make[8]: *** [../../devel/glibc/cookies/main.d/install] Error 2
make[8]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/gcc'
make[7]: *** [imgdep-main] Error 2
make[7]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/gcc'
make[6]: *** [build-custom] Error 2
make[6]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/lib/libgcc'
make[5]: *** [../../lib/libgcc/cookies/main.d/install] Error 2
make[5]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/lang/c'
make[4]: *** [imgdep-main] Error 2
make[4]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/lang/c'
make[3]: *** [../../lang/c/cookies/main.d/install] Error 2
make[3]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/system/acpid'
make[2]: *** [imgdep-main] Error 2
make[2]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/system/acpid'
make[1]: *** [../../system/acpid/cookies/main.d/install] Error 2
make[1]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/meta/minimyth'
make: *** [imgdep-main] Error 2
pleeke@backend:~/svnroot/minimyth/gar-minimyth/script/meta/minimyth$ 

I'm trying to build a 64bit version of Minimyth on a 64bit version of Ubuntu12.04 and building ver 0.25 of Mythtv. I've deleted my whole gar directory structure and started again, but get stuck at the same point.


Does anyone have any ideas whats going wrong?

Thanks
Peter

MainUser
New Member
Posts: 1
Joined: Sat Sep 08, 2012 12:58 pm

Re: Build error

Post by MainUser » Wed Oct 03, 2012 2:52 pm

Hi,

I've been seeing the same error trying to compile the latest Minimyth checkout with MythTV 0.26.

Is there any solution to this problem? Or is there a precompiled Minimyth version out there including MythTV 0.26?

Thanks
Felix

daschatten
Member
Posts: 15
Joined: Sat May 15, 2010 11:19 pm

Re: Build error

Post by daschatten » Fri Nov 16, 2012 4:36 pm

Hi,

same here. I try to build minimyth 81 (i386) with latest 0.25-fixes on a debian squeeze (64bit).

Error is the same:
[===== NOW BUILDING: glibc-headers-2.16.0 =====]
[fetch] complete for glibc-headers.
[checksum] complete for glibc-headers.
[extract] complete for glibc-headers.
[patch] complete for glibc-headers.
configure: loading cache config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... i586-minimyth-linux-gnu
checking for i586-minimyth-linux-gnu-gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc... gcc
checking how to run the C preprocessor... gcc -E
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for sysdeps preconfigure fragments... x86_64 configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: $CXX
configure: error: unrecognized option: `-c'
Try `.//../../../work/main.d/glibc-2.16.0/configure --help' for more information
make[17]: *** [configure-custom] Error 1
make[17]: Leaving directory `/var/data/user/flo/dev/minimyth/gar-minimyth-0.25.2-81/script/devel/glibc-headers'
[...some more errors...]
make[1]: Leaving directory `/var/data/user/flo/dev/minimyth/gar-minimyth-0.25.2-81/script/meta/minimyth'
make: *** [imgdep-main] Error 2
Maybe someone who successfully built a minimyth image can give us some information what build system was used. I try to automate the build process because it's useful for me to have the newest versions (0.25-fixes and 0.26-fixes) available.

@Pablo: Can you give us some hints please?

Thanks,
daschatten

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

Re: Build error

Post by Pablo » Sun Dec 16, 2012 10:40 pm

In general, when I see problems when running autotools' configure script on either Debian or Ubuntu, my first thought is that it is the result of Debian (and Debian derived distributions such as Ubuntu) linking /bin/sh to the non-Posix compliant shell dash.

By changing /bin/sh from linking to bash to linking to dash, I have confirmed that this is the problem. I have committed a fix to SVN and it will be in the next release. The work around is the same work around I have used for many other packages (MiniMyth builds a patched version of autoconf that results in the generated configure using MiniMyth compiled base rather than dash. However, I had not modified the devel/glibc* packat Makefiles to regenerate configure. I have fixed that now.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

daschatten
Member
Posts: 15
Joined: Sat May 15, 2010 11:19 pm

Re: Build error

Post by daschatten » Tue Dec 18, 2012 10:54 pm

Thank you, Pablo!

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

Re: Build error

Post by Pablo » Sat Dec 22, 2012 4:22 am

The fix is in test build 83b1.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply