This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New sanitized headers source


On Thu, 2006-07-20 at 15:33 -0500, Ken MacLeod wrote:
> On 7/20/06, Dan Kegel <dank@kegel.com> wrote:
> > http://lwn.net/Articles/191374/
> > describes a git tree for sanitized kernel headers.
> > This should probably replace the ones crosstool
> > uses now (which are no longer maintained).
> 
> If I understand the background, this git tree is just a copy of what
> should come from 'make headers_install' in the kernel tree.

Basically, yes. It's not actually done by running 'make headers_install'
-- the evil script does its own equivalent which will be slightly less
fragile. The actual headers_install target will break if files are
listed for export which don't exist, for example. I didn't want that in
the slave tree.

See the script itself (linked from the LWN article above) if you really
care about the details, but yes, in all normal cases it should be the
same result. That's the intention, at least.

>   The git tree is good for visualization and tracking, but shouldn't
> crosstool use 'make headers_install' directly?

Yes, that would probably be best. Especially since you're downloading a
kernel anyway. If you have problems with the exported headers (other
than that some userspace abuses headers which it shouldn't), then
_shout_. Please don't just let them go unreported.


Have to get on a plane.... when I get off it again I'll attempt to make
a more coherent bug report out of the fact that crosstool just failed to
build me a PPC (Fedora Core 5)  -> i686 gcc-3.3.4-glibc-2.3.3
cross-compiler. It failed at the build-glibc-headers stage...

running /bin/sh /home/dwmw2/cross/crosstool-0.42/build/i686-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.3/glibc-2.3.3/configure  --prefix=/usr --build=powerpc-unknown-linux-gnu --host=i686-unknown-linux-gnu --without-cvs --disable-sanity-checks --with-headers=/opt/crosstool/gcc-3.3.4-glibc-2.3.3/i686-unknown-linux-gnu/i686-unknown-linux-gnu/include --enable-hacker-mode CC=gcc build_alias=powerpc-unknown-linux-gnu host_alias=i686-unknown-linux-gnu  --no-create --no-recursion
checking build system type... powerpc-unknown-linux-gnu
checking host system type... i686-unknown-linux-gnu
checking sysdep dirs... sysdeps/i386/elf sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686 sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for i686-unknown-linux-gnu-gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [/home/dwmw2/cross/crosstool-0.42/build/i686-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.3/build-glibc-headers/config.status] Error 1
make[1]: Leaving directory `/home/dwmw2/cross/crosstool-0.42/build/i686-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.3/glibc-2.3.3'
make: *** [sysdeps/gnu/errlist.c] Error 2
shinybook /home/dwmw2/cross/crosstool-0.42 $

....

configure:2555: checking for suffix of object files
configure:2577: gcc -c -std=gnu99 -DBOOTSTRAP_GCC -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mpreferred-stack-boundary=2     conftest.c >&5
cc1: error: unrecognized command line option "-mpreferred-stack-boundary=2"
configure:2580: $? = 1
configure: failed program was:


-- 
dwmw2


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]