Voici ce que j'ai fait
- Code: Select all
export CC=/usr/bin/arm-none-eabi-gcc
export CC_FOR_BUILD=/usr/bin/gcc
export CFLAGS='-mthumb -march=armv7e-m -mfloat-abi=hard -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -fdata-sections -ffunction-sections -fno-strict-aliasing -nostdlib -L/usr/lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv5/hard/ -lgcc'
./configure --host=arm-none-eabi
Mais j'obtiens l'erreur suivante (fichier config.log)
- Code: Select all
conftest.c:(.text.gcc303+0xe): undefined reference to `__aeabi_d2uiz'
collect2: error: ld returned 1 exit status
Pourtant ce symbole est defini dans la librairie libgcc.a de /usr/lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv5/hard/, comme on peut le voir en faisant dans un repertoire temporaire
- Code: Select all
ar x /usr/lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv5/hard/libgcc.a
arm-none-eabi-objdump -D _arm_fixunsdfsi.o | less
Meme resultat en remplacant fpv5 par fpv4-sp.
Et pourtant
- Code: Select all
/usr/bin/arm-none-eabi-gcc -mthumb -march=armv7e-m -mfloat-abi=hard -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -fdata-sections -ffunction-sections -fno-strict-aliasing -nostdlib --print-search-dirs
install: /usr/lib/gcc/arm-none-eabi/7.3.1/
programs: =/usr/lib/gcc/arm-none-eabi/7.3.1/:/usr/lib/gcc/arm-none-eabi/7.3.1/:/usr/lib/gcc/arm-none-eabi/:/usr/lib/gcc/arm-none-eabi/7.3.1/:/usr/lib/gcc/arm-none-eabi/:/usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/bin/arm-none-eabi/7.3.1/:/usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/bin/
libraries: =/usr/lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/:/usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/lib/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/:/usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard/:/usr/lib/gcc/arm-none-eabi/7.3.1/:/usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/lib/arm-none-eabi/7.3.1/:/usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/lib/
Quelqu'un aurait une explication?