[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build gcc 10.3.0 for avr on a amd64 linux host
From: |
BERTRAND Joël |
Subject: |
Re: Build gcc 10.3.0 for avr on a amd64 linux host |
Date: |
Sun, 23 May 2021 09:17:38 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.7.1 |
Senthil Kumar a écrit :
> On Sat, May 22, 2021 at 1:21 AM BERTRAND Joël <joel.bertrand@systella.fr>
> wrote:
>>
>> Hello,
>>
>> I'm trying to build a recent gcc to check if my issue comes from
>> compiler or not. Thus, I have downloaded gcc 10.3.0 sources. Of course,
>> on my debian/testing workstation, I have avr avr-binutils and avr-libc.
>>
>> I have configured gcc with :
>>
>> hilbert:[~/cvs/cross-gcc/build] > ../gcc-10.3.0/configure -v
>> --enable-languages=c,c++,fortran --prefix=/home/bertrand/cvs/cross-gcc
>> --disable-nls --disable-libssp --target=avr --with-dwarf2
>>
>> but build process hangs with :
>>
>> make[3] : on quitte le répertoire
>> « /home/bertrand/cvs/cross-gcc/build/avr/libgcc »
>> make[2] : on quitte le répertoire
>> « /home/bertrand/cvs/cross-gcc/build/avr/libgcc »
>> Checking multilib configuration for libbacktrace...
>> Configuring in avr/libbacktrace
>> configure: loading cache ./config.cache
>> checking build system type... x86_64-pc-linux-gnu
>> checking host system type... avr-unknown-none
>> checking target system type... avr-unknown-none
>> checking for avr-gcc... /home/bertrand/cvs/cross-gcc/build/./gcc/xgcc
>> -B/home/bertrand/cvs/cross-gcc/build/./gcc/
>> -B/home/bertrand/cvs/cross-gcc/avr/bin/
>> -B/home/bertrand/cvs/cross-gcc/avr/lib/ -isystem
>> /home/bertrand/cvs/cross-gcc/avr/include -isystem
>> /home/bertrand/cvs/cross-gcc/avr/sys-include
>> checking whether the C compiler works... no
>> configure: error: in `/home/bertrand/cvs/cross-gcc/build/avr/libbacktrace':
>> configure: error: C compiler cannot create executables
>> See `config.log' for more details
>> make[1]: *** [Makefile:12412 : configure-target-libbacktrace] Erreur 1
>> make[1] : on quitte le répertoire « /home/bertrand/cvs/cross-gcc/build »
>> make: *** [Makefile:938 : all] Erreur 2
>> hilbert:[~/cvs/cross-gcc/build] >
>>
>> Config log contains:
>> configure:3078: /home/bertrand/cvs/cross-gcc/build/./gcc/xgcc
>> -B/home/bertrand/cvs/cross-gcc/build/./gcc/
>> -B/home/bertrand/cvs/cross-gcc/avr/bin/
>> -B/home/bertrand/cvs/cross-gcc/avr/lib/ -isystem
>> /home/bertrand/cvs/cross-gcc/avr/include -isystem
>> /home/bertrand/cvs/cross-gcc/avr/sys-include -g -O2 conftest.c >&5
>> /usr/bin/avr-ld: cannot find -lm
>> /usr/bin/avr-ld: cannot find -lc
>> collect2: error: ld returned 1 exit status
>> configure:3082: $? = 1
>> configure:3120: result: no
>> configure: failed program was:
>> | /* confdefs.h */
>> | #define PACKAGE_NAME "package-unused"
>> | #define PACKAGE_TARNAME "libbacktrace"
>> | #define PACKAGE_VERSION "version-unused"
>> | #define PACKAGE_STRING "package-unused version-unused"
>> | #define PACKAGE_BUGREPORT ""
>> | #define PACKAGE_URL ""
>> | /* end confdefs.h. */
>> |
>> | int
>> | main ()
>> | {
>> |
>> | ;
>> | return 0;
>> | }
>> configure:3125: error: in
>> `/home/bertrand/cvs/cross-gcc/build/avr/libbacktrace':
>> configure:3127: error: C compiler cannot create executables
>> See `config.log' for more details
>>
>> OK. xgcc tries to build an avr executable and doesn't find libm and
>> libc. But even if I add LDFLAGS on configure command line, make always
>> returns this error. I suppose I have done a mistake...
>
> Did you try building and installing avr-libc also at the same --prefix
> location?
No, avr-libc is installed in /usr/lib/avr, but I have tried to add
LDFLAGS on configure command line without any success.
I have tried to build cross compiler with ct-ng also without any
success (from gcc 6.x to 11.x). Same error. ct-ng builds its own
avr-libc and doesn't use system avr-libc.
Best regards,
JB