Re: correct combination (arch & abi) for rebulding gcc SRPM for RV64IMAFD on top of RISC-V Fedora image

2021-03-18 Thread Billa Surendra
Hi everyone,

Can anyone explain what is the difference between the following two
approaches for rebuilding GCC SRPM on RISC-V Fedora image. Here I have
changed the gcc.spec file.

*Method-1:*

%ifarch riscv64
--with-arch=rv64g --enable-multilib --with-multilib-list=lp64
%endif

*Result:*

#error "rv32i-based targets are not supported"


*Method-2:*


%ifarch riscv64
--with-arch=rv64g --disable-multilib
%endif

*Result:*

Here all library packages are going to /usr/lib folder path, but in-between
rebuilding process move commands are there, that are trying to move files
from /usr/lib64 path. But no file is there in /usr/lib64 path. all failed
move commands files are there in /usr/lib path.

If anyone understands my problem, Please explain why I am not able to
rebuild GCC SRPM with method-1. Is it compulsory for rebuilding gcc srpm
--enable-multilib --with-multilib-list=lp64 or method-1 also correct
process for rebuilding.

Thanks in advance
Billa
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: correct combination (arch & abi) for rebulding gcc SRPM for RV64IMAFD on top of RISC-V Fedora image

2021-03-17 Thread Billa Surendra
Is there any way to proceed for rebuilt gcc SRPM without C support ?
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: facing difficulty in selecting arch & abi combination for rebulding gcc SRPM on RISC-V Fedora

2021-03-16 Thread Billa Surendra
I thought new thread can get more attention from members. sorry for that.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


facing difficulty in selecting arch & abi combination for rebulding gcc SRPM on RISC-V Fedora

2021-03-16 Thread Billa Surendra
Dear all,

From last 10 days I am struggling to rebuilding  gcc-10.2.1-9.fc33.src.rpm  
SRPM on RISC-V Fedora image. Here I am planning to rebuilt this SRPM without 
compressed instruction support. Following changed I have done on gcc.spec file.

 %ifarch riscv64
--with-arch=rv64g --with-abi=lp64
%endif

Even by changing above two flags for different options. still i am not able to 
rebuilt it. Here I am listing all combinations and error result what I have 
tried for rebuilding gcc SRPM.

1. %ifarch riscv64
--with-arch=rv64g  --with-multilib


Result: #error "rv32i-based targets are not supported"


2. %ifarch riscv64
--with-arch=rv64imafd  --enable-multilib  --with-multilib-list=lp64 


Result:

unsupported --with-arch for --with-multilib-list
make[2]: *** [Makefile:4441: configure-stage1-gcc] Error 1
make[2]: Leaving directory 
'/root/rpmbuild/BUILD/gcc-10.2.1-20201125/obj-riscv64-redhat-linux'


3. %ifarch riscv64
--with-arch=rv64imafd --enable-multilib --with-multilib-list=lp64d

Result:

unsupported --with-arch for --with-multilib-list
make[2]: *** [Makefile:4441: configure-stage1-gcc] Error 1
make[2]: Leaving directory 
'/root/rpmbuild/BUILD/gcc-10.2.1-20201125/obj-riscv64-redhat-linux'


4. %ifarch riscv64
--with-arch=rv64g --with-abi=lp64d --with-multilib-list=lp64d

Result: 

unsupported --with-arch for --with-multilib-list
make[2]: *** [Makefile:4441: configure-stage1-gcc] Error 1


5. %ifarch riscv64
--with-arch=rv64g --with-abi=lp64 --with-multilib-list=lp64


Result: unsupported --with-arch for --with-multilib-list


6. %ifarch riscv64
--with-arch=rv64g --enable-multilib

Result: #error "rv32i-based targets are not supported"


7. %ifarch riscv64
--with-arch=rv64g --with-abi=lp64

Result: #error "rv32i-based targets are not supported"


8.  %ifarch riscv64
--with-arch=rv64g --with-multilib-generator="rv64ima-lp64--f"

Result: #error "rv32i-based targets are not supported"


9. %ifarch riscv64
--with-arch=rv64g --with-abi=lp64 
--with-multilib-generator="rv64ima-lp64--f"   

Result: error: #error "rv32i-based targets are not supported"


