sim:module32 config build break under ubuntu linux.

MODULECC: chardev.c
cc1: error: code model 'large' not supported in the 32 bit mode
Makefile:79: recipe for target 'chardev.o' failed
make[4]: *** [chardev.o] Error 1


It seems caused by the below change.


@Takashi Yamamoto <yamam...@midokura.com> please take a look at it. Thanks.


commit b8b2ac4f2cc880359db7f821a53782b3061bb93c
Author: YAMAMOTO Takashi <yamam...@midokura.com>
Date:   Wed Jul 1 12:50:06 2020 +0900

    sim: Sync Linux CMODULEFLAGS with macOS

    Namely, always use -mcmodel=large.

    NuttX modules are loaded into the NuttX heap, which can be out of
    range for 32-bit relocations generated with -mcmodel=small.

    A possible alternative would be to use MAP_32BIT to allocate sim heap.
    But I prefer this approach because it's very convenient for me to
    be able to share modules between Linux and macOS sim.




Apache Jenkins Server <jenk...@builds.apache.org> 于2020年7月2日周四 下午1:36写道:

> See <
> https://builds.apache.org/job/NuttX-Nightly-Build/208/display/redirect>
>
> Changes:
>
>
> ------------------------------------------
> [...truncated 307.73 KB...]
>   Building NuttX...
>   Normalize sim/minibasic
>
> ====================================================================================
> Configuration/Tool: sim/tcpblaster
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
> --2020-07-02 05:28:18--
> https://github.com/ARMmbed/littlefs/archive/v2.2.1.tar.gz
> Resolving github.com (github.com)... 192.30.255.113
> Connecting to github.com (github.com)|192.30.255.113|:443... connected.
> HTTP request sent, awaiting response... 302 Found
> Location: https://codeload.github.com/ARMmbed/littlefs/tar.gz/v2.2.1
> [following]
> --2020-07-02 05:28:19--
> https://codeload.github.com/ARMmbed/littlefs/tar.gz/v2.2.1
> Resolving codeload.github.com (codeload.github.com)... 192.30.255.120
> Connecting to codeload.github.com (codeload.github.com)|192.30.255.120|:443...
> connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [application/x-gzip]
> Saving to: 'littlefs/v2.2.1.tar.gz'
>
> v2.2.1.tar.gz           [<=>                 ]       0  --.-KB/s
>      v2.2.1.tar.gz           [ <=>                ] 111.57K  --.-KB/s    in
> 0.01s
>
> 2020-07-02 05:28:19 (7.43 MB/s) - 'littlefs/v2.2.1.tar.gz' saved [114250]
>
>   Normalize sim/tcpblaster
>
> ====================================================================================
> Configuration/Tool: sim/touchscreen
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize sim/touchscreen
>
> ====================================================================================
> Configuration/Tool: sim/bas
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize sim/bas
>
> ====================================================================================
> Configuration/Tool: sim/mtdpart
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize sim/mtdpart
>
> ====================================================================================
> Configuration/Tool: sim/spiffs
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize sim/spiffs
>
> ====================================================================================
> Configuration/Tool: sim/ustream
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize sim/ustream
>
> ====================================================================================
> Configuration/Tool: sim/userfs
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize sim/userfs
>
> ====================================================================================
> Configuration/Tool: sim/rpproxy
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
> --2020-07-02 05:31:20--
> https://github.com/OpenAMP/libmetal/archive/v2020.04.0.zip
> Resolving github.com (github.com)... 192.30.255.113
> Connecting to github.com (github.com)|192.30.255.113|:443... connected.
> HTTP request sent, awaiting response... 302 Found
> Location: https://codeload.github.com/OpenAMP/libmetal/zip/v2020.04.0
> [following]
> --2020-07-02 05:31:20--
> https://codeload.github.com/OpenAMP/libmetal/zip/v2020.04.0
> Resolving codeload.github.com (codeload.github.com)... 192.30.255.120
> Connecting to codeload.github.com (codeload.github.com)|192.30.255.120|:443...
> connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [application/zip]
> Saving to: 'libmetal.zip'
>
> libmetal.zip            [<=>                 ]       0  --.-KB/s
>      libmetal.zip            [ <=>                ] 375.15K  --.-KB/s    in
> 0.06s
>
> 2020-07-02 05:31:20 (6.56 MB/s) - 'libmetal.zip' saved [384158]
>
> --2020-07-02 05:31:21--
> https://github.com/OpenAMP/open-amp/archive/v2020.04.0.zip
> Resolving github.com (github.com)... 192.30.255.112
> Connecting to github.com (github.com)|192.30.255.112|:443... connected.
> HTTP request sent, awaiting response... 302 Found
> Location: https://codeload.github.com/OpenAMP/open-amp/zip/v2020.04.0
> [following]
> --2020-07-02 05:31:21--
> https://codeload.github.com/OpenAMP/open-amp/zip/v2020.04.0
> Resolving codeload.github.com (codeload.github.com)... 192.30.255.120
> Connecting to codeload.github.com (codeload.github.com)|192.30.255.120|:443...
> connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [application/zip]
> Saving to: 'open-amp.zip'
>
> open-amp.zip            [<=>                 ]       0  --.-KB/s
>      open-amp.zip            [ <=>                ] 716.85K  --.-KB/s    in
> 0.07s
>
> 2020-07-02 05:31:21 (10.4 MB/s) - 'open-amp.zip' saved [734059]
>
>   Building NuttX...
>   Normalize sim/rpproxy
>
> ====================================================================================
> Configuration/Tool: sim/vpnkit
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize sim/vpnkit
>
> ====================================================================================
> Configuration/Tool: sim/dsptest
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
> --2020-07-02 05:32:22--
> https://github.com/ThrowTheSwitch/Unity/archive/v2.4.3.tar.gz
> Resolving github.com (github.com)... 192.30.255.112
> Connecting to github.com (github.com)|192.30.255.112|:443... connected.
> HTTP request sent, awaiting response... 302 Found
> Location: https://codeload.github.com/ThrowTheSwitch/Unity/tar.gz/v2.4.3
> [following]
> --2020-07-02 05:32:23--
> https://codeload.github.com/ThrowTheSwitch/Unity/tar.gz/v2.4.3
> Resolving codeload.github.com (codeload.github.com)... 192.30.255.120
> Connecting to codeload.github.com (codeload.github.com)|192.30.255.120|:443...
> connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [application/x-gzip]
> Saving to: 'v2.4.3.tar.gz'
>
> v2.4.3.tar.gz           [<=>                 ]       0  --.-KB/s
>      v2.4.3.tar.gz           [ <=>                ] 257.96K  --.-KB/s    in
> 0.02s
>
> 2020-07-02 05:32:23 (10.3 MB/s) - 'v2.4.3.tar.gz' saved [264150]
>
>   Normalize sim/dsptest
>
> ====================================================================================
> Configuration/Tool: qemu-i486/nsh
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize qemu-i486/nsh
>
> ====================================================================================
> Configuration/Tool: qemu-i486/ostest
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize qemu-i486/ostest
>
> ====================================================================================
> Configuration/Tool: qemu-intel64/nsh
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
> chip/intel64_head.S: Assembler messages:
> chip/intel64_head.S:281: Warning: ignoring changed section attributes for
> .text
> chip/intel64_head.S:485: Warning: ignoring changed section attributes for
> .bss
>   Normalize qemu-intel64/nsh
>
> ====================================================================================
> Configuration/Tool: qemu-intel64/ostest
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
> chip/intel64_head.S: Assembler messages:
> chip/intel64_head.S:281: Warning: ignoring changed section attributes for
> .text
> chip/intel64_head.S:485: Warning: ignoring changed section attributes for
> .bss
>   Normalize qemu-intel64/ostest
>
> ====================================================================================
> Configuration/Tool: esp32-core/smp
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize esp32-core/smp
>
> ====================================================================================
> Configuration/Tool: esp32-core/nsh
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize esp32-core/nsh
>
> ====================================================================================
> Configuration/Tool: esp32-core/ostest
>
> ------------------------------------------------------------------------------------
>   Cleaning...
>   Configuring...
>   Copy files
>   Select CONFIG_HOST_LINUX=y
>   Refreshing...
>   Building NuttX...
>   Normalize esp32-core/ostest
>
> ====================================================================================
> Build step 'Execute shell' marked build as failure
> Stopping Docker container after build completion
> $ docker kill
> 56dfdde412a2e47e001b916a03b45a4d15094dceb41f8749fb1a91ea58439c8f
> 56dfdde412a2e47e001b916a03b45a4d15094dceb41f8749fb1a91ea58439c8f
> $ docker rm --force
> 56dfdde412a2e47e001b916a03b45a4d15094dceb41f8749fb1a91ea58439c8f
> 56dfdde412a2e47e001b916a03b45a4d15094dceb41f8749fb1a91ea58439c8f
>

Reply via email to