Gsoc improvement for next time

2020-05-04 Thread suyash singh
Hello, unfortunately I did not get accepted to gsoc 2020. May I know how can I improve for next time? ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: clang sparc: generated .o file incompatible with elf64-x86-64

2020-05-04 Thread suyash singh
ngh234/rtems-notes/blob/master/README.md On Mon, May 4, 2020 at 9:41 PM suyash singh wrote: > with sparc-unknown-rtems5 > > clang version 11.0.0 (https://github.com/llvm/llvm-project.git > 05606329e2353e37492bcf567ab4a4b27bceb65c) > Target: sparc-unknown-rtems5 > Thread model

Re: clang sparc: generated .o file incompatible with elf64-x86-64

2020-05-04 Thread suyash singh
xit code 1 (use -v to see invocation) On Mon, May 4, 2020 at 9:40 PM suyash singh wrote: > Also can you add -v and send the output? > > > clang version 11.0.0 (https://github.com/llvm/llvm-project.git > 05606329e2353e37492bcf567ab4a4b27bceb65c) > Target: sparc > Thread model: posi

Re: clang sparc: generated .o file incompatible with elf64-x86-64

2020-05-04 Thread suyash singh
Try with > riscv. > > On Mon, 4 May 2020 at 13:34, Hesham Almatary > wrote: > >> >> >> On Mon, 4 May 2020 at 13:19, Joel Sherrill wrote: >> >>> >>> >>> On Mon, May 4, 2020, 7:16 AM suyash singh >>> wrote: >>> >&g

clang sparc: generated .o file incompatible with elf64-x86-64

2020-05-04 Thread suyash singh
I am trying to cross compile with clang and run Undefined Behavior Sanitizer for .c file *Command I am running* clang -target sparc -integrated-as -fuse-ld=lld -fsanitize=undefined test1.c clang is the cross compiler sparc is the target architecture. -integrated-as to use the llvm assembler

Re: rtems assembler

2020-05-02 Thread suyash singh
t; On Thu, 30 Apr 2020 at 15:56, suyash singh > wrote: > >> after adding -v >> https://hastebin.com/epijunegix.coffeescript >> >> with sparc-unknown-elf >> https://hastebin.com/ijohidofus.coffeescript >> >> (target getting an extra unknown for some

Re: rtems assembler

2020-04-30 Thread suyash singh
bsp with riscv) On Thu, Apr 30, 2020 at 8:08 PM Hesham Almatary wrote: > > > On Thu, 30 Apr 2020 at 15:21, suyash singh > wrote: > >> I think it doesn't support sparc backend although it does not give >> unknown target error. >> >> I compiled this c

Re: rtems assembler

2020-04-30 Thread suyash singh
oh I mean for target which does not exist like "hello" it says "unknown target" I wrote that as example to say that sparc-unknown-rtems5 is detected as valid target but not used On Thu, Apr 30, 2020 at 7:52 PM Joel Sherrill wrote: > > > On Thu, Apr 30, 2020 at

Re: rtems assembler

2020-04-30 Thread suyash singh
n Thu, Apr 30, 2020 at 7:07 PM Hesham Almatary wrote: > > > On Thu, 30 Apr 2020 at 14:18, suyash singh > wrote: > >> >> I am using ubuntu 18.04 terminal >> >> Here's the python script I wrote to find all include files and run clang >> -fsanitize >&

Re: rtems assembler

2020-04-30 Thread suyash singh
ubprocess.PIPE) #result=subprocess.run(['./a.out'],cwd=relativedir, stdout=subprocess.PIPE) On Thu, Apr 30, 2020 at 6:44 PM Hesham Almatary wrote: > > > On Thu, 30 Apr 2020 at 13:51, Joel Sherrill wrote: > >> >> >> On Thu, Apr 30, 2020 at 7:34 AM suyash singh >>

rtems assembler

2020-04-30 Thread suyash singh
Hello, I was running clang UBSan on bsps/sparc/erc32/btimer/btimer.c and got error /usr/bin/as: unrecognized option '-Av8' clang-11: error: assembler command failed with exit code 1 I am not sure but is it because clang is using wrong assembler? ___

Re: clang static analysis of leon2