10. %ifarch riscv64
--with-arch=rv64g --enable-multilib 
--with-multilib-generator="rv64ima-lp64--f" 


Result: #error "rv32i-based targets are not supported"


Here very important observation I have noted. when I am giving below option

%ifarch riscv64
--with-arch=rv64g --disable-multilib

Here all library packages are going to /usr/lib folder path, but in-between 
rebuilding process move commands are there, that are trying to move files from 
/usr/lib64 path. But no file is there in /usr/lib64 path. all falied move 
commads files are there in /usr/lib path.


 
Can anyone please spend some time on this issue and help me out for successfull 
rebulding gcc SRPM. Please suggest perfect combination for sucessfull 
rebuilding. I hope someone faced same problem before i think, thier expreince 
will heplfull for me.

Thanks
Billa Surendra


___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: correct combination (arch & abi) for rebulding gcc SRPM for RV64IMAFD on top of RISC-V Fedora image

2021-03-16 Thread Billa Surendra
Dear all,

From last 10 days I am struggling to rebuilding  gcc-10.2.1-9.fc33.src.rpm  
SRPM on RISC-V Fedora image. Here I am planning to rebuilt this SRPM without 
compressed instruction support. Following changed I have done on gcc.spec file.

 %ifarch riscv64
--with-arch=rv64g --with-abi=lp64
%endif

Even by changing above two flags for different options. still i am not able to 
rebuilt it. Here I am listing all combinations and error result what I have 
tried for rebuilding gcc SRPM.

1. %ifarch riscv64
--with-arch=rv64g  --with-multilib


Result: #error "rv32i-based targets are not supported"


2. %ifarch riscv64
--with-arch=rv64imafd  --enable-multilib  --with-multilib-list=lp64 


Result:

unsupported --with-arch for --with-multilib-list
make[2]: *** [Makefile:4441: configure-stage1-gcc] Error 1
make[2]: Leaving directory 
'/root/rpmbuild/BUILD/gcc-10.2.1-20201125/obj-riscv64-redhat-linux'


3. %ifarch riscv64
--with-arch=rv64imafd --enable-multilib --with-multilib-list=lp64d

Result:

unsupported --with-arch for --with-multilib-list
make[2]: *** [Makefile:4441: configure-stage1-gcc] Error 1
make[2]: Leaving directory 
'/root/rpmbuild/BUILD/gcc-10.2.1-20201125/obj-riscv64-redhat-linux'


4. %ifarch riscv64
--with-arch=rv64g --with-abi=lp64d --with-multilib-list=lp64d

Result: 

unsupported --with-arch for --with-multilib-list
make[2]: *** [Makefile:4441: configure-stage1-gcc] Error 1


5. %ifarch riscv64
--with-arch=rv64g --with-abi=lp64 --with-multilib-list=lp64


Result: unsupported --with-arch for --with-multilib-list


6. %ifarch riscv64
--with-arch=rv64g --enable-multilib

Result: #error "rv32i-based targets are not supported"


7. %ifarch riscv64
--with-arch=rv64g --with-abi=lp64

Result: #error "rv32i-based targets are not supported"


8.  %ifarch riscv64
--with-arch=rv64g --with-multilib-generator="rv64ima-lp64--f"

Result: #error "rv32i-based targets are not supported"


9. %ifarch riscv64
--with-arch=rv64g --with-abi=lp64 
--with-multilib-generator="rv64ima-lp64--f"   

Result: error: #error "rv32i-based targets are not supported"


10. %ifarch riscv64
--with-arch=rv64g --enable-multilib 
--with-multilib-generator="rv64ima-lp64--f" 


Result: #error "rv32i-based targets are not supported"


Here very important observation I have noted. when I am giving below option

%ifarch riscv64
--with-arch=rv64g --disable-multilib

Here all library packages are going to /usr/lib folder path, but in-between 
rebuilding process move commands are there, that are trying to move files from 
/usr/lib64 path. But no file is there in /usr/lib64 path. all falied move 
commads files are there in /usr/lib path.


 
Can anyone please spend some time on this issue and help me out for successfull 
rebulding gcc SRPM. Please suggest perfect combination for sucessfull 
rebuilding. I hope someone faced same problem before i think, thier expreince 
will heplfull for me.

