Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue compiling latest Warp on Ubuntu 18.10 virtual machine. Error: region `m_text' overflowed by 1872 bytes #38

Open
JamesTimothyMeech opened this issue Jan 10, 2019 · 4 comments
Labels
Will Not Fix This will not be addressed

Comments

@JamesTimothyMeech
Copy link
Contributor

When attempting to compile Warp on my Ubuntu 18.10 virtual machine I get the print out found in compile.txt.

The output from running gcc -v can be found in gcc.txt.

compile.txt
gcc.txt

@Siegfriedchao
Copy link
Contributor

douglas@douglas-VirtualBox:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.2.0-7ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.2.0 (Ubuntu 8.2.0-7ubuntu1) 

@Siegfriedchao
Copy link
Contributor

douglas@douglas-VirtualBox:~$ cd Warp-firmware
douglas@douglas-VirtualBox:~/Warp-firmware$ cd build/
douglas@douglas-VirtualBox:~/Warp-firmware/build$ cd ksdk1.1/
douglas@douglas-VirtualBox:~/Warp-firmware/build/ksdk1.1$ ./build.sh
-- TOOLCHAIN_DIR: /usr
CMake Deprecation Warning at /usr/share/cmake-3.12/Modules/CMakeForceCompiler.cmake:69 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/douglas/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:38 (CMAKE_FORCE_C_COMPILER)
  /usr/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:91 (include)


CMake Deprecation Warning at /usr/share/cmake-3.12/Modules/CMakeForceCompiler.cmake:83 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/douglas/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:39 (CMAKE_FORCE_CXX_COMPILER)
  /usr/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:91 (include)


-- BUILD_TYPE: Release
-- TOOLCHAIN_DIR: /usr
CMake Deprecation Warning at /usr/share/cmake-3.12/Modules/CMakeForceCompiler.cmake:69 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/douglas/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:38 (CMAKE_FORCE_C_COMPILER)
  CMakeFiles/3.12.1/CMakeSystem.cmake:6 (include)


CMake Deprecation Warning at /usr/share/cmake-3.12/Modules/CMakeForceCompiler.cmake:83 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/douglas/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:39 (CMAKE_FORCE_CXX_COMPILER)
  CMakeFiles/3.12.1/CMakeSystem.cmake:6 (include)


-- BUILD_TYPE: Release
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/douglas/Warp-firmware/build/ksdk1.1/work/lib/ksdk_platform_lib/armgcc/KL03Z4
Scanning dependencies of target KsdkPlatformLib
[  1%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/osa/src/fsl_os_abstraction_bm.c.obj
[  5%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/system/src/clock/fsl_clock_manager_common.c.obj
[  3%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/system/src/clock/fsl_clock_manager.c.obj
[  7%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/system/src/clock/MKL03Z4/fsl_clock_MKL03Z4.c.obj
[  9%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/system/src/interrupt/fsl_interrupt_manager.c.obj
[ 11%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/system/src/hwtimer/fsl_hwtimer.c.obj
[ 13%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/system/src/hwtimer/fsl_hwtimer_systick.c.obj
[ 15%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/system/src/power/fsl_power_manager.c.obj
[ 17%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/adc16/fsl_adc16_hal.c.obj
[ 19%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/adc16/fsl_adc16_driver.c.obj
[ 21%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/cmp/fsl_cmp_hal.c.obj
[ 23%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/adc16/fsl_adc16_common.c.obj
[ 25%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/cmp/fsl_cmp_driver.c.obj
[ 26%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/cmp/fsl_cmp_common.c.obj
[ 28%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/cop/fsl_cop_hal.c.obj
[ 30%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/cop/fsl_cop_driver.c.obj
[ 32%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/cop/fsl_cop_common.c.obj
[ 34%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/gpio/fsl_gpio_hal.c.obj
[ 36%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/gpio/fsl_gpio_common.c.obj
[ 38%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/gpio/fsl_gpio_driver.c.obj
[ 40%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/i2c/fsl_i2c_hal.c.obj
[ 42%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/i2c/fsl_i2c_shared_function.c.obj
[ 44%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/i2c/fsl_i2c_common.c.obj
[ 46%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/i2c/fsl_i2c_master_driver.c.obj
[ 48%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/i2c/fsl_i2c_slave_driver.c.obj
[ 50%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/llwu/fsl_llwu_hal.c.obj
[ 51%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/lptmr/fsl_lptmr_hal.c.obj
[ 53%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/lptmr/fsl_lptmr_driver.c.obj
[ 55%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/lptmr/fsl_lptmr_common.c.obj
[ 57%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/lpuart/fsl_lpuart_hal.c.obj
[ 59%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/lpuart/fsl_lpuart_driver.c.obj
[ 61%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/lpuart/fsl_lpuart_common.c.obj
[ 63%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/mcglite/fsl_mcglite_hal.c.obj
[ 65%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/osc/fsl_osc_hal.c.obj
[ 67%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/mcglite/fsl_mcglite_hal_modes.c.obj
[ 69%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/port/fsl_port_hal.c.obj
[ 71%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/rtc/fsl_rtc_hal.c.obj
[ 73%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/rtc/fsl_rtc_driver.c.obj
[ 75%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/rtc/fsl_rtc_common.c.obj
[ 76%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/sim/MKL03Z4/fsl_sim_hal_MKL03Z4.c.obj
[ 78%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/spi/fsl_spi_hal.c.obj
[ 80%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/spi/fsl_spi_shared_function.c.obj
[ 82%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/spi/fsl_spi_master_driver.c.obj
[ 84%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/spi/fsl_spi_slave_driver.c.obj
[ 86%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/spi/fsl_spi_common.c.obj
[ 88%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/smc/fsl_smc_hal.c.obj
[ 90%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/pmc/fsl_pmc_hal.c.obj
[ 92%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/rcm/fsl_rcm_hal.c.obj
[ 94%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/hal/src/tpm/fsl_tpm_hal.c.obj
[ 96%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/tpm/fsl_tpm_common.c.obj
[ 98%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/tpm/fsl_tpm_driver.c.obj
[100%] Linking C static library release/libksdk_platform.a
[100%] Built target KsdkPlatformLib
-- TOOLCHAIN_DIR: /usr
CMake Deprecation Warning at /usr/share/cmake-3.12/Modules/CMakeForceCompiler.cmake:69 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/douglas/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:38 (CMAKE_FORCE_C_COMPILER)
  /usr/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:91 (include)


CMake Deprecation Warning at /usr/share/cmake-3.12/Modules/CMakeForceCompiler.cmake:83 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/douglas/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:39 (CMAKE_FORCE_CXX_COMPILER)
  /usr/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:91 (include)


-- BUILD_TYPE: Release
-- TOOLCHAIN_DIR: /usr
CMake Deprecation Warning at /usr/share/cmake-3.12/Modules/CMakeForceCompiler.cmake:69 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/douglas/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:38 (CMAKE_FORCE_C_COMPILER)
  CMakeFiles/3.12.1/CMakeSystem.cmake:6 (include)


CMake Deprecation Warning at /usr/share/cmake-3.12/Modules/CMakeForceCompiler.cmake:83 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/douglas/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:39 (CMAKE_FORCE_CXX_COMPILER)
  CMakeFiles/3.12.1/CMakeSystem.cmake:6 (include)


-- BUILD_TYPE: Release
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/armgcc/Warp
Scanning dependencies of target Warp
[  3%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/utilities/src/fsl_misc_utilities.c.obj
[  7%] Building ASM object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/startup/MKL03Z4/gcc/startup_MKL03Z4.S.obj
[ 10%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/warp-kl03-ksdk1.1-boot.c.obj
[ 14%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/warp-kl03-ksdk1.1-powermodes.c.obj
[ 17%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devBMX055.c.obj
[ 21%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devADXL362.c.obj
[ 25%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devMMA8451Q.c.obj
[ 28%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devLPS25H.c.obj
[ 32%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devHDC1000.c.obj
[ 35%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devMAG3110.c.obj
[ 39%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devSI7021.c.obj
[ 42%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devL3GD20H.c.obj
[ 46%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devBME680.c.obj
[ 50%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devTCS34725.c.obj
[ 53%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devSI4705.c.obj
[ 57%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devCCS811.c.obj
[ 60%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devAMG8834.c.obj
[ 64%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devPAN1326.c.obj
[ 67%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devAS7262.c.obj
[ 71%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devAS7263.c.obj
[ 75%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/SEGGER_RTT.c.obj
[ 78%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/SEGGER_RTT_printf.c.obj
[ 82%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/i2c/fsl_i2c_irq.c.obj
[ 85%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/spi/fsl_spi_irq.c.obj
[ 89%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/startup/MKL03Z4/system_MKL03Z4.c.obj
[ 92%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/platform/startup/startup.c.obj
[ 96%] Building C object CMakeFiles/Warp.dir/home/douglas/Warp-firmware/build/ksdk1.1/work/boards/Warp/gpio_pins.c.obj
[100%] Linking C executable release/Warp.elf
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: release/Warp.elf section `.text' will not fit in region `m_text'
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: release/Warp.elf section `.stack' will not fit in region `m_data'
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: region m_data overflowed with stack and heap
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: region `m_text' overflowed by 1872 bytes
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: region `m_data' overflowed by 168 bytes
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/Warp.dir/build.make:467: release/Warp.elf] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/Warp.dir/all] Error 2
make: *** [Makefile:84: all] Error 2