2020-04-20 Thread suyash singh
unsure of the scope of your GSoC project so not sure other than > to say I looked through it quickly and was able to see the issues reported > after I unzipped the report. > > Is the goal to get this integrated into the RTEMS.org buildbot? > > --joel > > On Mon, Apr 20, 2020 at

clang static analysis of leon2

2020-04-20 Thread suyash singh
Find the analysis here https://drive.google.com/drive/folders/1FL_euXfAtlzezDf0Vwg5-WHM22z8lbFQ steps here https://github.com/suyashsingh234/rtems-notes ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

clang static analysis for at697f

2020-04-20 Thread suyash singh
Find all the reports here https://drive.google.com/drive/folders/1FL_euXfAtlzezDf0Vwg5-WHM22z8lbFQ?usp=sharing There is a problem in /src/rtems/bsps/shared/grlib/btimer/tlib_ckinit.c with LEON3_IrqCtrl_Regs->timestamp[0] being undeclared ___ devel

Clang with the new build system

2020-04-10 Thread suyash singh
I came to know about the new waf build system in RTEMS. How do I start to work on clang static analysis of BSPs with the new build system? ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

UBsan working

2020-04-05 Thread suyash singh
Undefined behavior sanitizer [image: image.png] clang's documentation is incomplete on llvm sanitizers. Also clang installs the ubsan files at wrong locations. There is no solution on google, so I wrote my own I have written the steps for installation here

Re: Ran clang

2020-03-27 Thread suyash singh
On Fri, Mar 27, 2020 at 9:36 PM Joel Sherrill wrote: > > > On Fri, Mar 27, 2020 at 10:39 AM Gedare Bloom wrote: > >> This appears to be a pretty standard llvm/clang build for a host system. >> >> There are two parts to consider: >> * Using the host tools over RTEMS >> * Using cross-compiler

Re: GSoC Students: Submit Draft Applications

2020-03-22 Thread suyash singh
I have submitted the draft proposal and proof of enrollment On Sat, Mar 21, 2020 at 4:20 PM Eshan Dhawan wrote: > Will do it ASAP.. > > Thanks for the heads up > > On 21-Mar-2020, at 3:55 AM, Gedare Bloom wrote: > > > > Hello Aspiring Students, > > > > I wanted to let you know that you can

Review for gsoc proposal

2020-03-22 Thread suyash singh
I have incorporated the valuable suggestions of Dr Bloom in my proposal. Looking forward for any further suggestions. https://docs.google.com/document/d/1OerM8Iix7PbDUCyb_J_KEzcMgLbvdqxd4FnK_BqI7XI/edit Thank you ___ devel mailing list devel@rtems.org

gsoc version 8

2020-03-19 Thread suyash singh
version8March20.docx Description: MS-Word 2007 document ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] Set up the development environment

2020-03-19 Thread suyash singh
://docs.google.com/document/d/1OerM8Iix7PbDUCyb_J_KEzcMgLbvdqxd4FnK_BqI7XI/edit On Thu, Mar 19, 2020 at 12:03 PM suyash singh wrote: > --- > clanganalyzer/first | 1 + > 1 file changed, 1 insertion(+) > create mode 100644 clanganalyzer/first > > diff --git a/clanganalyzer/first b/clangan

[PATCH] Set up the development environment

2020-03-19 Thread suyash singh
--- clanganalyzer/first | 1 + 1 file changed, 1 insertion(+) create mode 100644 clanganalyzer/first diff --git a/clanganalyzer/first b/clanganalyzer/first new file mode 100644 index 000..0b3ee12 --- /dev/null +++ b/clanganalyzer/first @@ -0,0 +1 @@ +Clang analyzer will be added here \ No

Re: What sanitizers preferred?

2020-03-17 Thread suyash singh
: > > > On Mon, Mar 16, 2020 at 11:05 AM Sebastian Huber < > sebastian.hu...@embedded-brains.de> wrote: > >> On 15/03/2020 17:52, suyash singh wrote: >> >> Hello, >> Out of >> AddressSanitizer <http://clang.llvm.org/docs/AddressSanitizer

Re: What sanitizers preferred?

