Am Samstag, 25. Juni 2011, 20:44:03 schrieb Andrew:
> 25.06.2011 21:34, KP Kirchdoerfer пишет:
> > Hi;
> > 
> > again a system update seems to break buildtool.
> > 
> > I've updated from ubuntu 10.04 to 11.04.
> > 
> > Trying to build buildenv fails:
> > make[1]: Leaving directory `/opt/buildtool-
> > test/source/buildenv/uClibc-0.9.30.3'
> > make -j1 -C /opt/buildtool-test/source/buildenv/uClibc-0.9.30.3 \
> > 
> >          PREFIX=/opt/buildtool-test/staging/ \
> >          CROSS_COMPILER_PREFIX="" \
> >          DEVEL_PREFIX=/ CC=gcc \
> >          RUNTIME_PREFIX=/ \
> >          pregen install_dev;
> > 
> > make[1]: Entering directory `/opt/buildtool-
> > test/source/buildenv/uClibc-0.9.30.3'
> > 
> >    GEN include/bits/sysnum.h
> > 
> > <stdin>:1:24: fatal error: asm/unistd.h: No such file or directory
> > compilation terminated.
> > <stdin>:1:24: fatal error: asm/unistd.h: No such file or directory
> > compilation terminated.
> > ERROR: Could not generate syscalls.
> > Make sure that you have proper kernel headers.
> > Your .config in KERNEL_HEADERS="" was set to:
> > /usr/include/
> > 
> > It seems that linux-libc-dev changed in the that /usr/include/asm has
> > been moved to /usr/include/i386-linux-gnu/asm/.
> > 
> > How can this be fixed?
> > kp
> 
> Maybe define KERNEL_HEADERS that points to right place?
> In any case, it was hidden bug from old toolchain (or even it was
> injected at toolchain migration to fresh uClibc), it's good that it
> appears now.

Depends if it's "good" :)

For shure it's too much to me to fix. I softlinked the new place to the 
expected place, though it get further it fails now a bit later:
...
HOSTCC extra/scripts/unifdef
install -d /opt/buildtool-test/staging//include
top_builddir=./ \
        ./extra/scripts/install_headers.sh include /opt/buildtool-
test/staging//include
# Ugly hack for old locale impl in gcc
printf '#ifndef _LIBC_INTERNAL_H\n#define _LIBC_INTERNAL_H 1\n#endif\n' > \
                /opt/buildtool-test/staging//include/libc-internal.h
echo '/* Do not use _syscall#() macros; use the syscall() function */' > \
                /opt/buildtool-test/staging//include/bits/syscalls.h
rm -f /opt/buildtool-test/staging//include/dl-osinfo.h
rm -f /opt/buildtool-test/staging//include/_lfs_64.h
rm -f /opt/buildtool-test/staging//include/bits/uClibc_uintmaxtostr.h
rm -f /opt/buildtool-test/staging//include/bits/kernel_sigaction.h
rm -f /opt/buildtool-test/staging//include/bits/kernel_stat.h
# Remove iconv header since locale support is disabled.
rm -f /opt/buildtool-test/staging//include/iconv.h
# Remove printf header since custom print specifier support is disabled.
rm -f /opt/buildtool-test/staging//include/printf.h
# Remove xlocale header since extended locale support is disabled.
rm -f /opt/buildtool-test/staging//include/xlocale.h
# Remove libintl header since gettext support is disabled.
rm -f /opt/buildtool-test/staging//include/libintl.h
# Remove wordexp header since wordexp support is disabled.
rm -f /opt/buildtool-test/staging//include/wordexp.h
# Remove ftw header since ftw support is disabled.
rm -f /opt/buildtool-test/staging//include/ftw.h
# Remove thread_db header since thread debug support is disabled.
rm -f /opt/buildtool-test/staging//include/thread_db.h
# Remove ustat.h since deprecated SV4 support was disabled upon request
rm -f /opt/buildtool-test/staging//include/ustat.h
rm -f /opt/buildtool-test/staging//include/sys/ustat.h
rm -f /opt/buildtool-test/staging//include/bits/ustat.h
  AS lib/crt1.o
  AS lib/Scrt1.o
  AS lib/crti.o
  AS lib/crtn.o
initfini.c: Assembler messages:
initfini.c:29: Error: .size expression for _init does not evaluate to a 
constant
initfini.c:29: Error: .size expression for _fini does not evaluate to a constant
make[1]: *** [lib/crtn.o] Error 1
make[1]: Leaving directory `/opt/buildtool-
test/source/buildenv/uClibc-0.9.30.3'
make: *** [/opt/buildtool-test/source/buildenv/uClibc-0.9.30.3/.configured] 
Fehler 2

hmm...
kp
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to