Hi Team,
As per RPM Distributions delayed again? - #16 by justme
RPM is not yet ready but i need the RPM urgently for my use case , hence i tried building the RPM as mentioned here
[Design] OpenSearch/Dashboards DEB/RPM Distribution Design Document · Issue #1452 · opensearch-project/opensearch-build · GitHub
and looks like its not working as expected.
Getting below error from the build command:
./build.sh manifests/2.0.0/opensearch-2.0.0.yml --distribution rpm --platform linux
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1m 6s
23 actionable tasks: 23 executed
+++ pwd
++ find /private/var/folders/1p/3z8hzlj16k51d7xnj6d2x4lc0000gq/T/tmpfopnklyg/k-NN -path '*build/distributions/*.zip'
+ zipPath=/private/var/folders/1p/3z8hzlj16k51d7xnj6d2x4lc0000gq/T/tmpfopnklyg/k-NN/build/distributions/opensearch-knn-2.0.0.0-rc1.zip
++ dirname /private/var/folders/1p/3z8hzlj16k51d7xnj6d2x4lc0000gq/T/tmpfopnklyg/k-NN/build/distributions/opensearch-knn-2.0.0.0-rc1.zip
+ distributions=/private/var/folders/1p/3z8hzlj16k51d7xnj6d2x4lc0000gq/T/tmpfopnklyg/k-NN/build/distributions
+ mkdir /private/var/folders/1p/3z8hzlj16k51d7xnj6d2x4lc0000gq/T/tmpfopnklyg/k-NN/build/distributions/lib
+ cp ./jni/release/libopensearchknn_common.jnilib ./jni/release/libopensearchknn_faiss.jnilib ./jni/release/libopensearchknn_nmslib.jnilib /private/var/folders/1p/3z8hzlj16k51d7xnj6d2x4lc0000gq/T/tmpfopnklyg/k-NN/build/distributions/lib
++ ldconfig -p
/private/var/folders/1p/3z8hzlj16k51d7xnj6d2x4lc0000gq/T/tmpfopnklyg/k-NN/scripts/build.sh: line 111: ldconfig: command not found
++ grep libgomp
++ cut -d ' ' -f 4
+ ompPath=
+ cp /private/var/folders/1p/3z8hzlj16k51d7xnj6d2x4lc0000gq/T/tmpfopnklyg/k-NN/build/distributions/lib
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
2022-04-29 01:51:57 ERROR Error building k-NN, retry with: ./build.sh manifests/2.0.0/opensearch-2.0.0.yml --component k-NN
Traceback (most recent call last):
File "/Users/dkn/git-repo/Dinesh_Repo/opensearch-build/./src/run_build.py", line 80, in <module>
sys.exit(main())
File "/Users/dkn/git-repo/Dinesh_Repo/opensearch-build/./src/run_build.py", line 68, in main
builder.build(build_recorder)
File "/Users/dkn/git-repo/Dinesh_Repo/opensearch-build/src/build_workflow/builder_from_source.py", line 55, in build
self.git_repo.execute(build_command)
File "/Users/dkn/git-repo/Dinesh_Repo/opensearch-build/src/git/git_repository.py", line 83, in execute
subprocess.check_call(command, cwd=cwd, shell=True)
File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'bash /private/var/folders/1p/3z8hzlj16k51d7xnj6d2x4lc0000gq/T/tmpfopnklyg/k-NN/scripts/build.sh -v 2.0.0 -q rc1 -p linux -a x64 -s false -o builds' returned non-zero exit status 64.
Has anyone build the RPM successfully in a Mac OS?