Thanks
Billa Surendra


___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


correct combination (arch & abi) for rebulding gcc SRPM for RV64IMAFD on top of RISC-V Fedora image

2021-03-11 Thread Billa Surendra
Dear All,
I am trying to rebuild gcc SRPM for RISC-V architecture (without compressed 
instruction support). Can any one please give some clarity, about which 
combination is correct for native compiler without compressed instruction 
support.  

These are the combinations:
1. --with-arch=rv64g --with-multilib
2. --with-arch=rv64gc --with-abi=lp64d --with-multilib-list=lp64d  (Default : 
not working)
3. --with-arch=rv64gc  --with-newlib
4.--with-arch=rv64gc  --with-newlib --disable-multilib

If a perfect combination is not listed above, Please help me out which one is 
the correct combination. I am planning to rebuld gcc SRPM for RV64IMAFD

Thanks in advance
Billa
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: srpm rebuilding on RISC-V fedora image

2021-03-08 Thread Billa Surendra
Dear David,

Thanks for your help.. I have successfully created RISC-V arch temporary config 
file for MOCK. Tried rebuilding SRPM using MOCK, its successfully rebuilt.

Thanks
BIlla
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: srpm rebuilding on RISC-V fedora image

2021-03-03 Thread Billa Surendra

Without Correcting right URL to fedora-33-riscv64.cfg file we can not use MOCK 
for rebuilding SRPM's for RISC-V architecture.  Can anyone please suggest what 
I can do now to correct it?. How can I contact MirrorManager to correct the URL 
to the right location?.

Thanks in advance
Billa
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: fedora SRPM auto building

2021-01-24 Thread Billa Surendra
Dear all,

I am trying to install RPM on riscv target  (QEMU), but its throwing error.
Even Though gzip/bzip2/xz are installed in target.

Error:










*/home # uname -aLinux C-DAC 5.4.1 #1 SMP Wed Dec 30 17:01:02 IST 2020
riscv64 GNU/Linux/home # rpm -i
calendar-1.28-4.20140613cvs.fc33.riscv64.rpm rpm: no gzip/bzip2/xz
magic/home # which gzip/bin/gzip/home # which bzip2/usr/bin/bzip2/home #
which xz/usr/bin/xz*

Can anyone please suggest what to do now to resolve the above issue.

Thank you
Billa








On Tue, Jan 19, 2021 at 2:54 PM Richard W.M. Jones 
wrote:

> Adding Fedora devel list since this is a Fedora development question,
> not specific to RISC-V.  I'll also note that you've asked this same or
> very similar question several times before, over years:
>
>
> https://lists.fedoraproject.org/archives/search?mlist=devel%40lists.fedoraproject.org=Billa+Surendra
>
> I can't help you unless you help yourself.  Anyway ...
>
> On Tue, Jan 19, 2021 at 12:06:38PM +0530, Billa Surendra wrote:
> > Dear rwmjones,
> >
> > I am attempting to rebuild Fedora SRPM's for riscv64 to be used with QEMU
> > emulator with help of stage-4-disc image by using temporary autobuilder
> for
> > Fedora/RISC-V. It takes source
> > RPMs (SRPMs) from Koji, and also SRPMs that can be supplied locally. I
> have
> > given set of SRPM's as input and it's started taking SRPM's for building
> but
> > result i.e RPM's are not generating. Its giving network unreachble error.
> > Please tell me whether autobuilder for Fedora/RISC-V currently
> maintained or
> > not ? If autobuilder not maintained right now, What is the solution for
> > rebuilding SRPM's on top of stage-4 disc image.
>
> Firstly don't use the stage 4 disk image.  That was the temporary
> method we used over 4 years ago while bootstrapping.  Use the regular
> disk image.  There are instructions here:
>
> https://fedoraproject.org/wiki/Architectures/RISC-V/Installing
>
> Once you have Fedora on RISC-V installed on qemu, just rebuild SRPMs
> as you would on any other architecture.  You do not need to use the
> autobuilder - it was a hack that I wrote before we had Koji ported to
> RISC-V.  You also don't need to do anything special because it's
> RISC-V.  There are instructions here for single SRPMs:
>
> https://wiki.centos.org/HowTos/RebuildSRPM
>
> To install Koji (a lot of work) you probably want to start here:
>
> https://fedoraproject.org/wiki/Koji
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-p2v converts physical machines to virtual machines.  Boot with a
> live CD or over the network (PXE) and turn machines into KVM guests.
> http://libguestfs.org/virt-v2v
>
>
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Fedora without compressed instruction support