Now, run

	/Applications/SEGGER/JLink/JLinkExe -device MKL03Z32XXX4 -if SWD -speed 4000 -CommanderScript ../../tools/scripts/jlink.commands

@phillipstanleymarbell
Copy link
Member

This is a compiler issue. Moving to WontFix.

@phillipstanleymarbell phillipstanleymarbell added the Will Not Fix This will not be addressed label Aug 30, 2019
@davidswarbrick
Copy link

davidswarbrick commented Nov 3, 2019

I am getting a similar error when building Warp-firmware on Arch Linux using arm-none-eabi-gcc version 9.2.0: Warp.elf section '.stack' will not fit in region 'm_data'. If this remains a compiler error but I am using the latest compiler, is there anything that can be done to solve this? There are no bug reports on the Arch package for this, and I cannot find the relevant bug on the gcc bug tracker.

Most examples I am able to find of this bug online are solved by updating gcc but there are occasional discussions of using the supported compiler version yet having to change modules loaded to correctly compile. As the issue here is with the stack rather than module space my guess is that a solution similar to my second link is not possible, but is there a version of gcc known to work with Warp?

Script output:

[david@derobe ksdk1.1]$ ./build.sh 
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- TOOLCHAIN_DIR: /usr
CMake Deprecation Warning at /usr/share/cmake-3.15/Modules/CMakeForceCompiler.cmake:75 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/david/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:38 (CMAKE_FORCE_C_COMPILER)
  /usr/share/cmake-3.15/Modules/CMakeDetermineSystem.cmake:90 (include)


