Closed
Description
Zig Version
0.15-dev
Steps to Reproduce and Observed Behavior
[07:46:36] [I] running embed sanity check
[07:46:36] [I] Entering dir: /home/m/static-php-cli/source/embed-test
[07:46:36] [I] [EXEC] zig cc -target native-native-gnu -Wno-date-time -o embed embed.c -fpic -O3 -fcf-protection -fstack-protector-strong -fstack-clash-protection -Wno-date-time -I/home/m/static-php-cli/buildroot/include -I/home/m/static-php-cli/buildroot/include/php -I/home/m/static-php-cli/buildroot/include/php/main -I/home/m/static-php-cli/buildroot/include/php/TSRM -I/home/m/static-php-cli/buildroot/include/php/Zend -I/home/m/static-php-cli/buildroot/include/php/ext -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack
-L/home/m/static-php-cli/buildroot/lib -lphp -lc -lwatcher-c -lyaml -luv -luuid -ltidy -lrdkafka -lrdkafka++ -lrdkafka-static -lsqlite3 -lpq -lpgport -lpgcommon -lxslt -lexslt -lodbc -lodbccr -lodbcinst -lfastlz -lmemcached -lmemcachedprotocol -lmemcachedutil -lhashkit -llz4 -lldap -llber -lMagick++-7.Q16HDRI -lMagickWand-7.Q16HDRI -lMagickCore-7.Q16HDRI -lheif -laom -lde265 -ltiff -lgmssl -lgmp -lintl -lfreetype -ljpeg -lturbojpeg -lwebp -lwebpdecoder -lwebpdemux -lwebpmux -lsharpyuv -lavif -lpng16 -lffi -lrabbitmq -lzip -lbz2 -lsodium -lreadline -lncurses -lonig -lqdbm -lcurl -lcares -lzstd -lnghttp2 -lngtcp2 -lngtcp2_crypto_ossl -lnghttp3 -lxml2 -licui18n -licuio -licuuc -licudata -llzma -liconv -lcharset -lbrotlidec -lbrotlienc -lbrotlicommon -lssh2 -levent -levent_core -levent_extra -levent_openssl -lssl -lcrypto -lacl -lattr -lz -lomp -ldl -lrt -lpthread -lm -lresolv -lutil -lstdc++
[07:46:36] [D] Executed at: /home/m/static-php-cli/src/SPC/util/UnixShell.php:95
error: unable to find dynamic system library 'omp' using strategy 'paths_first'. searched paths:
/home/m/static-php-cli/buildroot/lib/libomp.so
/home/m/static-php-cli/buildroot/lib/libomp.a
SPC\exception\RuntimeException
Expected Behavior
It should automatically find -lomp in /usr/lib64, since native-native is used?