2020-03-17 Thread suyash singh
Yes it uses virtual memory. I confirmed from a LLVM sanitizer contributor. On Mon, Mar 16, 2020 at 9:35 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 15/03/2020 17:52, suyash singh wrote: > > Hello, > Out of > AddressSanitizer <ht

Re: What sanitizers preferred?

2020-03-17 Thread suyash singh
brains.de> wrote: > >> > >> On 15/03/2020 17:52, suyash singh wrote: > >> > >> Hello, > >> Out of > >> AddressSanitizer, ThreadSanitizer, MemorySanitizer, and > DataFlowSanitizer. > >> > >> Are all of them useful as R

What sanitizers preferred?

2020-03-15 Thread suyash singh
Hello, Out of AddressSanitizer , ThreadSanitizer , MemorySanitizer , and DataFlowSanitizer . Are

Re: Review for my GSOC proposal: Static analysis integration

2020-03-08 Thread suyash singh
Thanks I have added now. On Mon, Mar 9, 2020 at 11:00 AM Vaibhav Gupta wrote: > > > On Mon, Mar 9, 2020, 10:40 AM suyash singh > wrote: > >> Please review my proposal. Thank you >> >> This project is inspired by https://devel.rtems.org/ticket/3710 and fro

Re: [PATCH] bsps/shared/grlib/1553/b1553brm.c : addressed logic issue and unsigned_compare

2020-03-02 Thread suyash singh
Okay I will understand the programmer's intentions from now on first. On Mon, Mar 2, 2020 at 9:10 PM Gedare Bloom wrote: > On Sun, Mar 1, 2020 at 11:32 AM Joel Sherrill wrote: > > > > > > > > On Sun, Mar 1, 2020, 12:03 AM suyash singh > wrote: > >&

Re: Improve Coverity Scan Integration: GSOC project details

2020-03-02 Thread suyash singh
Okay so I found this https://www.synopsys.com/content/dam/synopsys/sig-assets/datasheets/coverity-misra-standards-ds-ul.pdf and https://github.com/ARM-software/tf-issues/issues/549 Which leads me to believe coverity provides a MISRA scanner. Is it practical to write a program to check some of the

Improve Coverity Scan Integration: GSOC project details

2020-03-01 Thread suyash singh
This is regarding the project I would like to work in Improve Coverity Scan Integration https://devel.rtems.org/ticket/3710 *FIRST POINT-* I was thinking about implementing Coverity or clang analyzer as an offline analyzer. Would it be a suitable idea to make a separate repo just for testing

Re: [PATCH] bsps/shared/grlib/1553/b1553brm.c : addressed logic issue and unsigned_compare

2020-02-29 Thread suyash singh
Peter Dufault wrote: > And regardless of the value of count it is successful? > > > On Feb 28, 2020, at 12:17 , suyash singh > wrote: > > > > count is unsigned int and will always be >=0. > > > > On Fri, Feb 28, 2020 at 10:42 PM suyash singh > wrote: >

Re: [PATCH] bsps/shared/grlib/1553/b1553brm.c : addressed logic issue and unsigned_compare

2020-02-28 Thread suyash singh
count is unsigned int and will always be >=0. On Fri, Feb 28, 2020 at 10:42 PM suyash singh wrote: > --- > bsps/shared/grlib/1553/b1553brm.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/bsps/shared/grlib/1553/b1553brm.c > b/bsps/shared/

[PATCH] bsps/shared/grlib/1553/b1553brm.c : addressed logic issue and unsigned_compare

2020-02-28 Thread suyash singh
--- bsps/shared/grlib/1553/b1553brm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bsps/shared/grlib/1553/b1553brm.c b/bsps/shared/grlib/1553/b1553brm.c index 57ef70126b..4041423541 100644 --- a/bsps/shared/grlib/1553/b1553brm.c +++

Re: [PATCH] removed unneccesary assigning to rc triggering unused value error in coverity

2020-02-27 Thread suyash singh
ted by our coding standards: "Use ‘(void) unused;’ to mark > unused parameters and set-but-unused variables immediately after being > set." > > > On Thu, Feb 27, 2020 at 3:24 AM suyash singh > wrote: > > > > --- > > bsps/shared/dev/display/disp_hcms29xx.c |