CMake Deprecation Warning at /usr/share/cmake-3.15/Modules/CMakeForceCompiler.cmake:89 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/david/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:39 (CMAKE_FORCE_CXX_COMPILER)
  /usr/share/cmake-3.15/Modules/CMakeDetermineSystem.cmake:90 (include)


-- BUILD_TYPE: Release
-- TOOLCHAIN_DIR: /usr
CMake Deprecation Warning at /usr/share/cmake-3.15/Modules/CMakeForceCompiler.cmake:75 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/david/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:38 (CMAKE_FORCE_C_COMPILER)
  CMakeFiles/3.15.5/CMakeSystem.cmake:6 (include)


CMake Deprecation Warning at /usr/share/cmake-3.15/Modules/CMakeForceCompiler.cmake:89 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/david/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:39 (CMAKE_FORCE_CXX_COMPILER)
  CMakeFiles/3.15.5/CMakeSystem.cmake:6 (include)


-- BUILD_TYPE: Release
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/david/Warp-firmware/build/ksdk1.1/work/lib/ksdk_platform_lib/armgcc/KL03Z4
Scanning dependencies of target KsdkPlatformLib
[  5%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/system/src/clock/fsl_clock_manager.c.obj
[  5%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/osa/src/fsl_os_abstraction_bm.c.obj
[  5%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/system/src/clock/fsl_clock_manager_common.c.obj
[  7%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/system/src/clock/MKL03Z4/fsl_clock_MKL03Z4.c.obj
[  9%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/system/src/interrupt/fsl_interrupt_manager.c.obj
[ 11%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/system/src/hwtimer/fsl_hwtimer.c.obj
[ 13%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/system/src/hwtimer/fsl_hwtimer_systick.c.obj
[ 15%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/system/src/power/fsl_power_manager.c.obj
[ 17%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/adc16/fsl_adc16_hal.c.obj
[ 19%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/adc16/fsl_adc16_driver.c.obj
[ 21%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/adc16/fsl_adc16_common.c.obj
[ 23%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/cmp/fsl_cmp_hal.c.obj
[ 25%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/cmp/fsl_cmp_driver.c.obj
[ 26%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/cmp/fsl_cmp_common.c.obj
[ 28%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/cop/fsl_cop_hal.c.obj
[ 32%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/cop/fsl_cop_common.c.obj
[ 32%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/cop/fsl_cop_driver.c.obj
[ 34%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/gpio/fsl_gpio_hal.c.obj
[ 36%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/gpio/fsl_gpio_common.c.obj
[ 38%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/gpio/fsl_gpio_driver.c.obj
[ 40%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/i2c/fsl_i2c_hal.c.obj
[ 42%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/i2c/fsl_i2c_shared_function.c.obj
[ 44%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/i2c/fsl_i2c_common.c.obj
[ 46%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/i2c/fsl_i2c_master_driver.c.obj
[ 48%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/i2c/fsl_i2c_slave_driver.c.obj
[ 50%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/llwu/fsl_llwu_hal.c.obj
[ 51%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/lptmr/fsl_lptmr_hal.c.obj
[ 53%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/lptmr/fsl_lptmr_driver.c.obj
[ 55%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/lptmr/fsl_lptmr_common.c.obj
[ 57%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/lpuart/fsl_lpuart_hal.c.obj
[ 59%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/lpuart/fsl_lpuart_driver.c.obj
[ 61%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/lpuart/fsl_lpuart_common.c.obj
[ 63%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/mcglite/fsl_mcglite_hal.c.obj
[ 65%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/mcglite/fsl_mcglite_hal_modes.c.obj
[ 67%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/osc/fsl_osc_hal.c.obj
[ 69%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/port/fsl_port_hal.c.obj
[ 71%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/rtc/fsl_rtc_hal.c.obj
[ 73%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/rtc/fsl_rtc_driver.c.obj
[ 75%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/rtc/fsl_rtc_common.c.obj
[ 76%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/sim/MKL03Z4/fsl_sim_hal_MKL03Z4.c.obj
[ 78%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/spi/fsl_spi_hal.c.obj
[ 80%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/spi/fsl_spi_shared_function.c.obj
[ 82%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/spi/fsl_spi_master_driver.c.obj
[ 84%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/spi/fsl_spi_slave_driver.c.obj
[ 86%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/spi/fsl_spi_common.c.obj
[ 88%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/smc/fsl_smc_hal.c.obj
[ 90%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/pmc/fsl_pmc_hal.c.obj
[ 92%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/rcm/fsl_rcm_hal.c.obj
[ 94%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/hal/src/tpm/fsl_tpm_hal.c.obj
[ 96%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/tpm/fsl_tpm_common.c.obj
[ 98%] Building C object CMakeFiles/KsdkPlatformLib.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/tpm/fsl_tpm_driver.c.obj
[100%] Linking C static library release/libksdk_platform.a
[100%] Built target KsdkPlatformLib
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- TOOLCHAIN_DIR: /usr
CMake Deprecation Warning at /usr/share/cmake-3.15/Modules/CMakeForceCompiler.cmake:75 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/david/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:38 (CMAKE_FORCE_C_COMPILER)
  /usr/share/cmake-3.15/Modules/CMakeDetermineSystem.cmake:90 (include)


CMake Deprecation Warning at /usr/share/cmake-3.15/Modules/CMakeForceCompiler.cmake:89 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/david/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:39 (CMAKE_FORCE_CXX_COMPILER)
  /usr/share/cmake-3.15/Modules/CMakeDetermineSystem.cmake:90 (include)


-- BUILD_TYPE: Release
-- TOOLCHAIN_DIR: /usr
CMake Deprecation Warning at /usr/share/cmake-3.15/Modules/CMakeForceCompiler.cmake:75 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/david/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:38 (CMAKE_FORCE_C_COMPILER)
  CMakeFiles/3.15.5/CMakeSystem.cmake:6 (include)


CMake Deprecation Warning at /usr/share/cmake-3.15/Modules/CMakeForceCompiler.cmake:89 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/david/Warp-firmware/build/ksdk1.1/work/tools/cmake_toolchain_files/armgcc.cmake:39 (CMAKE_FORCE_CXX_COMPILER)
  CMakeFiles/3.15.5/CMakeSystem.cmake:6 (include)


-- BUILD_TYPE: Release
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/armgcc/Warp
Scanning dependencies of target Warp
[ 10%] Building ASM object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/startup/MKL03Z4/gcc/startup_MKL03Z4.S.obj
[ 10%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/utilities/src/fsl_misc_utilities.c.obj
[ 15%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/warp-kl03-ksdk1.1-boot.c.obj
[ 20%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/warp-kl03-ksdk1.1-powermodes.c.obj
[ 25%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devBMX055.c.obj
[ 30%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devMMA8451Q.c.obj
[ 35%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devHDC1000.c.obj
[ 40%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devMAG3110.c.obj
[ 45%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devL3GD20H.c.obj
[ 50%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devBME680.c.obj
[ 55%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devCCS811.c.obj
[ 60%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/devAMG8834.c.obj
[ 65%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/SEGGER_RTT.c.obj
[ 70%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/demos/Warp/src/SEGGER_RTT_printf.c.obj
[ 75%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/i2c/fsl_i2c_irq.c.obj
[ 80%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/drivers/src/spi/fsl_spi_irq.c.obj
[ 85%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/startup/MKL03Z4/system_MKL03Z4.c.obj
[ 90%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/platform/startup/startup.c.obj
[ 95%] Building C object CMakeFiles/Warp.dir/home/david/Warp-firmware/build/ksdk1.1/work/boards/Warp/gpio_pins.c.obj
[100%] Linking C executable release/Warp.elf
/usr/lib/gcc/arm-none-eabi/9.2.0/../../../../arm-none-eabi/bin/ld: release/Warp.elf section `.stack' will not fit in region `m_data'
/usr/lib/gcc/arm-none-eabi/9.2.0/../../../../arm-none-eabi/bin/ld: region m_data overflowed with stack and heap
/usr/lib/gcc/arm-none-eabi/9.2.0/../../../../arm-none-eabi/bin/ld: region `m_data' overflowed by 128 bytes
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/Warp.dir/build.make:347: release/Warp.elf] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/Warp.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
\n\nNow, run\n\n\t/Applications/SEGGER/JLink/JLinkExe -device MKL03Z32XXX4 -if SWD -speed 100000 -CommanderScript ../../tools/scripts/jlink.commands\n\n

GCC setup:

[david@derobe ksdk1.1]$ arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-none-eabi/9.2.0/lto-wrapper
Target: arm-none-eabi
Configured with: /build/arm-none-eabi-gcc/src/gcc-9.2.0/configure --target=arm-none-eabi --prefix=/usr --with-sysroot=/usr/arm-none-eabi --with-native-system-header-dir=/include --libexecdir=/usr/lib --enable-languages=c,c++ --enable-plugins --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-system-zlib --with-newlib --with-headers=/usr/arm-none-eabi/include --with-python-dir=share/gcc-arm-none-eabi --with-gmp --with-mpfr --with-mpc --with-isl --with-libelf --enable-gnu-indirect-function --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='Arch Repository' --with-bugurl=https://bugs.archlinux.org/ --with-multilib-list=rmprofile
Thread model: single
gcc version 9.2.0 (Arch Repository) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Will Not Fix This will not be addressed
Projects
None yet
Development

No branches or pull requests

4 participants