make garchive xtrans error

Help with using MiniMyth's build system

Moderator: Pablo

Post Reply
Airic37
Member
Posts: 11
Joined: Thu Nov 13, 2008 1:43 am

make garchive xtrans error

Post by Airic37 » Wed Sep 22, 2010 6:45 pm

I'm guessing I'm doing something stupid, but I've tried this several times now with clean checkouts from several different svn revisions on two different machines and always get the below error when running make garchive. Any pointers would be appreciated.

Code: Select all

make[4]: Entering directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/xorg-7.5/xtrans'
make[4]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/xorg-7.5/xtrans'
        [fetch] complete for xtrans.
 ==> Running checksum on xtrans-1.2.5.tar.bz2
2d1e57e82acc5f21797e92341415af2f  download/xtrans-1.2.5.tar.bz2
file xtrans-1.2.5.tar.bz2 passes checksum test!
 ==> Running checksum on xtrans-1.2.5-abstract_only.patch
4d9077fec9fc33323b290ae1424adfdb  download/xtrans-1.2.5-abstract_only.patch
file xtrans-1.2.5-abstract_only.patch passes checksum test!
        [checksum] complete for xtrans.
cp -Lr download/xtrans-1.2.5.tar.bz2 /home/mythtv/minimyth-read-only/gar-minimyth/source/xtrans-1.2.5/xtrans-1.2.5.tar.bz2
cp: `download/xtrans-1.2.5.tar.bz2' and `/home/mythtv/minimyth-read-only/gar-minimyth/source/xtrans-1.2.5/xtrans-1.2.5.tar.bz2' are the same file
make[3]: *** [/home/mythtv/minimyth-read-only/gar-minimyth/source/xtrans-1.2.5/xtrans-1.2.5.tar.bz2] Error 1
make[3]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/xorg-7.5/xtrans'
make[2]: *** [garchive] Error 2
make[2]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/xorg-7.5'
make[1]: *** [garchive] Error 2
make[1]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script'
make: *** [garchive] Error 2

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

Re: make garchive xtrans error

Post by Pablo » Wed Sep 22, 2010 9:07 pm

Is it causing a problem.

This appears to be that gar-minimyth/script/xorg-7.5/xtrans/download/xtrans-1.2.5.tar.bz2 is a symlink to gar-minimyth/source/xtrans-1.2.5/xtrans-1.2.5.tar.bz2, so it will not copy it. The reason that you see this on a clean system is that gar-minimyth/script/xorg-7.4/xtrans/download/xtrans-1.2.5.tar.bz2 is garchived first so when gar-minimyth/script/xorg-7.5/xtrans/download/xtrans-1.2.5.tar.bz2 is encountered, it is already present in the local garchive directory.

I see these as well but they do not cause me any build problems.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Airic37
Member
Posts: 11
Joined: Thu Nov 13, 2008 1:43 am

Re: make garchive xtrans error

Post by Airic37 » Fri Sep 24, 2010 3:33 pm

Sorry, that was a red herring I guess. I was assuming that must have been the root cause of my build issues, but they are obviously unrelated. I've had a variety of build errors on my different attempts. Currently, I'm getting this...

Code: Select all

