[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: avr-gcc

From: Ludovic Courtès
Subject: Re: avr-gcc
Date: Wed, 13 Apr 2016 22:42:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

"Thompson, David" <address@hidden> skribis:

> avr-gcc -DHAVE_CONFIG_H -I. -I../../../../avr-libc-2.0.0/avr/lib/avr2
> -I../../..  -I../../../../avr-libc-2.0.0/common
> -I../../../../avr-libc-2.0.0/include -I../../../include
> -I../../../../avr-libc-2.0.0/common
> -I../../../../avr-libc-2.0.0/include -I../../../include -x
> assembler-with-cpp  -mmcu=avr2 -D__COMPILING_AVR_LIBC__   -MT abort.o
> -MD -MP -MF .deps/abort.Tpo -c -o abort.o
> ../../../../avr-libc-2.0.0/libc/stdlib/abort.S
> In file included from
> /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/include/features.h:389:0,
>                  from
> /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/include/limits.h:25,
>                  from ../../../../avr-libc-2.0.0/libc/stdlib/strtol.c:33:
> /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/include/gnu/stubs.h:7:27:
> fatal error: gnu/stubs-32.h: No such file or directory
>  # include <gnu/stubs-32.h>
>                            ^
> compilation terminated.

<gnu/stubs-32.h> is used when building on a 64-bit glibc system in
32-bit mode.  However, our glibc does not provide it currently.

> I don't know why it's including headers from the host system's libc.

Right, that’s a problem.  I would expect it to only include target libc
headers.  Could you check C_INCLUDE_PATH and CROSS_CPATH in there?

Note that our ‘gcc’ package is modified to honor the special CROSS_CPATH
variable, see gcc-cross-environment-variables.patch.  Maybe the
equivalent thing is missing from avr-gcc?

Good that you’re getting there!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]