[riot-notifications] [RIOT-OS/RIOT] toolchain/cflags: enable dwarf compression (save 50% HDD) (#12150)

Gaëtan Harter notifications at github.com
Mon Sep 2 16:27:35 CEST 2019


With `llvm`, I get some compilation errors, both in master and this PR but are unrelated with this change.

So `llvm` is correctly handling the `-gz` for all the tested architectures.

It somehow looks like `llvm` does some compression by default as the size difference is not as big, but it is still present.

PR: 421296 (4.2GB)
master: 455588 (4.6GB)


For reference the compilation errors:

<details><summary>nucleo-f767zi with cpu/stm32_common/periph/eth.c</summary>

```
Building for b-l475e-iot01a ... /data/riotbuild/riotbase/cpu/stm32_common/periph/i2c_1.c:315:49: error: format specifies type 'unsigned long' but the argument has type                                                                                                                   
      'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]                                                                                                                                                                                                                                  
    DEBUG("[i2c] start: Setting CR2=0x%08lX\n", cr2);                                                                                                                                                                                                                                     
                                      ~~~~~     ^~~                                                                                                                                                                                                                                       
                                      %08X                                                                                                                                                                                                                                                
/data/riotbuild/riotbase/core/include/debug.h:97:50: note: expanded from macro 'DEBUG'                                                                                                                                                                                                    
#define DEBUG(...) if (ENABLE_DEBUG) DEBUG_PRINT(__VA_ARGS__)                                                                                                                                                                                                                             
                                                 ^~~~~~~~~~~                                                                                                                                                                                                                              
/data/riotbuild/riotbase/core/include/debug.h:56:20: note: expanded from macro 'DEBUG_PRINT'                                                                                                                                                                                              
            printf(__VA_ARGS__); \                                                                                                                                                                                                                                                        
                   ^~~~~~~~~~~                                                                                                                                                                                                                                                            
/data/riotbuild/riotbase/cpu/stm32_common/periph/i2c_1.c:380:60: error: format specifies type 'unsigned long' but the argument has type                                                                                                                                                   
      'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]                                                                                                                                                                                                                                  
            DEBUG("[i2c] wait_isr_set: ISR 0x%08lX set\n", mask);                                                                                                                                                                                                                         
                                             ~~~~~         ^~~~                                                                                                                                                                                                                           
                                             %08X                                                                                                                                                                                                                                         
/data/riotbuild/riotbase/core/include/debug.h:97:50: note: expanded from macro 'DEBUG'                                                                                                                                                                                                    
#define DEBUG(...) if (ENABLE_DEBUG) DEBUG_PRINT(__VA_ARGS__)                                                                                                                                                                                                                             
                                                 ^~~~~~~~~~~                                                                                                                                                                                                                              
/data/riotbuild/riotbase/core/include/debug.h:56:20: note: expanded from macro 'DEBUG_PRINT'                                                                                                                                                                                              
            printf(__VA_ARGS__); \                                                                                                                                                                                                                                                        
                   ^~~~~~~~~~~                                                                       
```
</details>

<details><summary>b-l475e-iot01a with cpu/stm32_common/periph/i2c_1.c</summary>

```
Building for nucleo-f767zi ... /data/riotbuild/riotbase/cpu/stm32_common/periph/eth.c:101:31: error: format specifies type 'unsigned long' but the argument has type                                                                                                                      
      'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]                                                                                                                                                                                                                                  
    DEBUG("stm32_eth: %lx\n", ETH->MACMIIDR);                                                                                                                                                                                                                                             
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~                                                                                                                                                                                                                                              
                      %x                                                                                                                                                                                                                                                                  
/data/riotbuild/riotbase/cpu/stm32f7/include/vendor/stm32f767xx.h:1581:29: note: expanded from macro 'ETH'                                                                                                                                                                                
#define ETH                 ((ETH_TypeDef *) ETH_BASE)                                                                                                                                                                                                                                    
                            ^                                                                                                                                                                                                                                                             
/data/riotbuild/riotbase/core/include/debug.h:97:50: note: expanded from macro 'DEBUG'                                                                                                                                                                                                    
#define DEBUG(...) if (ENABLE_DEBUG) DEBUG_PRINT(__VA_ARGS__)                                                                                                                                                                                                                             
                                     ~~~~~~~~~~~~^~~~~~~~~~~~                                                                                                                                                                                                                             
/data/riotbuild/riotbase/core/include/debug.h:56:20: note: expanded from macro 'DEBUG_PRINT'                                                                                                                                                                                              
            printf(__VA_ARGS__); \                                                                                                                                                                                                                                                        
                   ^~~~~~~~~~~                                                                                                                                                                                                                                                            
1 error generated.
```
</details>

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12150#issuecomment-527167098
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190902/dc53c9fa/attachment.htm>


More information about the notifications mailing list