This is the mail archive of the crossgcc@sources.redhat.com 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]

Problems building dosfstools - include headers wrong?


Hi there,

I just built an arm-softfloat-linux-gnu toolchain with crosstool-0.34 using

export TARGET_CFLAGS="-O"
export GCC_EXTRA_CONFIG="--with-float=soft"
export GLIBC_EXTRA_CONFIG="--without-fp"
export BINUTILS_DIR=binutils-2.15
export GCC_DIR=gcc-3.3.3
export GLIBC_DIR=glibc-2.3.3
export LINUX_DIR=linux-2.6.12-rc4

Now I am trying to build mkdosfs from the dosfstool-2.11 package. But I get

# ~> make CC=arm-softfloat-linux-gnu-gcc
arm-softfloat-linux-gnu-gcc -c mkdosfs.c -o mkdosfs.o
In file included from /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.3-linux-2.6.10/arm-softfloat-linux-gnu/sys-include/linux/fs.h:19,
from mkdosfs.c:54:
/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.3-linux-2.6.10/arm-softfloat-linux-gnu/sys-include/linux/prio_tree.h:22: error: parse error before "pgoff_t"
/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.3-linux-2.6.10/arm-softfloat-linux-gnu/sys-include/linux/prio_tree.h:27: error: parse error before "pgoff_t"
/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.3-linux-2.6.10/arm-softfloat-linux-gnu/sys-include/linux/prio_tree.h: In function `prio_tree_iter_init':
/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.3-linux-2.6.10/arm-softfloat-linux-gnu/sys-include/linux/prio_tree.h:29: error: `iter' undeclared (first use in this function)
/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.3-linux-2.6.10/arm-softfloat-linux-gnu/sys-include/linux/prio_tree.h:29: error: (Each undeclared identifier is reported only once
/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.3-linux-2.6.10/arm-softfloat-linux-gnu/sys-include/linux/prio_tree.h:29: error: for each function it appears in.)
/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.3-linux-2.6.10/arm-softfloat-linux-gnu/sys-include/linux/prio_tree.h:29: error: `root' undeclared (first use in this function)
/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.3-linux-2.6.10/arm-softfloat-linux-gnu/sys-include/linux/prio_tree.h:30: error: `r_index' undeclared (first use in this function)
make: *** [mkdosfs.o] Error 1


Passing a kernel header include path

make CC=arm-softfloat-linux-gnu-gcc CFLAGS=-I<PATH_TO_2.6.12-rc4>/include

fixes that.

So could it be that there is a problem with sys-include/linux/fs.h?

--
Steven

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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