Some tests failure when build systemML project - machine-learning

I cloned systemML project and follow the guide i can build the project using 'mvn clean package'. But i can't run all tests using 'mvn verify'.
Error like this
testCSVSingleVDenseMR(org.apache.sysml.test.integration.functions.data.FullReblockTest) Time elapsed: 2.109 sec <<< FAILURE!
java.lang.AssertionError: failed to run script ./src/test/scripts/functions/data/SingleReblockTest.dml
exception: org.apache.sysml.api.DMLException: org.apache.sysml.runtime.DMLRuntimeException: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program block generated from statement block between lines 22 and 23 -- Error evaluating instruction: jobtype = CSV_REBLOCK
I already have R3.2.3 in my path, but some dependence can't be installed successfully
Warning messages:
1: In install.packages(c("batch", "bitops", "boot", "caTools", "data.table", :
installation of package ‘openssl’ had non-zero exit status
2: In install.packages(c("batch", "bitops", "boot", "caTools", "data.table", :
installation of package ‘gdtools’ had non-zero exit status
3: In install.packages(c("batch", "bitops", "boot", "caTools", "data.table", :
installation of package ‘XML’ had non-zero exit status
4: In install.packages(c("batch", "bitops", "boot", "caTools", "data.table", :
installation of package ‘topicmodels’ had non-zero exit status
5: In install.packages(c("batch", "bitops", "boot", "caTools", "data.table", :
installation of package ‘httr’ had non-zero exit status
6: In install.packages(c("batch", "bitops", "boot", "caTools", "data.table", :
installation of package ‘svglite’ had non-zero exit status
7: In install.packages(c("batch", "bitops", "boot", "caTools", "data.table", :
installation of package ‘OAIHarvester’ had non-zero exit status
8: In install.packages(c("batch", "bitops", "boot", "caTools", "data.table", :
installation of package ‘covr’ had non-zero exit status

This is typically a file-permissions issue. I experienced a similar problem when first running SystemML on OS X.
A couple potential solutions are:
Set the scratch default in SystemML-config.xml to a temporary folder location. See https://issues.apache.org/jira/browse/SYSTEMML-251.
Set permissions of parent folders to 755.
A discussion of this issue appears on the SystemML dev email list at: https://www.mail-archive.com/dev#systemml.incubator.apache.org/msg00442.html

Related

My build is failing as jenkins could not download jdk

How to reslove this issue in jenkins.
Installing /root/.jenkins/tools/hudson.model.JDK/java_1.8/jdk.sh
[java_1.8] $ /root/.jenkins/tools/hudson.model.JDK/java_1.8/jdk.sh -noregister
/root/.jenkins/tools/hudson.model.JDK/java_1.8/jdk.sh: 2: Syntax error: newline unexpected
FATAL: command execution failed
hudson.AbortException: Failed to install JDK. Exit code=2

Error while compiling HAProxy from source

I got this error while trying to compile the HAProxy 2.2 with LUA version 5.3. I'm on trying to do it on CentOS7(arm64).
[root#08d17a479616 haproxy-2.2.22]# make TARGET=linux-glibc USE_PCRE=1 USE_PCRE_JIT=1 USE_OPENSSL=1 USE_ZLIB=1 USE_LINUX_TPROXY=1 USE_REGPARM=1 USE_LUA=1 USE_THREAD=1 USE_TFO=1
CC src/version.o
LD haproxy
/usr/bin/ld: cannot find -latomic
collect2: error: ld returned 1 exit status
More logs;
attempt to open //usr/aarch64-redhat-linux/lib64/libatomic.so failed
attempt to open //usr/aarch64-redhat-linux/lib64/libatomic.a failed
attempt to open //usr/lib64/libatomic.so failed
attempt to open //usr/lib64/libatomic.a failed
attempt to open //usr/local/lib64/libatomic.so failed
attempt to open //usr/local/lib64/libatomic.a failed
attempt to open //lib64/libatomic.so failed
attempt to open //lib64/libatomic.a failed
attempt to open //usr/aarch64-redhat-linux/lib/libatomic.so failed
attempt to open //usr/aarch64-redhat-linux/lib/libatomic.a failed
attempt to open //usr/local/lib/libatomic.so failed
attempt to open //usr/local/lib/libatomic.a failed
attempt to open //lib/libatomic.so failed
attempt to open //lib/libatomic.a failed
attempt to open //usr/lib/libatomic.so failed
attempt to open //usr/lib/libatomic.a failed
ld: cannot find -latomic
[root#08d17a479616 haproxy-2.2.22]#
What I've tried until now is to create a symlink to the libatomic.so with this
ln -s /usr/lib64/libatomic.so.1.2.0 /usr/lib/libatomic.so
And installed the missing GNU library from here with the steps outline in the article.
Install CentOS SCLo RH repository:yum install centos-release-scl-rh
Install devtoolset-7-libatomic-devel rpm package:
# yum install devtoolset-7-libatomic-devel
What should I do to resolve it ?
Fixed by installing this package and it goes through to a new error, which I've outlitned in this question.
New question: New questions
To apply the fix for CentOS7 arm, use this link and the instructions on how to install the package.
Package Link
Install systemd-devel rpm package: yum install systemd-devel

Error: Failed to install expo package with error: yarnpkg exited with non-zero code: 1 yarnpkg exited with non-zero code: 1

I've been trying to upgrade the SDK for expo from version 40.0.1 to 44.0.0. However, i'm still getting this error
✖ Failed to install expo package with error: yarnpkg exited with non-zero code: 1
yarnpkg exited with non-zero code: 1
Error: yarnpkg exited with non-zero code: 1
at ChildProcess.completionListener (/usr/local/lib/node_modules/expo-cli/node_modules/#expo/spawn-async/src/spawnAsync.ts:65:13)
at Object.onceWrapper (node:events:476:26)
at ChildProcess.emit (node:events:369:20)
at maybeClose (node:internal/child_process:1067:16)
at Socket. (node:internal/child_process:453:11)
at Socket.emit (node:events:369:20)
at Pipe. (node:net:665:12)
...
at spawnAsync (/usr/local/lib/node_modules/expo-cli/node_modules/#expo/spawn-async/src/spawnAsync.ts:26:19)
at YarnPackageManager._runAsync (/usr/local/lib/node_modules/expo-cli/node_modules/#expo/package-manager/src/NodePackageManagers.ts:327:31)
at YarnPackageManager.addWithParametersAsync (/usr/local/lib/node_modules/expo-cli/node_modules/#expo/package-manager/src/NodePackageManagers.ts:272:16)
at YarnPackageManager.addAsync (/usr/local/lib/node_modules/expo-cli/node_modules/#expo/package-manager/src/NodePackageManagers.ts:276:5)
at upgradeAsync (/usr/local/lib/node_modules/expo-cli/src/commands/info/upgradeAsync.ts:496:7)
at actionAsync (/usr/local/lib/node_modules/expo-cli/src/commands/info/upgradeAsync.ts:42:3)
I've tried every suggestion from similar issues on this site, but I've had no help. Does anyone have any suggestions.
Have you tried this answer?
https://stackoverflow.com/a/72332470/5516544
Try deleting yarn.lock file & .expo folder and try running expo upgrade again.
It worked for me upgrading expo from 44 -> 45

How to fix yarn ios build error in React Native?

When I run:
yarn ios
it throws this error:
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/applemacbook/Library/Developer/Xcode/DerivedData/AwesomeProject-dqnlgtsougxpuwdghrmclyntrevj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-1FA6E1255725D37983E4E9DE0E0B6F29.sh
(1 failure)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Build Failed: Asset Catalog Compile Error : failed with exit code 1

I am getting this error while Archiving the project. Don't know why i am getting this error. Researched couldn't figure it out
Command /Applications/Xcode.app/Contents/Developer/usr/bin/actool failed with exit code 1

Resources