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


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: targ-include multilib appears broken


On 6/2/06, Jeff Johnston <jjohnstn@redhat.com> wrote:
There should only be one targ-include.  Header files are shared across
the multilibs.  I am building right now using an older arm-elf toolset I
have around and am not seeing any such problem.  When I do a arm-elf-gcc
-print-multi-lib I see "." as the first entry in the list.  Is that the
case for you?

"." does appear first. It does look like thumb is being built first though.


$ arm-elf-gcc -print-multi-lib
.;
thumb;@mthumb
interwork;@mthumb-interwork
pic;@fPIC
thumb/interwork;@mthumb@mthumb-interwork
thumb/pic;@mthumb@fPIC

Building the posix dir -- which I've added to arm-* for my own
purposes -- fails because targ-include, which provides sys/dirent.h,
doesn't exist yet.

$ make
...
make[8]: Entering directory
`/home/sjackman/src/toolchain/src/_build/arm-elf/thumb/newlib/libc/posix'
arm-elf-gcc -B/home/sjackman/src/toolchain/src/_build/arm-elf/newlib/
-isystem /home/sjackman/src/toolchain/src/_build/arm-elf/newlib/targ-include
-isystem /home/sjackman/src/toolchain/src/newlib/libc/include
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"1.14.0\" -DPACKAGE_STRING=\"newlib\1.14.0\"
-DPACKAGE_BUGREPORT=\"\"  -I. -I../../../../../../newlib/libc/posix
-O2 -D__NO_SYSCALLS__ -DNO_FLOATING_POINT -DHAVE_FCNTL
-DHAVE_GETTIMEOFDAY -DHAVE_NANOSLEEP -fno-builtin      -O2 -g -O2
-mthumb -c -o lib_a-closedir.o `test -f'closedir.c' || echo
'../../../../../../newlib/libc/posix/'`closedir.c
In file included from
/home/sjackman/src/toolchain/src/newlib/libc/include/dirent.h:6,
                from ../../../../../../newlib/libc/posix/closedir.c:41:
/home/sjackman/src/toolchain/src/newlib/libc/include/sys/dirent.h:10:2:
error: #error "<dirent.h> not supported"
../../../../../../newlib/libc/posix/closedir.c:46: error: expected ')'
before '*' token
../../../../../../newlib/libc/posix/closedir.c:52: error: expected
';', ',' or ')' before '*' token
make[8]: *** [lib_a-closedir.o] Error 1
make[8]: Leaving directory
`/home/sjackman/src/toolchain/src/_build/arm-elf/thumb/newlib/libc/posix'
...
$ find . -name targ-include
./arm-elf/thumb/newlib/targ-include
$ cp -a ./arm-elf/thumb/newlib/targ-include arm-elf/newlib/targ-include
$ find . -name targ-include
./arm-elf/newlib/targ-include
./arm-elf/thumb/newlib/targ-include
$ make
...
[success]
$ find . -name targ-include
./arm-elf/newlib/targ-include
./arm-elf/thumb/newlib/targ-include
./arm-elf/thumb/interwork/newlib/targ-include
./arm-elf/thumb/pic/newlib/targ-include
./arm-elf/interwork/newlib/targ-include
./arm-elf/pic/newlib/targ-include

Cheers,
Shaun


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