cbalint13 opened a new pull request #7392:
URL: https://github.com/apache/tvm/pull/7392


   
   * The following error is encountered:
   
   ```
   RuntimeError: error while running command "arm-none-eabi-g++ 
-mcpu=cortex-m33 -std=c++11 -Wall -Werror
   ...
   ...
   /usr/lib64/python3.9/site-packages/tvm/src/runtime/crt/host/main.cc:106:18: 
   error: 'rand_r' was not declared in this scope; did you mean 'random'?
     106 |     int random = rand_r(&random_seed);
         |                  ^~~~~~
         |                  random
   ```
   
   * Now, POSIX ```rand_r()``` is not visible using ```-std=c++11```, one have 
to add ```-D_GNU_SOURCE``` or lower the 2011 requirement.
   
   ---
   
   The proposed PR fix the issue, also fixes missing propagation to 
```ldflags``` (the final binary compilation).
   
   @areusch , @manupa-arm , @mbrookhart  please help with the review.
   
   Thank you !
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to