Minimyth build with Ubuntu 11.04

Help with using MiniMyth's build system

Moderator: Pablo

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

Minimyth build with Ubuntu 11.04

Post by pleeke » Sun May 15, 2011 9:28 pm

Hi,

Is anyone able to build current MM with Ubuntu 11.04?

I've upgraded to Ubuntu 11.04 by re-installing (new h/disk was needed anyway, so why not....) my myth backend & Minimyth build server and am unable to build MM any more. I've run into a few build issues when trying to build latest MM svn. Maybe I'm missing a few packages but I'm beginning to think that changes in Ubuntu are causing some incompatibility issues with current MM.

The first issue was related to not finding errno.h which I "fixed" with this;
sudo ln -s /usr/src/linux-headers-2.6.38-8/include/asm-generic/ /usr/include/asm
(may not be the right fix/ causing other issues, but was all I could find through google at the time...)



My 2nd (& main - if the above fix is not too bad ;-)) issue is related to this error;
/home/pleeke/svnroot/minimyth/gar-minimyth/images/build/usr/x86_64-linux-gnu/bin/ranlib libgcc_eh.a
# @multilib_flags@ is still needed because this may use
# /home/pleeke/svnroot/minimyth/gar-minimyth/script/devel-tainted/gcc/work/build_build.d/gcc-4.5.3_build/./gcc/xgcc -B/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel-tainted/gcc/work/build_build.d/gcc-4.5.3_build/./gcc/ -B/home/pleeke/svnroot/minimyth/gar-minimyth/images/build/usr/x86_64-linux-gnu/bin/ -B/home/pleeke/svnroot/minimyth/gar-minimyth/images/build/usr/x86_64-linux-gnu/lib/ -isystem /home/pleeke/svnroot/minimyth/gar-minimyth/images/build/usr/x86_64-linux-gnu/include -isystem /home/pleeke/svnroot/minimyth/gar-minimyth/images/build/usr/x86_64-linux-gnu/sys-include and -O2 -g -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED directly.
# @multilib_dir@ is not really necessary, but sometimes it has
# more uses than just a directory name.
/bin/sh ../.././/../../../work/build_build.d/gcc-4.5.3/libgcc/../mkinstalldirs .
/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel-tainted/gcc/work/build_build.d/gcc-4.5.3_build/./gcc/xgcc -B/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel-tainted/gcc/work/build_build.d/gcc-4.5.3_build/./gcc/ -B/home/pleeke/svnroot/minimyth/gar-minimyth/images/build/usr/x86_64-linux-gnu/bin/ -B/home/pleeke/svnroot/minimyth/gar-minimyth/images/build/usr/x86_64-linux-gnu/lib/ -isystem /home/pleeke/svnroot/minimyth/gar-minimyth/images/build/usr/x86_64-linux-gnu/include -isystem /home/pleeke/svnroot/minimyth/gar-minimyth/images/build/usr/x86_64-linux-gnu/sys-include -O2 -g -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -g -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _enable_execute_stack_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _bswapsi2_s.o _bswapdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o addtf3_s.o divtf3_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o getf2_s.o letf2_s.o eqtf2_s.o _divtc3_s.o _multc3_s.o _powitf2_s.o unwind-dw2_s.o unwind-dw2-fde-glibc_s.o unwind-sjlj_s.o gthr-gnat_s.o unwind-c_s.o emutls_s.o -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
/home/pleeke/svnroot/minimyth/gar-minimyth/images/build/usr/x86_64-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[26]: *** [libgcc_s.so] Error 1
make[26]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel-tainted/gcc/work/build_build.d/gcc-4.5.3_build/x86_64-linux-gnu/libgcc'
make[25]: *** [all-stage1-target-libgcc] Error 2
make[25]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel-tainted/gcc/work/build_build.d/gcc-4.5.3_build'
This link suggests the error is due to a missing libc.so file
http://groups.google.com/group/golang- ... 3398bc6fb

But I have the libc.so in the /usr/lib/x86_64-linux-gnu location, rather than the /usr/lib/ as MM seems to look/expect for it.