[PATCH] removed unneccesary assigning to rc triggering unused value error in coverity

2020-02-27 Thread suyash singh
--- bsps/shared/dev/display/disp_hcms29xx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bsps/shared/dev/display/disp_hcms29xx.c b/bsps/shared/dev/display/disp_hcms29xx.c index 5730b36ea9..9d3e7220cf 100644 --- a/bsps/shared/dev/display/disp_hcms29xx.c +++

Re: Coverity Scan broken?

2020-02-25 Thread suyash singh
ded-brains.de> wrote: > - Am 25. Feb 2020 um 15:54 schrieb suyash singh > suyashsingh...@gmail.com: > > > After clicking view defects there is a loading bar then a webpage loads. > > Select rtems from drop down on top left. > > My projects list is empty. > ___

Re: Coverity false positive pattern

2020-02-25 Thread suyash singh
Yes it is showing for unused values For example at line 262 in https://scan5.coverity.com/reports.htm#v53137/p10069/fileInstanceId=164938787=45953284=1399751 On Tue, Feb 25, 2020 at 9:21 PM Joel Sherrill wrote: > > > On Tue, Feb 25, 2020 at 9:47 AM suyash singh > wrote: > &g

Coverity false positive pattern

2020-02-25 Thread suyash singh
Coverity shows value_overwrite errors for variables which are reassigned new values. What should be the procedure to prevent these? ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: Coverity Scan broken?

2020-02-25 Thread suyash singh
After clicking view defects there is a loading bar then a webpage loads. Select rtems from drop down on top left. On Tue, Feb 25, 2020 at 7:49 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello, > > the site > > https://scan.coverity.com/projects/rtems > > says the last scan

Re: Project query

2020-02-20 Thread suyash singh
All right. I will get started with coverity right away On Fri, Feb 21, 2020 at 1:02 AM Gedare Bloom wrote: > On Thu, Feb 20, 2020 at 10:56 AM suyash singh > wrote: > > > > I found this interesting project > > https://devel.rtems.org/ticket/3710 > > > &

Re: Project query

2020-02-20 Thread suyash singh
I found this interesting project https://devel.rtems.org/ticket/3710 There are no prerequisites given for this one On Thu, Feb 20, 2020 at 10:31 PM Gedare Bloom wrote: > On Thu, Feb 20, 2020 at 9:43 AM suyash singh > wrote: > > > > So can I work on x86_64 BSP without hardw

Re: Project query

2020-02-20 Thread suyash singh
So can I work on x86_64 BSP without hardware with simulator? https://devel.rtems.org/ticket/2898 Also out of the prerequisites I only know C programming language but I am ready to learn everything else. On Thu, Feb 20, 2020 at 9:13 AM Gedare Bloom wrote: > On Wed, Feb 19, 2020 at 6:29 PM Joel

Re: Project query

2020-02-19 Thread suyash singh
ue, Feb 18, 2020 at 9:30 PM Gedare Bloom wrote: > Hello Suyash, > > On Tue, Feb 18, 2020 at 8:07 AM suyash singh > wrote: > > > > Hello, > > > > I am interested in "Port RTEMS to MicroBlaze" > > https://devel.rtems.org/ticket/2902 > > >

Project query

2020-02-18 Thread suyash singh
Hello, I am interested in "Port RTEMS to MicroBlaze" https://devel.rtems.org/ticket/2902 How do I start understanding the previous work done and understanding what else needs to be done? ___ devel mailing list devel@rtems.org

Re: [PATCH] first commit

2020-02-14 Thread suyash singh
Hello I am Suyash Singh and this is my first commit. I am from India and currently in 2nd year of BTech Computer Science Engineering. I am hoping to participate in RTEMS as a GSOC student and beyond. On Sat, Feb 15, 2020 at 12:56 PM suyash singh wrote: > --- > testsuites/samples/hello/

[PATCH] first commit

2020-02-14 Thread suyash singh
@@ static rtems_task Init( { rtems_print_printer_fprintf_putc(_test_printer); TEST_BEGIN(); - printf( "Hello World\n" ); + printf( "Hello RTEMS. I am Suyash Singh" ); TEST_END(); rtems_test_exit( 0 ); } -- 2.17.1 __