You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2020/01/22 15:23:45 UTC

[incubator-nuttx] 01/03: Disable cxx new long to fix build break for some sam34 boards configs

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch pr145
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit ecc5142cf291c0daba7d0d4b54101aac72381a74
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Wed Jan 22 21:17:48 2020 +0800

    Disable cxx new long to fix build break for some sam34 boards configs
    
    Build fail log as below:
    CXX:  libxx_new.cxx
    libxx_new.cxx:66:7: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
       66 | void *operator new(unsigned long nbytes)
          |       ^~~~~~~~
    Makefile:102: recipe for target 'libxx_new.o' failed
    
    Signed-off-by: liuhaitao <li...@xiaomi.com>
---
 boards/arm/sam34/arduino-due/configs/nsh/defconfig    | 1 -
 boards/arm/sam34/sam4l-xplained/configs/nsh/defconfig | 1 -
 boards/arm/sam34/sam4s-xplained/configs/nsh/defconfig | 1 -
 3 files changed, 3 deletions(-)

diff --git a/boards/arm/sam34/arduino-due/configs/nsh/defconfig b/boards/arm/sam34/arduino-due/configs/nsh/defconfig
index 63cc7e5..3036ec3 100644
--- a/boards/arm/sam34/arduino-due/configs/nsh/defconfig
+++ b/boards/arm/sam34/arduino-due/configs/nsh/defconfig
@@ -18,7 +18,6 @@ CONFIG_ARMV7M_OABI_TOOLCHAIN=y
 CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
 CONFIG_BOARD_LOOPSPERMSEC=6965
 CONFIG_BUILTIN=y
-CONFIG_CXX_NEWLONG=y
 CONFIG_FS_PROCFS=y
 CONFIG_HAVE_CXX=y
 CONFIG_HAVE_CXXINITIALIZE=y
diff --git a/boards/arm/sam34/sam4l-xplained/configs/nsh/defconfig b/boards/arm/sam34/sam4l-xplained/configs/nsh/defconfig
index 4ae1350..1c74b2c 100644
--- a/boards/arm/sam34/sam4l-xplained/configs/nsh/defconfig
+++ b/boards/arm/sam34/sam4l-xplained/configs/nsh/defconfig
@@ -20,7 +20,6 @@ CONFIG_ARMV7M_OABI_TOOLCHAIN=y
 CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
 CONFIG_BOARD_LOOPSPERMSEC=3410
 CONFIG_BUILTIN=y
-CONFIG_CXX_NEWLONG=y
 CONFIG_DISABLE_ENVIRON=y
 CONFIG_HAVE_CXX=y
 CONFIG_HAVE_CXXINITIALIZE=y
diff --git a/boards/arm/sam34/sam4s-xplained/configs/nsh/defconfig b/boards/arm/sam34/sam4s-xplained/configs/nsh/defconfig
index 4cebef0..b6a0af6 100644
--- a/boards/arm/sam34/sam4s-xplained/configs/nsh/defconfig
+++ b/boards/arm/sam34/sam4s-xplained/configs/nsh/defconfig
@@ -21,7 +21,6 @@ CONFIG_ARMV7M_OABI_TOOLCHAIN=y
 CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
 CONFIG_BOARD_LOOPSPERMSEC=9186
 CONFIG_BUILTIN=y
-CONFIG_CXX_NEWLONG=y
 CONFIG_DISABLE_ENVIRON=y
 CONFIG_DISABLE_MOUNTPOINT=y
 CONFIG_HAVE_CXX=y