Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access request for @advancedwebdeveloper (Ivan) to RISC-V system #1782

Open
1 of 4 tasks
sxa opened this issue Dec 23, 2020 · 13 comments
Open
1 of 4 tasks

Access request for @advancedwebdeveloper (Ivan) to RISC-V system #1782

sxa opened this issue Dec 23, 2020 · 13 comments

Comments

@sxa
Copy link
Member

sxa commented Dec 23, 2020

Access level:

  • Non-privileged
  • jenkins user
  • root/Administrative
  • other (Please specify):

System for which access is needed: Any of the RISC-V unleashed ones

Please explain why you need this access including whether it is a temporary or permanent request: Time TBC but @advancedwebdeveloper is an enthusiast looking to debug problems he's having with running java code on a real RISC-V board instead of an emulated one so I'm happy for him to have it until we start using the system more heavily :-)

@advancedwebdeveloper
Copy link

Hello.
Indeed there was an interest to work on porting build automation tools:

  • Bazel
  • sbt
  • Gradle
    .

Also there is a demand for data ingestion, data flow solutions to be ported - so Apache NiFi and Apache MiNiFi (Java port could be of help).
As for MiNiFi - board's peripherals could be involved in testing, for specific end-user scenarios (data ingestion).
@bunkertor could have some ideas/propositions, from Cloudera's side.

As for Apache NiFi - I am super sure that there would be some building issues/bugs/blockers. Would be glad to exercise in resolving those - especially due to a vast number of JNI bridging, done for non-Java scripting automation.

Please let know which OS would be suggested. RISC-V would bring significant impact on performance, depending on involved ISA extensions/capabilities. User space applications, including JVM, would be affected by interrupt scenarios.

@sxa
Copy link
Member Author

sxa commented Jan 2, 2021

Access now granted to one of our systems :-)

@karianna karianna added this to the January 2021 milestone Jan 3, 2021
@advancedwebdeveloper
Copy link

I started to compile Clang 11 RC2 ("12") - but lost the connectivity with the board, threw SSH.
Perhaps a temporary issue between Tier 2 providers.

I had some problems with OpenJDK builds. I would require a boot JDK - but I can't install OpenJDK 16, since I have no rights.
I was not able to properly extract it from .deb packages.
There is no standalone pre-built version - so I might try to build various JDK versions, for RISC-V.
Please provide some JDK - there is none available, currently.
I could be autonomous, afterwards.

@advancedwebdeveloper
Copy link

I was able to build Clang. llc doesn't identify the CPU - so I would have to resolve this later.
I am missing glibc-devel , libgcc , libc6-dev , libc6-dev-riscv64-cross . Could you install those?

@advancedwebdeveloper
Copy link

Ping.
Such package might be helpful:
libcap-dev libcap-ng-dev libcap-ng-utils libcap-ng0 libcap2 libcap2-bin libcap2-bin python3-cap-ng

@sxa
Copy link
Member Author

sxa commented Jan 7, 2021

Done :-) We've had a few panics on this week so haven't been able to look at this til now (also I'd rather avoid deviating from the base configuration as much as is practical).

Some in your earlier request aren't available in the repositories though:

Reading state information... Done
E: Unable to locate package glibc-devel
E: Unable to locate package libgcc
#

@advancedwebdeveloper
Copy link

Done :-) We've had a few panics on this week so haven't been able to look at this til now

Thanks a lot.

(also I'd rather avoid deviating from the base configuration as much as is practical).
Well, userspace builds require exact version match - and I had some problems with obtaining exact version of Debian source packages.
But I don't think that there might be too many critical libraries, like this.

Some in your earlier request aren't available in the repositories though:

Reading state information... Done
E: Unable to locate package glibc-devel
E: Unable to locate package libgcc
#

Yes, that was my mistake: I have mentioned that myself, after requesting non-provided packages. Looks like the same binaries and static, shared libraries are packaged differently (on this port of Debian).

Now, regarding the practical side of the question.
GCC works fine (was able to invoke CMake - it helped to configure and generate Makefile for Apache MiNiFi).
Clang works, but requires to pass such flags (to both "clang" and "clang++" executables ):

-L/usr/lib/riscv64-linux-gnu -B/usr/lib/riscv64-linux-gnu

@advancedwebdeveloper
Copy link

Just a tiny tip - but the last lacking puzzle was to specify an additional path, for searching headers (require for validating the presence of pthread):

-I/usr/include/riscv64-linux-gnu

@advancedwebdeveloper
Copy link

I am missing such packages:
autotools-dev
libtool

@sxa
Copy link
Member Author

sxa commented Jan 14, 2021

autotools-dev and libtool now installed

@advancedwebdeveloper
Copy link

Please let know whether the board would be available again.
Can't SSH into it, for about a week.

I was heading to build Hadoop (as also as many other projects), thanks to the patched https://github.com/trustin/os-maven-plugin (it has RISC-V arch. among supported ones)

@advancedwebdeveloper
Copy link

@Haroon-Khel Haroon-Khel modified the milestones: February 2021, March 2021 Mar 2, 2021
@Haroon-Khel Haroon-Khel modified the milestones: March 2021, April 2021 Apr 6, 2021
@Haroon-Khel Haroon-Khel modified the milestones: April 2021, May 2021 May 18, 2021
@Haroon-Khel Haroon-Khel modified the milestones: May 2021, June 2021 Jun 21, 2021
@sxa sxa modified the milestones: June 2021, July 2021 Jul 5, 2021
@Haroon-Khel Haroon-Khel modified the milestones: July 2021, August Aug 3, 2021
@sxa sxa modified the milestones: August 2021, Icebox / On Hold Dec 1, 2021
@sxa
Copy link
Member Author

sxa commented Dec 1, 2021

Access granted today to my Unleashed board too :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants