Не собирается platform/pjsip/stm32f4discovery

54 views
Skip to first unread message

Александр Фатеев

unread,
Jul 24, 2017, 12:55:18 PM7/24/17
to embox-devel
Скачал проект с github
git clone https://github.com/embox/embox.git embox

На компьютере установлена Lubuntu 16.04. Компилятор из репозитория
arm-none-eabi-gcc --version
arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease).

Делаю
make confload-platform/pjsip/stm32f4discovery
make

Результат:
/tmp/ccF5083S.s: Assembler messages:
/tmp/ccF5083S.s:173: Error: selected processor does not support `vmrs r3,fpscr' in Thumb mode
/tmp/ccF5083S.s:182: Error: selected processor does not support `vmsr fpscr,r3' in Thumb mode
/tmp/ccF5083S.s:202: Error: selected processor does not support `vmrs r3,fpscr' in Thumb mode
/tmp/ccF5083S.s:211: Error: selected processor does not support `vmsr fpscr,r3' in Thumb mode
Make.inc:144: recipe for target 'src/s_fma.c.o' failed
make[6]: *** [src/s_fma.c.o] Error 1
make[6]: Leaving directory '/home/gibabyte/Downloads/embox/embox/build/extbld/third_party/lib/OpenLibmImpl/openlibm-2252cbd02c176a31f74fa10f8fcdf926c3124987'
Makefile:47: recipe for target '/home/gibabyte/Downloads/embox/embox/build/extbld/third_party/lib/OpenLibmImpl/.builded' failed
make[5]: *** [/home/gibabyte/Downloads/embox/embox/build/extbld/third_party/lib/OpenLibmImpl/.builded] Error 2
build/base/gen/third_party/lib/OpenLibmImpl.extbld_rule.mk:18: recipe for target 'build/base/gen/third_party/lib/OpenLibmImpl.__extbld-target' failed
make[4]: *** [build/base/gen/third_party/lib/OpenLibmImpl.__extbld-target] Error 2
mk/build.mk:19: recipe for target 'build' failed
make[3]: *** [build] Error 2
mk/load.mk:41: recipe for target 'build' failed
make[2]: *** [build] Error 2
mk/main.mk:30: recipe for target 'build' failed
make[1]: *** [build] Error 2
Makefile:37: recipe for target 'all' failed
make: *** [all] Error 2

В чем проблема? как можно исправить эту ошибку?

Александр Фатеев

unread,
Jul 24, 2017, 1:17:50 PM7/24/17
to embox-devel
Скачал более свежую компилятора:
https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update

arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.4.1 20160919 (release) [ARM/embedded-5-branch revision 240496]

Сделал снова make
Уже другие ошибки, не компилируется libstdc++

