Open netllama opened 2 years ago
@netllama Did you build with -DCMAKE_BUILD_TYPE=Release? It sets compiler option -O2 which is needed by D_FORTIFY_SOURCE=2.
@hao-yao i ran make with no other options or variables.
Same error here. Adding -DCMAKE_BUILD_TYPE=Release in build.sh, function build_hal_adaptor() {
so that cmake call looks like
command cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/install ../
Allowed to compile smoothly build_hal_adaptor
On a Fedora36 system, attempting to run the make command throws a large number of warnings such as the following:
This patch makes the failures go away, but I don't understand whether there will be performance impact as a result of the change: