When you download a file from internet, the file would have the attribute com.apple.quarantine
.
For example, when I downloaded gcc-arm-none-eabi-9-2019-q4-major-mac.tar.bz2
, the file had it.
% xattr Downloads/gcc-arm-none-eabi-9-2019-q4-major-mac.tar.bz2
com.apple.lastuseddate#PS
com.apple.macl
com.apple.metadata:kMDItemDownloadedDate
com.apple.metadata:kMDItemWhereFroms
com.apple.quarantine
If you unarchive this file without removing the attribute, you'll get into trouble when you build.
To remove this flag, run this command:
% xattr -d com.apple.quarantine Downloads/gcc-arm-none-eabi-9-2019-q4-major-mac.tar.bz2
Then, unarchive it.
% tar xf Downloads/gcc-arm-none-eabi-9-2019-q4-major-mac.tar.bz2
You can run the commands without prompt.
% ./gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gdb
GNU gdb (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 8.3.0.20190709-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
...
https�NTLMSSP%c�%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%s%s