jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

build error when using --toolchain=cmake/toolchain_mcu_stm32f7.cmake

Open BubbleSalt opened this issue 2 years ago • 1 comments

I'm building JerryScript attempting to directly run it on STM32F767, so I clone the project and then execute the command

python2 tools/build.py --toolchain=cmake/toolchain_mcu_stm32f7.cmake 

Then I got an error. Log will be put under the description.

The first problem seems to be VFP problem, which can be solved by changing the content of toolchain_mcu_stm32f7.cmake from "-mfloat-abi=hard" to "-mfloat-abi=softfp". But does this affect the performance of JerryScript?

The second problem seems to be a link problem. I'm really not good at this, could anyone tell me the solution?

Build platform

Ubuntu 20.04.2 LTS (Linux 5.15.0-60-generic x86_64)

arm-none-eabi-gcc (15:9-2019-q4-0ubuntu1) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]

cmake version 3.24.2

Python 2.7.18

Build steps
cd jerryscript
python2 tools/build.py --toolchain=cmake/toolchain_mcu_stm32f7.cmake 
Build log
-- The C compiler identification is GNU 9.2.1
System is unknown to cmake, create:
Platform/MCU to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Detecting C compiler ABI info
System is unknown to cmake, create:
Platform/MCU to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_BUILD_TYPE               MinSizeRel
-- CMAKE_C_COMPILER_ID            GNU
-- CMAKE_SYSTEM_NAME              MCU
-- CMAKE_SYSTEM_PROCESSOR         armv7l
-- BUILD_SHARED_LIBS              OFF
-- ENABLE_AMALGAM                 OFF
-- ENABLE_LTO                     ON
-- ENABLE_STRIP                   ON
-- ENABLE_COMPILE_COMMANDS        ON
-- JERRY_VERSION                  
-- JERRY_CMDLINE                  ON
-- JERRY_CMDLINE_TEST             OFF
-- JERRY_CMDLINE_SNAPSHOT         OFF
-- JERRY_LIBFUZZER                OFF (FORCED BY COMPILER)
-- JERRY_PORT                     ON (FORCED BY CMDLINE OR LIBFUZZER OR TESTS)
-- JERRY_EXT                      ON (FORCED BY CMDLINE OR TESTS)
-- JERRY_MATH                     OFF
-- UNITTESTS                      OFF
-- DOCTESTS                       OFF
-- JERRY_CPOINTER_32_BIT          OFF
-- JERRY_DEBUGGER                 OFF
-- JERRY_ERROR_MESSAGES           OFF
-- JERRY_EXTERNAL_CONTEXT         OFF
-- JERRY_PARSER                   ON
-- JERRY_FUNCTION_TO_STRING       OFF
-- JERRY_LINE_INFO                OFF
-- JERRY_LOGGING                  OFF
-- JERRY_MEM_STATS                OFF
-- JERRY_MEM_GC_BEFORE_EACH_ALLOC OFF
-- JERRY_PARSER_DUMP_BYTE_CODE    OFF
-- JERRY_PROFILE                  es.next
-- JERRY_PROMISE_CALLBACK         OFF
-- JERRY_REGEXP_STRICT_MODE       OFF
-- JERRY_REGEXP_DUMP_BYTE_CODE    OFF
-- JERRY_SNAPSHOT_EXEC            OFF
-- JERRY_SNAPSHOT_SAVE            OFF
-- JERRY_SYSTEM_ALLOCATOR         OFF
-- JERRY_VALGRIND                 OFF
-- JERRY_VM_HALT                  OFF
-- JERRY_VM_THROW                 OFF
-- JERRY_GLOBAL_HEAP_SIZE         (512)
-- JERRY_GC_LIMIT                 (0)
-- JERRY_STACK_LIMIT              (0)
-- JERRY_GC_MARK_LIMIT            (8)
-- Looking for sin in m
System is unknown to cmake, create:
Platform/MCU to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Looking for sin in m - not found
-- FEATURE_INIT_FINI              OFF
-- Performing Test HAVE_TM_GMTOFF
System is unknown to cmake, create:
Platform/MCU to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Performing Test HAVE_TM_GMTOFF - Failed
-- ENABLE_LINK_MAP                OFF
-- JERRY_TEST_STACK_MEASURE       OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/leo/Desktop/JerryScript/jerryscript/build
[  0%] Built target amalgam
[  0%] Building C object jerry-port/CMakeFiles/jerry-port.dir/common/jerry-port-context.c.obj
[  1%] Building C object jerry-port/CMakeFiles/jerry-port.dir/common/jerry-port-fs.c.obj
[  2%] Building C object jerry-port/CMakeFiles/jerry-port.dir/common/jerry-port-process.c.obj
……
[ 99%] Built target jerry-ext
[ 99%] Building C object jerry-main/CMakeFiles/jerry.dir/main-desktop.c.obj
[ 99%] Building C object jerry-main/CMakeFiles/jerry.dir/arguments/options.c.obj
[100%] Building C object jerry-main/CMakeFiles/jerry.dir/arguments/cli.c.obj
[100%] Linking C executable ../bin/jerry
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: error: /tmp/jerry.PosijZ.ltrans0.ltrans.o uses VFP register arguments, ../bin/jerry does not
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/jerry.PosijZ.ltrans0.ltrans.o
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: error: /tmp/jerry.PosijZ.ltrans1.ltrans.o uses VFP register arguments, ../bin/jerry does not
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/jerry.PosijZ.ltrans1.ltrans.o
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: error: /tmp/jerry.PosijZ.ltrans2.ltrans.o uses VFP register arguments, ../bin/jerry does not
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/jerry.PosijZ.ltrans2.ltrans.o
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: error: /tmp/jerry.PosijZ.ltrans3.ltrans.o uses VFP register arguments, ../bin/jerry does not
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/jerry.PosijZ.ltrans3.ltrans.o
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: error: /tmp/jerry.PosijZ.ltrans4.ltrans.o uses VFP register arguments, ../bin/jerry does not
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/jerry.PosijZ.ltrans4.ltrans.o
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: error: /tmp/jerry.PosijZ.ltrans5.ltrans.o uses VFP register arguments, ../bin/jerry does not
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/jerry.PosijZ.ltrans5.ltrans.o
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: error: /tmp/jerry.PosijZ.ltrans6.ltrans.o uses VFP register arguments, ../bin/jerry does not
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/jerry.PosijZ.ltrans6.ltrans.o
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: error: /tmp/jerry.PosijZ.ltrans7.ltrans.o uses VFP register arguments, ../bin/jerry does not
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/jerry.PosijZ.ltrans7.ltrans.o
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: error: /tmp/jerry.PosijZ.ltrans8.ltrans.o uses VFP register arguments, ../bin/jerry does not
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/jerry.PosijZ.ltrans8.ltrans.o
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: error: /tmp/jerry.PosijZ.ltrans9.ltrans.o uses VFP register arguments, ../bin/jerry does not
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /tmp/jerry.PosijZ.ltrans9.ltrans.o
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans2.ltrans.o: in function `ecma_builtin_number_prototype_object_to_string':
<artificial>:(.text+0x3bac): undefined reference to `nextafter'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans2.ltrans.o: in function `ecma_builtin_number_prototype_dispatch_routine':
<artificial>:(.text+0x3f88): undefined reference to `nextafter'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x3fa6): undefined reference to `nextafter'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x3fd6): undefined reference to `nextafter'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans2.ltrans.o: in function `ecma_builtin_math_dispatch_routine':
<artificial>:(.text+0x4596): undefined reference to `acos'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x45ac): undefined reference to `asin'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x45b6): undefined reference to `atan'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x45ca): undefined reference to `cos'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x45d4): undefined reference to `exp'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x45e8): undefined reference to `log'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x465e): undefined reference to `fmod'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x46ea): undefined reference to `fmod'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x476c): undefined reference to `sin'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x4776): undefined reference to `sqrt'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x4780): undefined reference to `tan'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x478e): undefined reference to `atan2'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x47a6): undefined reference to `acosh'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x47b0): undefined reference to `asinh'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x47ba): undefined reference to `atanh'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x47c4): undefined reference to `cbrt'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x47ce): undefined reference to `cosh'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x47d8): undefined reference to `expm1'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x47e2): undefined reference to `log1p'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x47ec): undefined reference to `log10'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x4814): undefined reference to `log'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x4826): undefined reference to `sinh'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x4830): undefined reference to `tanh'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x4974): undefined reference to `sqrt'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans3.ltrans.o: in function `ecma_date_to_string_format':
<artificial>:(.text+0x6e2): undefined reference to `jerry_port_local_tza'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x77c): undefined reference to `jerry_port_local_tza'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans3.ltrans.o: in function `ecma_date_make_day':
<artificial>:(.text+0x95e): undefined reference to `fmod'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans3.ltrans.o: in function `ecma_builtin_date_parse':
<artificial>:(.text+0xc10): undefined reference to `jerry_port_local_tza'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans3.ltrans.o: in function `ecma_builtin_date_now_helper':
<artificial>:(.text+0x1a0a): undefined reference to `jerry_port_current_time'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans3.ltrans.o: in function `ecma_builtin_date_dispatch_construct':
<artificial>:(.text+0x1b30): undefined reference to `jerry_port_local_tza'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans3.ltrans.o: in function `ecma_builtin_date_dispatch_call':
<artificial>:(.text+0x1b54): undefined reference to `jerry_port_local_tza'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans3.ltrans.o: in function `ecma_builtin_date_prototype_dispatch_routine':
<artificial>:(.text+0x1cfc): undefined reference to `jerry_port_local_tza'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x1de4): undefined reference to `jerry_port_local_tza'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x1f10): undefined reference to `jerry_port_local_tza'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans3.ltrans.o:<artificial>:(.text+0x1fc8): more undefined references to `jerry_port_local_tza' follow
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans8.ltrans.o: in function `ecma_typedarray_helper_dispatch_construct':
<artificial>:(.text+0x160c): undefined reference to `fmod'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans8.ltrans.o: in function `ecma_new_ecma_string_from_number':
<artificial>:(.text+0x4a46): undefined reference to `nextafter'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x4a64): undefined reference to `nextafter'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: <artificial>:(.text+0x4a98): undefined reference to `nextafter'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans9.ltrans.o: in function `ecma_number_pow':
<artificial>:(.text+0x634): undefined reference to `pow'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans9.ltrans.o: in function `main':
<artificial>:(.text.startup+0x1a): undefined reference to `jerry_port_current_time'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /tmp/jerry.PosijZ.ltrans6.ltrans.o: in function `ecma_typedarray_setter_number_to_uint32':
<artificial>:(.text+0x558): undefined reference to `fmod'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/stdlib/../../../../../newlib/libc/stdlib/exit.c:64: undefined reference to `_exit'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-fstatr.o): in function `_fstat_r':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/reent/../../../../../newlib/libc/reent/fstatr.c:55: undefined reference to `_fstat'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-openr.o): in function `_open_r':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/reent/../../../../../newlib/libc/reent/openr.c:50: undefined reference to `_open'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-sbrkr.o): in function `_sbrk_r':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/reent/../../../../../newlib/libc/reent/sbrkr.c:51: undefined reference to `_sbrk'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-writer.o): in function `_write_r':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/reent/../../../../../newlib/libc/reent/writer.c:49: undefined reference to `_write'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-closer.o): in function `_close_r':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/reent/../../../../../newlib/libc/reent/closer.c:47: undefined reference to `_close'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-isattyr.o): in function `_isatty_r':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/reent/../../../../../newlib/libc/reent/isattyr.c:52: undefined reference to `_isatty'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-lseekr.o): in function `_lseek_r':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/reent/../../../../../newlib/libc/reent/lseekr.c:49: undefined reference to `_lseek'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-readr.o): in function `_read_r':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/reent/../../../../../newlib/libc/reent/readr.c:49: undefined reference to `_read'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-abort.o): in function `abort':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/stdlib/../../../../../newlib/libc/stdlib/abort.c:59: undefined reference to `_exit'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-signalr.o): in function `_kill_r':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/reent/../../../../../newlib/libc/reent/signalr.c:53: undefined reference to `_kill'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/libc.a(lib_a-signalr.o): in function `_getpid_r':
/build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/newlib/libc/reent/../../../../../newlib/libc/reent/signalr.c:83: undefined reference to `_getpid'
collect2: error: ld returned 1 exit status
make[2]: *** [jerry-main/CMakeFiles/jerry.dir/build.make:133: bin/jerry] Error 1
make[1]: *** [CMakeFiles/Makefile2:259: jerry-main/CMakeFiles/jerry.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==============================
Build failed with exit code: 2
==============================

BubbleSalt avatar Mar 08 '23 10:03 BubbleSalt

hi, any update here ? I want to tru run jerry in stm32 platform.

rillhu avatar May 26 '23 14:05 rillhu