This is the mail archive of the 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]

Can't build strace unless you configure linux when building toolchain...

gcc and glibc will happily build and install on a few
architectures with just unconfigured linux kernel headers,
so I hadn't been including a kernel config file for e.g. ppc
in my crosstool scripts.

However, when I then try to configure and build strace with
the resulting toolchain, it bombs with
In file included from /opt/cegl-2.0/powerpc-750-linux-gnu/gcc-3.3.1-glibc-2.3.2/powerpc-750-linux-gnu/sys-include/linux/linkage.h:4,
                 from bjm.c:45:
/opt/cegl-2.0/powerpc-750-linux-gnu/gcc-3.3.1-glibc-2.3.2/powerpc-750-linux-gnu/sys-include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
make[2]: *** [bjm.o] Error 1
make[2]: Leaving directory `/home3/dank/wk/ixos/dap_interim/linux/3rdParty/crosstool/crosstool-0.22/build/powerpc-750-linux-gnu/gcc-3.3.1-glibc-2.3.2/ptxdist-20030829-1/build/strace-4.4.98'
make[1]: *** [all] Error 2

Soooooooo, I guess I'll add config files to crosstool
for the architectures I use, and put a note in the build
doc saying "if you don't provide a (good) kernel config
file when building the toolchain, you won't be able to
build programs like strace that do
#include <linux/config.h> ".

- Dan

Dan Kegel

------ Want more information? See the CrossGCC FAQ, Want to unsubscribe? Send a note to

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