2019-12-05 Thread Billa Surendra
Dear David Abdurachmanov,

I have seen your presentation about fedora bootstrap on RV64, it was very
nice presentation actually. I am planning to boot a RISC-V Fedora on QEMU
Emulator, but I want to do some changes in fedora distro. Fedora distro
without compressed instruction support require for me, for this I have
written some steps where I can do changes. This steps completely I have
taken from your presentation. Please correct my steps whether I am going in
correct way or not ? I am new to fedora as well as bootstrap process.

Steps:

1. Installing QEMU (In x86 fedora host PC)
2. Installing GNU cross compiler tool chain (In this step I have installed
tool chain *https://github.com/riscv/riscv-gnu-toolchain
 *(RV64IMAFD support) in
fedora 86 host PC).
3. Install Berkly bootloader (In this step I have installed bootloader
*https://github.com/riscv/riscv-pk
* in fedora x86 host pc).
4. Linux kernel + basic rootfs (In this step taken Linux kernal from
*https://www.kernel.org/
* and cross compiled with above tool chain,
created basic rootfs).


>From Here I am not understanding the steps

5. Cross compile  and Install "RPM" packages and dependencies (where I can
get RPMs and dependencies list, after cross compiling RPMs whare I have to
install ?).
6. Install pre build RPMS (no idea about this step).
7. Rebuild RPMS from SRPMs natively (no idea about this step).
8. Install the new RPMS (no idea about this step).
9. Build stage4 image (no idea about this step).

Please correct my steps and give the solutions for step (5-9).

Thanks

Billa
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: I want to build a RISC-V Fedora for supporting RV64IMAFD only not for Compressed support

2019-12-04 Thread Billa Surendra
Dear all,
I am not working with them, I am working with different organization.
Please share the procedure how to compile all packages of fedora for  not
supporting compressed instruction.

Thanks
Billa
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


add me into group

2019-11-01 Thread Billa Surendra
billa.iitmad...@gmail.com
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


booting failed on qemu

2019-11-01 Thread Billa Surendra
I am trying to boot fedora with qemu, but  I am getting error. I have 
downloaded Fedora-Developer-Rawhide-20190126.n.0-sda1.raw and 
fw_payload-uboot-qemu-virt-smode.elf, trying to boot using qemu. Please can any 
one suggest me how to do.

error:

billa@billa:~/MDP/fedora$ qemu-system-riscv64 -nographic -machine virt  
   -smp 8 -m 2G -kernel fw_payload-uboot-qemu-virt-smode.elf 
-object rng-random,filename=/dev/urandom,id=rng0 -device 
virtio-rng-device,rng=rng0 -device virtio-blk-device,drive=hd0 -drive 
file=Fedora-Developer-Rawhide-20190126.n.0-sda1.raw,format=raw,id=hd0 
-device virtio-net-device,netdev=usernet -netdev 
user,id=usernet,hostfwd=tcp::1-:22
qemu-system-riscv64: plic: invalid register write: 01fc

OpenSBI v0.3 (May  6 2019 11:16:31)
   _  _
  / __ \  / |  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |) | |_) || |_
  \/| .__/ \___|_| |_|_/|/_|
| |
|_|

Platform Name  : QEMU Virt Machine
Platform HART Features : RV64ACDFIMSU
Platform Max HARTs : 8
Current Hart   : 0
Firmware Base  : 0x8000
Firmware Size  : 104 KB
Runtime SBI Version: 0.1

PMP0: 0x8000-0x8001 (A)
PMP1: 0x-0x (A,R,W,X)


U-Boot 2019.07-rc1 (May 05 2019 - 14:15:43 +)

CPU:   rv64imafdcsu
Model: riscv-virtio,qemu
DRAM:  2 GiB
exception code: 7 , Store/AMO access fault , epc 8020019c , ra 8020a43e
### ERROR ### Please RESET the board ###

Thanks in advance
Billa
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org