/home/mythtv/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i586-minimyth-linux-gnu/4.5.1/../../../../i586-minimyth-linux-gnu/bin/gold: error: /home/mythtv/minimyth-read-only/gar-minimyth/images/main/usr/lib/crti.o: multiple definition of '_fini'
/home/mythtv/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i586-minimyth-linux-gnu/4.5.1/../../../../i586-minimyth-linux-gnu/bin/gold: /home/mythtv/minimyth-read-only/gar-minimyth/images/main/usr/lib/crti.o: previous definition here
/home/mythtv/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i586-minimyth-linux-gnu/4.5.1/../../../../i586-minimyth-linux-gnu/bin/gold: error: /home/mythtv/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i586-minimyth-linux-gnu/4.5.1/crtbeginS.o: multiple definition of '__dso_handle'
/home/mythtv/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i586-minimyth-linux-gnu/4.5.1/../../../../i586-minimyth-linux-gnu/bin/gold: /home/mythtv/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i586-minimyth-linux-gnu/4.5.1/crtbeginS.o: previous definition here
/home/mythtv/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i586-minimyth-linux-gnu/4.5.1/../../../../i586-minimyth-linux-gnu/bin/gold: error: /home/mythtv/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i586-minimyth-linux-gnu/4.5.1/crtendS.o: multiple definition of '__DTOR_END__'
/home/mythtv/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i586-minimyth-linux-gnu/4.5.1/../../../../i586-minimyth-linux-gnu/bin/gold: /home/mythtv/minimyth-read-only/gar-minimyth/images/build/usr/lib/gcc/i586-minimyth-linux-gnu/4.5.1/crtendS.o: previous definition here
collect2: ld returned 1 exit status
make[10]: *** [libpcrecpp.la] Error 1
make[10]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/lib/pcre/work/main.d/pcre-8.10'
make[9]: *** [all] Error 2
make[9]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/lib/pcre/work/main.d/pcre-8.10'
make[8]: *** [build-work/main.d/pcre-8.10/Makefile] Error 2
make[8]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/lib/pcre'
make[7]: *** [../../lib/pcre/cookies/main.d/install] Error 2
make[7]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/gtk/glib'
make[6]: *** [imgdep-main] Error 2
make[6]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/gtk/glib'
make[5]: *** [../../gtk/glib/cookies/main.d/install] Error 2
make[5]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/lib/bluez'
make[4]: *** [imgdep-main] Error 2
make[4]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/lib/bluez'
make[3]: *** [../../lib/bluez/cookies/main.d/install] Error 2
make[3]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/system/bdremote-ng'
make[2]: *** [imgdep-main] Error 2
make[2]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/system/bdremote-ng'
make[1]: *** [../../system/bdremote-ng/cookies/main.d/install] Error 2
make[1]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/meta/minimyth'
make: *** [imgdep-main] Error 2

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

Re: make garchive xtrans error

Post by Pablo » Fri Sep 24, 2010 8:41 pm

That is a bug in the interaction between the new libtool and gcc's use-ld patch. I have patched libtool to fix it in 7193.
Therefore, after you resync with with SVN, If you run

Code: Select all

make clean; make DESTIMG=build install
in devel/libtool,
and then run

Code: Select all

make clean-image
in lib/pcre,
then you should be able to continue building.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Airic37
Member
Posts: 11
Joined: Thu Nov 13, 2008 1:43 am

Re: make garchive xtrans error

Post by Airic37 » Sat Sep 25, 2010 4:30 am

Appreciate your help. I hope I'm making some progress. Updated to rev 7196, now I'm getting the following...

Code: Select all

