Project

General

Profile

Bug #12151

Updated by Toomas Soome almost 2 years ago

Build errors with gcc 9: 
 <pre> 
     cc1: error: '_siglongjmp' specifies less restrictive attribute than its target 'siglongjmp': 'noreturn' [-Werror=missing-attributes] 
     ../i386/gen/siglongjmp.c:40:1: note: '_siglongjmp' target declared here 
        40 | siglongjmp(sigjmp_buf env, int val) 
           | ^~~~~~~~~~ 
    
     cc1: error: '_thr_exit' specifies less restrictive attribute than its target 'thr_exit': 'noreturn' [-Werror=missing-attributes] 
     ../port/threads/thr.c:988:1: note: '_thr_exit' target declared here 
       988 | thr_exit(void *status) 
           | ^~~~~~~~ 
     cc1: all warnings being treated as errors 
 </pre> 

 The weak symbols are not attributed accordingly and compiler is warning us about the fact. 

 Testing done: build/install/boot.

Back