This link seems to describe the problem I'm seeing;
http://ahmadzawawi.blogspot.com/2011/0 ... ral/57969

...but its beyond me to understand how to fix it.





Any ideas how to get MM to look at the /usr/lib/x86_64-linux-gnu path for the necessary libraries for this Ubuntu-ism (or am I missing something obvious as I've been looking at this for a while now)?



Thanks
Peter

vdkuil
Member
Posts: 10
Joined: Sun Jul 09, 2006 1:56 pm

Re: Minimyth build with Ubuntu 11.04

Post by vdkuil » Tue Jun 21, 2011 2:49 pm

Hi,

I am running into the same problem. Did you by any chance find a solution for this?

Thanks
Roy

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

Re: Minimyth build with Ubuntu 11.04

Post by Pablo » Tue Jun 21, 2011 5:02 pm

With SVN commit 8239, I have changed devel-tainted/binutils and devel/binutils so that it should look for libraries in Ubuntu 11.04's new multiarch library directories. Could someone give it a try and let me know whether or not it fixes the problem?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

vdkuil
Member
Posts: 10
Joined: Sun Jul 09, 2006 1:56 pm

Re: Minimyth build with Ubuntu 11.04

Post by vdkuil » Wed Jun 22, 2011 3:26 pm

Hi,
Thanks for your quick reply!
But unfortunately I am still getting the same error.
I am using svn version:

svn log | head
------------------------------------------------------------------------
r8241 | pebender | 2011-06-22 00:04:55 +0200 (Wed, 22 Jun 2011) | 3 lines

- Updated package utils/grep.

I have removed the entire svn folder and did a clean checkout to make sure nothing was left behind.

-Roy

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

Re: Minimyth build with Ubuntu 11.04

Post by Pablo » Thu Jun 23, 2011 3:45 am

Well, it looks like is should install Ubuntu 11.04. I have a machine that is currently running Fedora 15 that I have been planning to switch to Scientific Linux 6, so I can install Ubuntu 11.04 on that temporarily.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

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

Re: Minimyth build with Ubuntu 11.04

Post by pleeke » Thu Jun 23, 2011 3:22 pm

Pablo,

Thanks for looking at this. I think its fixed the issue for gcc (can't be 100% as the build log has wrapped off the screen), but I now get an error with building perl (maybe perl gets built as a dependency of gcc bits, maybe it just follows as a dependency of something else?).

Anyway here is the end of the build log from 8242;

Code: Select all

make[22]: Entering directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl/work/build.d/perl-5.12.3'
echo Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH myconfig.SH writemain.SH pod/Makefile.SH | tr ' ' '\n' >.shlist
make[22]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl/work/build.d/perl-5.12.3'
Updating makefile...
test -s perlmain.c && touch perlmain.c
cd x2p; make depend
make[22]: Entering directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl/work/build.d/perl-5.12.3/x2p'
sh ../makedepend MAKE=make
make[23]: Entering directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl/work/build.d/perl-5.12.3/x2p'
echo hash.c  str.c util.c walk.c | tr ' ' '\n' >.clist
make[23]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl/work/build.d/perl-5.12.3/x2p'
Finding dependencies for hash.o.
Finding dependencies for str.o.
Finding dependencies for util.o.
Finding dependencies for walk.o.
make[23]: Entering directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl/work/build.d/perl-5.12.3/x2p'
echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist
make[23]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl/work/build.d/perl-5.12.3/x2p'
Updating makefile...
make[22]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl/work/build.d/perl-5.12.3/x2p'
make[21]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl/work/build.d/perl-5.12.3'
        [configure] complete for perl.
 ==> Running make in work/build.d/perl-5.12.3
make[21]: Entering directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl/work/build.d/perl-5.12.3'
`sh  cflags "optimize=''" miniperlmain.o`  miniperlmain.c
`sh  cflags "optimize=''" gv.o`  gv.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" toke.o`  toke.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" perly.o`  perly.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" pad.o`  pad.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" regcomp.o`  regcomp.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" dump.o`  dump.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" util.o`  util.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" mg.o`  mg.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" reentr.o`  reentr.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" mro.o`  mro.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" hv.o`  hv.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" av.o`  av.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" run.o`  run.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" pp_hot.o`  pp_hot.c
`sh  cflags "optimize=''" sv.o`  sv.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" pp.o`  pp.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
pp.c: In function 'Perl_pp_not':
pp.c:2488:31: warning: identifier "not" is a special operator name in C++
pp.c: In function 'Perl_pp_complement':
pp.c:2495:37: warning: identifier "compl" is a special operator name in C++
`sh  cflags "optimize=''" scope.o`  scope.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" pp_ctl.o`  pp_ctl.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" pp_sys.o`  pp_sys.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
pp_sys.c: In function 'Perl_pp_getpriority':
pp_sys.c:4422:5: warning: enum conversion when passing argument 1 of 'getpriority' is invalid in C++
//usr/include/sys/resource.h:94:12: note: expected '__priority_which_t' but argument is of type 'int'
pp_sys.c: In function 'Perl_pp_setpriority':
pp_sys.c:4438:5: warning: enum conversion when passing argument 1 of 'setpriority' is invalid in C++
//usr/include/sys/resource.h:98:12: note: expected '__priority_which_t' but argument is of type 'int'
`sh  cflags "optimize=''" doop.o`  doop.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" doio.o`  doio.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" regexec.o`  regexec.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" utf8.o`  utf8.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" taint.o`  taint.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" deb.o`  deb.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" universal.o`  universal.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" generate_uudmap.o`  generate_uudmap.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" perlio.o`  perlio.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" perlapi.o`  perlapi.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" numeric.o`  numeric.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" mathoms.o`  mathoms.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" locale.o`  locale.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" pp_pack.o`  pp_pack.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" pp_sort.o`  pp_sort.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize=''" opmini.o`  -DPERL_EXTERNAL_GLOB opmini.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
pp_pack.c: In function 'S_unpack_rec':
pp_pack.c:1228:9: warning: 'sv' may be used uninitialized in this function
pp_pack.c:1561:12: warning: 'str' may be used uninitialized in this function
`sh  cflags "optimize=''" perlmini.o`  -DPERL_IS_MINIPERL perlmini.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
//home/pleeke/svnroot/minimyth/gar-minimyth/images/build/bin-build-system/ln -s perl5123delta.pod pod/perldelta.pod
cp ext/re/re.pm lib/re.pm
sh writemain DynaLoader.o lib/auto/attributes/attributes.a lib/auto/B/B.a lib/auto/Compress/Raw/Bzip2/Bzip2.a lib/auto/Compress/Raw/Zlib/Zlib.a lib/auto/Cwd/Cwd.a lib/auto/Data/Dumper/Dumper.a lib/auto/Devel/DProf/DProf.a lib/auto/Devel/Peek/Peek.a lib/auto/Devel/PPPort/PPPort.a lib/auto/Digest/MD5/MD5.a lib/auto/Digest/SHA/SHA.a lib/auto/Encode/Encode.a lib/auto/Fcntl/Fcntl.a lib/auto/File/Glob/Glob.a lib/auto/Filter/Util/Call/Call.a lib/auto/Hash/Util/Util.a lib/auto/Hash/Util/FieldHash/FieldHash.a lib/auto/I18N/Langinfo/Langinfo.a lib/auto/IO/IO.a lib/auto/IPC/SysV/SysV.a lib/auto/List/Util/Util.a lib/auto/Math/BigInt/FastCalc/FastCalc.a lib/auto/MIME/Base64/Base64.a lib/auto/mro/mro.a lib/auto/Opcode/Opcode.a lib/auto/PerlIO/encoding/encoding.a lib/auto/PerlIO/scalar/scalar.a lib/auto/PerlIO/via/via.a lib/auto/POSIX/POSIX.a lib/auto/re/re.a lib/auto/SDBM_File/SDBM_File.a lib/auto/Socket/Socket.a lib/auto/Storable/Storable.a lib/auto/Sys/Hostname/Hostname.a lib/auto/Sys/Syslog/Syslog.a lib/auto/Text/Soundex/Soundex.a lib/auto/threads/threads.a lib/auto/threads/shared/shared.a lib/auto/Time/HiRes/HiRes.a lib/auto/Time/Piece/Piece.a lib/auto/Unicode/Normalize/Normalize.a > perlmain.c
`sh  cflags "optimize=''" op.o`  op.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
gcc -o generate_uudmap -Wl,--as-needed -fstack-protector generate_uudmap.o
`sh  cflags "optimize=''" perlmain.o`  perlmain.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
./generate_uudmap uudmap.h bitcount.h
`sh  cflags "optimize=''" globals.o`  globals.c
          CCCMD =  gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -pipe -O2 -mtune=generic -m64 -fno-strict-aliasing -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -std=c89   -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
gcc -Wl,--as-needed -fstack-protector -o miniperl \
              gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o   \
            miniperlmain.o opmini.o perlmini.o
util.o: In function `Perl_safesysmalloc':
util.c:(.text+0x558): undefined reference to `pthread_getspecific'
util.o: In function `Perl_safesysrealloc':
util.c:(.text+0x5f0): undefined reference to `pthread_getspecific'
util.o: In function `Perl_croak_nocontext':
util.c:(.text+0x19a8): undefined reference to `pthread_getspecific'
util.o: In function `Perl_safesyscalloc':
util.c:(.text+0x1a00): undefined reference to `pthread_getspecific'
util.o: In function `Perl_die_nocontext':
util.c:(.text+0x1ee9): undefined reference to `pthread_getspecific'
util.o:util.c:(.text+0x2028): more undefined references to `pthread_getspecific' follow
util.o: In function `Perl_set_context':
util.c:(.text+0x3c0e): undefined reference to `pthread_setspecific'
util.o: In function `Perl_my_snprintf':
util.c:(.text+0x6c27): undefined reference to `pthread_getspecific'
util.o: In function `Perl_my_vsnprintf':
util.c:(.text+0x6ce0): undefined reference to `pthread_getspecific'
util.o: In function `Perl_get_context':
util.c:(.text+0x3bf7): undefined reference to `pthread_getspecific'
mg.o: In function `Perl_csighandler':
mg.c:(.text+0x23ea): undefined reference to `pthread_getspecific'
mg.o: In function `Perl_sighandler':
mg.c:(.text+0x6150): undefined reference to `pthread_getspecific'
reentr.o:reentr.c:(.text+0x3eb): more undefined references to `pthread_getspecific' follow
sv.o: In function `perl_clone':
sv.c:(.text+0xbed2): undefined reference to `pthread_setspecific'
sv.o: In function `Perl_sv_setpvf_mg_nocontext':
sv.c:(.text+0x13d37): undefined reference to `pthread_getspecific'
sv.o: In function `Perl_sv_setpvf_nocontext':
sv.c:(.text+0x13ee7): undefined reference to `pthread_getspecific'
sv.o: In function `Perl_newSVpvf_nocontext':
sv.c:(.text+0x140d8): undefined reference to `pthread_getspecific'
sv.o: In function `Perl_sv_catpvf_mg_nocontext':
sv.c:(.text+0x142b7): undefined reference to `pthread_getspecific'
sv.o: In function `Perl_sv_catpvf_nocontext':
sv.c:(.text+0x146c7): undefined reference to `pthread_getspecific'
pp.o: In function `Perl_pp_pow':
pp.c:(.text+0x35f0): undefined reference to `pow'
pp.o: In function `Perl_pp_modulo':
pp.c:(.text+0x440e): undefined reference to `floor'
pp.c:(.text+0x4442): undefined reference to `floor'
pp.c:(.text+0x482b): undefined reference to `fmod'
pp.o: In function `Perl_pp_atan2':
pp.c:(.text+0x965f): undefined reference to `atan2'
pp.o: In function `Perl_pp_sin':
pp.c:(.text+0x980a): undefined reference to `sin'
pp.o: In function `Perl_pp_int':
pp.c:(.text+0x9c61): undefined reference to `floor'
pp.c:(.text+0x9d61): undefined reference to `ceil'
pp.o:(.rodata+0x280): undefined reference to `cos'
pp.o:(.rodata+0x288): undefined reference to `sin'
pp.o:(.rodata+0x290): undefined reference to `sin'
pp.o:(.rodata+0x298): undefined reference to `exp'
pp.o:(.rodata+0x2a0): undefined reference to `log'
pp.o:(.rodata+0x2a8): undefined reference to `sqrt'
pp_sys.o: In function `S_gmtime64_r.clone.0':
pp_sys.c:(.text+0x105): undefined reference to `ceil'
pp_sys.c:(.text+0x15e): undefined reference to `ceil'
pp_sys.c:(.text+0x1b9): undefined reference to `ceil'
pp_sys.c:(.text+0x26a): undefined reference to `floor'
pp_sys.c:(.text+0x3bf): undefined reference to `ceil'
pp_sys.c:(.text+0x559): undefined reference to `floor'
pp_sys.c:(.text+0x5a9): undefined reference to `floor'
pp_sys.c:(.text+0x5cf): undefined reference to `floor'
pp_sys.c:(.text+0x658): undefined reference to `fmod'
pp_sys.c:(.text+0x682): undefined reference to `fmod'
pp_sys.c:(.text+0x6ac): undefined reference to `fmod'
pp_sys.c:(.text+0x6d8): undefined reference to `fmod'
pp_sys.o: In function `Perl_pp_gmtime':
pp_sys.c:(.text+0xd576): undefined reference to `floor'
perlio.o: In function `PerlIO_debug':
perlio.c:(.text+0x77d): undefined reference to `pthread_getspecific'
perlio.c:(.text+0x834): undefined reference to `pthread_getspecific'
perlio.o: In function `PerlIOUnix_refcnt_dec':
perlio.c:(.text+0x4b0f): undefined reference to `pthread_getspecific'
perlio.o: In function `PerlIO_releaseFILE':
perlio.c:(.text+0x4f32): undefined reference to `pthread_getspecific'
perlio.o: In function `PerlIO_getname':
perlio.c:(.text+0x555b): undefined reference to `pthread_getspecific'
perlio.o:perlio.c:(.text+0x557f): more undefined references to `pthread_getspecific' follow
pp_pack.o: In function `S_pack_rec':
pp_pack.c:(.text+0x3887): undefined reference to `floor'
pp_pack.c:(.text+0x38b1): undefined reference to `floor'
pp_pack.c:(.text+0x38db): undefined reference to `floor'
opmini.o: In function `Perl_load_module_nocontext':
opmini.c:(.text+0xdb51): undefined reference to `pthread_getspecific'
perlmini.o: In function `perl_alloc':
perlmini.c:(.text+0x522): undefined reference to `pthread_setspecific'
perlmini.c:(.text+0x54f): undefined reference to `pthread_key_create'
perlmini.c:(.text+0x565): undefined reference to `pthread_setspecific'
perlmini.o: In function `perl_fini':
perlmini.c:(.text+0x677): undefined reference to `pthread_key_delete'
collect2: ld returned 1 exit status
make[21]: *** [miniperl] Error 1
make[21]: *** Waiting for unfinished jobs....
make[21]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl/work/build.d/perl-5.12.3'
make[20]: *** [build-work/build.d/perl-5.12.3/Makefile] Error 2
make[20]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/perl/perl'
make[19]: *** [../../perl/perl/cookies/build.d/install] Error 2
make[19]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/ppl'
make[18]: *** [imgdep-build] Error 2
make[18]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/ppl'
make[17]: *** [../../devel/ppl/cookies/build.d/install] Error 2
make[17]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/cloog-ppl'
make[16]: *** [imgdep-build] Error 2
make[16]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/cloog-ppl'
make[15]: *** [../../devel/cloog-ppl/cookies/build.d/install] Error 2
make[15]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/gcc'
make[14]: *** [imgdep-build] Error 2
make[14]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/gcc'
make[13]: *** [build-custom] Error 2
make[13]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/lib/libstdcxx'
make[12]: *** [../../lib/libstdcxx/cookies/build.d/install] Error 2
make[12]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/lang/cxx'
make[11]: *** [imgdep-build] Error 2
make[11]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/lang/cxx'
make[10]: *** [../../lang/cxx/cookies/build.d/install] Error 2
make[10]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/cloog-ppl'
make[9]: *** [imgdep-build] Error 2
make[9]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/cloog-ppl'
make[8]: *** [../../devel/cloog-ppl/cookies/build.d/install] Error 2
make[8]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/devel/gcc'
make[7]: *** [imgdep-build] 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/build.d/install] Error 2
make[5]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/lang/c'
make[4]: *** [imgdep-build] Error 2
make[4]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/lang/c'
make[3]: *** [../../lang/c/cookies/build.d/install] Error 2
make[3]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/utils/coreutils'
make[2]: *** [imgdep-build] Error 2
make[2]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/utils/coreutils'
make[1]: *** [../../utils/coreutils/cookies/build.d/install] Error 2
make[1]: Leaving directory `/home/pleeke/svnroot/minimyth/gar-minimyth/script/meta/minimyth'
make: *** [imgdep-build] Error 2

Thanks
Peter

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

Re: Minimyth build with Ubuntu 11.04

Post by Pablo » Fri Jun 24, 2011 9:47 pm

I have installed Ubuntu 11.04 and have begun building MiniMyth on it. As a result, I have fixed two addition bugs related to build in Ubuntu 11.04: SVN commit 8243 and SVN commit 8244. I have not finished compiling. However, as it has already finished compiling MythTV, there is a good chance that the build problems are fixed. Could someone give it a try and let me know whether or not they are still having compilation problems?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

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

Re: Minimyth build with Ubuntu 11.04

Post by pleeke » Sun Jun 26, 2011 8:14 am

Pablo,

Just built ver 8256, and MM now builds fine on Ubuntu 11.04 (64 bit host building 64bit MM).


Many thanks for your excellent work as always.
Peter

warpme
Contributor
Posts: 438
Joined: Fri Aug 26, 2005 8:17 pm

Re: Minimyth build with Ubuntu 11.04

Post by warpme » Fri Jul 01, 2011 9:31 pm

Pablo,
FYI
Above commits allows me to build 8272 on recent Archlinux without any LTO trimming (well...almost).
I had to disable LTO only 2 pkgs: libattr (linking stage) & busybox (compiler segfault).
Only issues I have:
-ssl sites in mythwebbrowser (reverting alone qt to 4.6.3 helps)
-flash: still don't know why it is not working
br

buggyde
New Member
Posts: 5
Joined: Tue Jul 19, 2011 11:44 am

Re: Minimyth build with Ubuntu 11.04

Post by buggyde » Wed Jul 20, 2011 3:17 pm

Hi,

I am getting problems when compiling

Code: Select all

In file included from ../include/tls.h:6:0,
                 from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:26,
                 from <stdin>:1:
../nptl/sysdeps/x86_64/tls.h:24:48: fatal error: asm/prctl.h: No such file or directory
compilation terminated.
make[7]: *** [/home/rdavis/dev/minimyth-source/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.2_build/tcb-offsets.h] Error 1
make[7]: *** Waiting for unfinished jobs....
In file included from ../include/tls.h:6:0,
                 from ../include/link.h:45,
                 from <stdin>:1:
../nptl/sysdeps/x86_64/tls.h:24:48: fatal error: asm/prctl.h: No such file or directory
compilation terminated.
I have done the link method shown in the first post as I was getting that error first.

I have checked out the latest svn. I dont have glibc or glibc-dev, but have libc6 and libc6-dev. I am not trying to use the X86_64 build, so I don't see why it needs to run that part.

I am running Ubuntu 11.04 64Bit.

Any help/ideas? Let me know if you need any more info.

Thanks,

buggyde
New Member
Posts: 5
Joined: Tue Jul 19, 2011 11:44 am

Re: Minimyth build with Ubuntu 11.04

Post by buggyde » Wed Jul 20, 2011 4:00 pm

Sorted it.

Seems that I had to install something not sure which package fixed it but I just installed everything to do with libc6 and the file(prctl.h) appeared.

Post Reply