make[8]: Entering directory '/home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/arm-none-eabi/libstdc++-v3/include'
mkdir -p ./arm-none-eabi/bits/stdc++.h.gch
arm-none-eabi-g++ -B/usr/local/arm-none-eabi/bin/ -B/usr/local/arm-none-eabi/lib/ -isystem /usr/local/arm-none-eabi/include -isystem /usr/local/arm-none-eabi/sys-include    -x c++-header -nostdinc++ -I/home/gibabyte/Downloads/embox/embox/third-party/gcc/include -U__linux__ -Ulinux -U__linux -D__EMBOX__ -D__unix -I/home/gibabyte/Downloads/embox/embox/build/base/include -I/home/gibabyte/Downloads/embox/embox/src/include -I/home/gibabyte/Downloads/embox/embox/src/arch/arm/include -I/home/gibabyte/Downloads/embox/embox/build/base/gen/include -I/home/gibabyte/Downloads/embox/embox/build/base/gen/src/include -I/home/gibabyte/Downloads/embox/embox/build/base/gen/src/include -I/home/gibabyte/Downloads/embox/embox/build/base/gen/src/arch/arm/include -I/home/gibabyte/Downloads/embox/embox/platform/stm32f4/include -I/home/gibabyte/Downloads/embox/embox/src/compat/linux/include -I/home/gibabyte/Downloads/embox/embox/src/compat/posix/include -I/home/gibabyte/Downloads/embox/embox/src/compat/libc/include -I/home/gibabyte/Downloads/embox/embox/src/compat/cxx/include -nostdinc -I/home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/gcc/include -fno-strict-aliasing -fno-common -Wall -fpermissive -I/home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/arm-none-eabi/libstdc++-v3/include/arm-none-eabi -I/home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/arm-none-eabi/libstdc++-v3/include -I/home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/gcc-4.8.1/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x /home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/gcc-4.8.1/libstdc++-v3/include/precompiled/stdc++.h \
-o arm-none-eabi/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from /home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/arm-none-eabi/libstdc++-v3/include/iosfwd:40:0,
                 from /home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/arm-none-eabi/libstdc++-v3/include/ios:38,
                 from /home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/arm-none-eabi/libstdc++-v3/include/istream:38,
                 from /home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/arm-none-eabi/libstdc++-v3/include/sstream:38,
                 from /home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/arm-none-eabi/libstdc++-v3/include/complex:45,
                 from /home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/arm-none-eabi/libstdc++-v3/include/ccomplex:38,
                 from /home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/gcc-4.8.1/libstdc++-v3/include/precompiled/stdc++.h:52:
/home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/arm-none-eabi/libstdc++-v3/include/bits/postypes.h:228:16: error: 'mbstate_t' was not declared in this scope
   typedef fpos<mbstate_t> streampos;
                ^
/home/gibabyte/Downloads/embox/embox/build/extbld/third_party/gcc/core/build/arm-none-eabi/libstdc++-v3/include/bits/postypes.h:228:25: error: template argument 1 is invalid
   typedef fpos<mbstate_t> streampos;
                         ^

Anton Bondarev

unread,
Jul 24, 2017, 1:34:08 PM7/24/17
to embox...@googlegroups.com
Первая ошибка (arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)) похоже на то что после обновления openlibm на более новую версию, что то сломалось. Постараемся исправить, спасибо.
Вторую тоже сейчас исследуем, пока не понимаю что это.



--
You received this message because you are subscribed to the Google Groups "embox-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to embox-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Александр Фатеев

unread,
Jul 25, 2017, 4:31:57 AM7/25/17
to embox-devel
Скажите какую версию gcc вы используете? И какие есть нюансы по настройке?

Anton Bondarev

unread,
Jul 25, 2017, 6:22:04 AM7/25/17
to embox...@googlegroups.com
Извините что так долго, подбираем версию.
 arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20150303 (release) [ARM/embedded-4_9-branch revision 221220]
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Версия 0.3.16 собирается если немного уменьшить размер стека потока, то есть после конфигурации
 .  make confload-platform/pjsip/stm32f4discovery
Нужно заменить параметр thread_stack_size
в строчке
include embox.kernel.thread.core(thread_pool_size=2,thread_stack_size=3000)
заменить на
include embox.kernel.thread.core(thread_pool_size=2,thread_stack_size=2750)

С сожалению, сейчас под рукой нет стмки поэтому оперативно проверить не могу.

Постараемся усправить сборку в мастере в ближайшее время

 

2017-07-25 11:31 GMT+03:00 Александр Фатеев <luse...@gmail.com>:
Скажите какую версию gcc вы используете? И какие есть нюансы по настройке?

--

Александр Фатеев

unread,
Jul 25, 2017, 7:06:41 AM7/25/17
to embox-devel
Вы очень оперативно отвечаете, спасибо громное.
Скачал релиз embox-0.3.16 и gcc.
arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20141119 (release) [ARM/embedded-4_9-branch revision 218278]

Поправил настройки и всё удачно собралось. Спасибо.
Reply all
Reply to author
Forward
0 new messages