Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207878 - sys-libs/timezone-data-2007j cross compile fails on install phase
Summary: sys-libs/timezone-data-2007j cross compile fails on install phase
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-28 12:23 UTC by Karl H
Modified: 2008-01-28 13:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl H 2008-01-28 12:23:45 UTC
USE="-*" xmerge --root /armeb-glibc-v1 -av glibc
xmerge script  CBUILD=armeb-softfloat-linux-gnu SYSROOT=/usr/armeb-softfloat-linux-gnu ROOT=/armeb-glibc-v1

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] sys-libs/timezone-data-2007j to /armeb-glibc-v1/ USE="-nls" 0 kB
[ebuild  N    ] sys-libs/glibc-2.5-r4 to /armeb-glibc-v1/ USE="-build -debug -glibc-compat20 -glibc-omitfp (-hardened) (-multilib) -nls -nptl -nptlonly -profile (-selinux)" 0 kB

Total: 2 packages (2 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 2) sys-libs/timezone-data-2007j to /armeb-glibc-v1/
 * tzcode2007j.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                [ ok ]
 * tzdata2007j.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                               [ ok ]
 * checking tzdata2007j.tar.gz ;-) ...                                                                                                               [ ok ]
 * checking tzcode2007j.tar.gz ;-) ...                                                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking tzdata2007j.tar.gz to /var/tmp/portage/sys-libs/timezone-data-2007j/work
>>> Unpacking tzcode2007j.tar.gz to /var/tmp/portage/sys-libs/timezone-data-2007j/work
 * Applying timezone-data-2005n-makefile.patch ...                                                                                                   [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-libs/timezone-data-2007j/work ...
sed \
                        -e 's|AWK=[^}]*|AWK=awk|g' \
                        -e 's|TZDIR=[^}]*|TZDIR=/usr/share/zoneinfo|' \
                        <tzselect.ksh >tzselect
armeb-softfloat-linux-gnu-gcc -DTZDIR=\"/usr/share/zoneinfo\" -Os -pipe -msoft-float -std=gnu99   -c -o zic.o zic.c
chmod +x tzselect
armeb-softfloat-linux-gnu-gcc -DTZDIR=\"/usr/share/zoneinfo\" -Os -pipe -msoft-float -std=gnu99   -c -o localtime.o localtime.c
localtime.c: In function `differ_by_repeat':
localtime.c:332: warning: comparison is always false due to limited range of data type
armeb-softfloat-linux-gnu-gcc -DTZDIR=\"/usr/share/zoneinfo\" -Os -pipe -msoft-float -std=gnu99   -c -o asctime.o asctime.c
armeb-softfloat-linux-gnu-gcc -DTZDIR=\"/usr/share/zoneinfo\" -Os -pipe -msoft-float -std=gnu99   -c -o scheck.o scheck.c
armeb-softfloat-linux-gnu-gcc -DTZDIR=\"/usr/share/zoneinfo\" -Os -pipe -msoft-float -std=gnu99   -c -o ialloc.o ialloc.c
cp yearistype.sh yearistype
chmod +x yearistype
armeb-softfloat-linux-gnu-gcc -DTZDIR=\"/usr/share/zoneinfo\" -Os -pipe -msoft-float -std=gnu99   -c -o zdump.o zdump.c
armeb-softfloat-linux-gnu-gcc -DTZDIR=\"/usr/share/zoneinfo\" -Os -pipe -msoft-float -std=gnu99   -c -o difftime.o difftime.c
armeb-softfloat-linux-gnu-gcc -DTZDIR=\"/usr/share/zoneinfo\" -Os -pipe -msoft-float -std=gnu99  zic.o localtime.o asctime.o scheck.o ialloc.o  -o zic
armeb-softfloat-linux-gnu-gcc -DTZDIR=\"/usr/share/zoneinfo\" -Os -pipe -msoft-float -std=gnu99  zdump.o localtime.o ialloc.o  -o zdump
>>> Source compiled.
>>> Test phase [not enabled]: sys-libs/timezone-data-2007j

>>> Install timezone-data-2007j into /var/tmp/portage/sys-libs/timezone-data-2007j/image/ category sys-libs
./zic  -y ./yearistype -d /var/tmp/portage/sys-libs/timezone-data-2007j/image//usr/share/zoneinfo -L /dev/null africa antarctica asia australasia europe northamerica southamerica pacificnew etcetera factory backward systemv solar87 solar88 solar89
./zic: ./zic: cannot execute binary file
make: *** [posix_only] Error 126
 *
 * ERROR: sys-libs/timezone-data-2007j failed.
 * Call stack:
 *                    ebuild.sh, line 1701:  Called dyn_install
 *                    ebuild.sh, line 1138:  Called qa_call 'src_install'
 *                    ebuild.sh, line   44:  Called src_install
 *   timezone-data-2007j.ebuild, line   47:  Called die
 * The specific snippet of code:
 *      make install ${zic} DESTDIR="${D}" || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/timezone-data-2007j/temp/build.log'.
 *

 * Messages for package sys-libs/timezone-data-2007j merged to /armeb-glibc-v1/:

 *
 * ERROR: sys-libs/timezone-data-2007j failed.
 * Call stack:
 *                    ebuild.sh, line 1701:  Called dyn_install
 *                    ebuild.sh, line 1138:  Called qa_call 'src_install'
 *                    ebuild.sh, line   44:  Called src_install
 *   timezone-data-2007j.ebuild, line   47:  Called die
 * The specific snippet of code:
 *      make install ${zic} DESTDIR="${D}" || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/timezone-data-2007j/temp/build.log'


--------------------

As seen above here 'zic' is cross compiled and can not be run on the host arch.
Comment 1 SpanKY gentoo-dev 2008-01-28 13:03:00 UTC
your CBUILD is wrong ... please consult the embedded documentation for how to properly cross-compile things