make[7]: Entering directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1/string'
make[7]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1/string'
make[7]: Entering directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1/string'
gcc ../sysdeps/i386/i686/multiarch/memcmp.S -c  -I../include -I/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1_build/string -I/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1_build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686/multiarch -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl  -I.. -I../libio -I.  -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DASSEMBLER  -DGAS_SYNTAX  -Wa,--noexecstack  -Wa,-mtune=i686 -o /home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1_build/string/memcmp.o -MD -MP -MF /home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1_build/string/memcmp.o.dt -MT /home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1_build/string/memcmp.o
../sysdeps/i386/i686/multiarch/../memcmp.S: Assembler messages:
../sysdeps/i386/i686/multiarch/../memcmp.S:46: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/i686/multiarch/../memcmp.S:47: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/i686/multiarch/../memcmp.S:48: Error: Missing symbol name in directive
../sysdeps/i386/i686/multiarch/../memcmp.S:48: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/i686/multiarch/../memcmp.S:50: Error: Missing symbol name in directive
../sysdeps/i386/i686/multiarch/../memcmp.S:50: Error: junk at end of line, first unrecognized character is `.'
../sysdeps/i386/i686/multiarch/../memcmp.S:51: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/i686/multiarch/../memcmp.S:92: Error: junk `.get_pc_thunk.bx' after expression
../sysdeps/i386/i686/multiarch/../memcmp.S:338: Error: junk `.get_pc_thunk.bx' after expression
make[7]: *** [/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1_build/string/memcmp.o] Error 1
make[7]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1/string'
make[6]: *** [string/subdir_lib] Error 2
make[6]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1'
make[5]: *** [lib] Error 2
make[5]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1_build'
make[4]: *** [build-work/build.d/glibc-2.12.1_build/Makefile] Error 2
make[4]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-localedef-static'
make[3]: *** [../../devel/glibc-localedef-static/cookies/build.d/install] Error 2
make[3]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-locale'
make[2]: *** [imgdep-build] Error 2
make[2]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-locale'
make[1]: *** [../../devel/glibc-locale/cookies/main.d/install] Error 2
make[1]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/meta/minimyth'
make: *** [imgdep-main] Error 2

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

Re: make garchive xtrans error

Post by Pablo » Sat Sep 25, 2010 4:10 pm

This appears to be a i686 specific interaction caused by gcc #defining __i686 as 1 and glibc using __i686 in some of its assembly (see this thread. I have committed what I believe to be a fix in 7200.

If you sync with SVN and run

Code: Select all

make clean
in directory devel/glibc-localedef-static, then you should be able to continue building.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Airic37
Member
Posts: 11
Joined: Thu Nov 13, 2008 1:43 am

Re: make garchive xtrans error

Post by Airic37 » Sun Sep 26, 2010 4:54 pm

I updated to rev 7200 and am still getting the same error. Both using your steps and doing a complete make clean.

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

Re: make garchive xtrans error

Post by Pablo » Mon Sep 27, 2010 2:13 am

Sorry, I completely f*ed that up. Could you try with commit 7206 and let me know whether or not it works?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Airic37
Member
Posts: 11
Joined: Thu Nov 13, 2008 1:43 am

Re: make garchive xtrans error

Post by Airic37 » Mon Sep 27, 2010 3:08 pm

Yes, that seems to have taken care of that error. Still haven't gotten through a complete build though...

Code: Select all

make[7]: Entering directory `/home/mythtv/minimyth-read-only/gar-minimyth/script                                      /devel/glibc-localedef-static/work/build.d/glibc-2.12.1/misc'
make[7]: *** No rule to make target `/home/mythtv/minimyth-read-only/gar-minimyt                                      h/script/devel/glibc-localedef-static/work/build.d/glibc-2.12.1_build/misc/vm86.                                      o', needed by `/home/mythtv/minimyth-read-only/gar-minimyth/script/devel/glibc-l                                      ocaledef-static/work/build.d/glibc-2.12.1_build/misc/stamp.o'.  Stop.
make[7]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/                                      devel/glibc-localedef-static/work/build.d/glibc-2.12.1/misc'
make[6]: *** [misc/subdir_lib] Error 2
make[6]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/                                      devel/glibc-localedef-static/work/build.d/glibc-2.12.1'
make[5]: *** [lib] Error 2
make[5]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/                                      devel/glibc-localedef-static/work/build.d/glibc-2.12.1_build'
make[4]: *** [build-work/build.d/glibc-2.12.1_build/Makefile] Error 2
make[4]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/                                      devel/glibc-localedef-static'
make[3]: *** [../../devel/glibc-localedef-static/cookies/build.d/install] Error                                       2
make[3]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/                                      devel/glibc-locale'
make[2]: *** [imgdep-build] Error 2
make[2]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/                                      devel/glibc-locale'
make[1]: *** [../../devel/glibc-locale/cookies/main.d/install] Error 2
make[1]: Leaving directory `/home/mythtv/minimyth-read-only/gar-minimyth/script/                                      meta/minimyth'
make: *** [imgdep-main] Error 2

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

Re: make garchive xtrans error

Post by Pablo » Mon Sep 27, 2010 5:46 pm

It appears that I need to take a somewhat different approach to building a static version of localedef. I have made a change to in revision 7209 so that localedef is statically linked and the rest of glibc builds as normal. Could you give it a try?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Airic37
Member
Posts: 11
Joined: Thu Nov 13, 2008 1:43 am

Re: make garchive xtrans error

Post by Airic37 » Wed Sep 29, 2010 3:17 pm

I haven't had a chance to boot it up yet, but I did get through a build successfully last night. Thanks for all your help.

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

Re: make garchive xtrans error

Post by Pablo » Thu Sep 30, 2010 1:51 am

I am glad that we were able to debug and fix it. Thank you for taking the time to test and report back on each of my fixes along the way.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply