Unable to find g_as, Midas Script Issue

17 views
Skip to first unread message

Zuhair Ansari

unread,
Aug 2, 2024, 7:41:52 PM8/2/24
to OpenPiton Discussion
I am facing a new issue where the midas script is unable to find a file, I've checked where the file is and it does is exist but in a different directory, what should I do.

Script:
~/openpiton/build$ sims -sys=manycore -x_tiles=1 -y_tiles=1 -vlt_run princeton-test-test.s

Error:
midas: ##  SECTION PARSING PHASE
midas: ###########################################################
midas: goldfinger -v -splitsec diag.m4 -midasfile diag.midas -prefix 'midas: '
midas: goldfinger: Writing midas directives to diag.midas
midas: goldfinger: Writing section RED_SEC to sec0.red_sec.s
midas: goldfinger: Writing section RED_EXT_SEC to sec1.red_ext_sec.s
midas: goldfinger: Writing section HPRIV_RESET to sec2.hpriv_reset.s
midas: goldfinger: Writing section HTRAPS to sec3.htraps.s
midas: goldfinger: Writing section UART_MAPPING to sec4.uart_mapping.s
midas: goldfinger: Writing section TRAPS to sec5.traps.s
midas: goldfinger: Writing section KERNEL to sec6.kernel.s
midas: goldfinger: Writing section USER_HEAP to sec7.user_heap.s
midas: goldfinger: Writing section MAIN to sec8.main.s
midas: goldfinger: Writing section USER_DATA to sec9.user_data.s
midas: Finding sections in diag.midas
midas: Processing directives in diag.midas
midas: Performing sanity check on arguments.
midas: ###########################################################
midas: ##  ASSEMBLY PHASE
midas: ###########################################################
midas: Building 10 sections using 3 build threads.
midas: g_as -xarch=v9b sec0.red_sec.s -o sec0.red_sec.o
midas: g_as -xarch=v9b sec2.hpriv_reset.s -o sec2.hpriv_reset.o
midas: g_as -xarch=v9b sec1.red_ext_sec.s -o sec1.red_ext_sec.o
/home/legand/openpiton/piton/tools/bin/g_as: 193: exec: /home/legand/openpiton/piton/tools/Linux/x86_64/g_as,2.13.5: not found
/home/legand/openpiton/piton/tools/bin/g_as: 193: exec: /home/legand/openpiton/piton/tools/Linux/x86_64/g_as,2.13.5: not found
/home/legand/openpiton/piton/tools/bin/g_as: 193: exec: /home/legand/openpiton/piton/tools/Linux/x86_64/g_as,2.13.5: not found
midas: At pkg=Midas::Interface, file=/home/legand/openpiton/piton/tools/perlmod/Midas/3.30/lib/site_perl/5.8.0/Midas/Interface.pm, line=370
midas: FATAL ERROR: M_ASMFAIL (#16): Assembler failed.
midas: FATAL ERROR: Command "g_as -xarch=v9b sec0.red_sec.s -o sec0.red_sec.o" failed with status 127.
midas: At pkg=Midas::Interface, file=/home/legand/openpiton/piton/tools/perlmod/Midas/3.30/lib/site_perl/5.8.0/Midas/Interface.pm, line=370
midas: At pkg=Midas::Interface, file=/home/legand/openpiton/piton/tools/perlmod/Midas/3.30/lib/site_perl/5.8.0/Midas/Interface.pm, line=370
midas: FATAL ERROR: M_ASMFAIL (#16): Assembler failed.
midas: FATAL ERROR: Command "g_as -xarch=v9b sec2.hpriv_reset.s -o sec2.hpriv_reset.o" failed with status 127.
midas: FATAL ERROR: M_ASMFAIL (#16): Assembler failed.
midas: FATAL ERROR: Command "g_as -xarch=v9b sec1.red_ext_sec.s -o sec1.red_ext_sec.o" failed with status 127.
sims: Caught a SIGDIE. midas compilation error at /home/legand/openpiton/piton/tools/src/sims/sims,2.0 line 2347.

Directory of g_as:
legand@ubuntu:~$ which g_as
/home/legand/openpiton/piton/tools/bin/g_as

I've tried temporarily setting the path in the terminal but that didn't work:
legand@ubuntu:~/openpiton/build$ export PATH=$PATH:/home/legand/openpiton/piton/tools/bin/g_as
legand@ubuntu:~/openpiton/build$ sims -sys=manycore -x_tiles=1 -y_tiles=1 -vlt_run princeton-test-test.s

Would really appreciate some help

Jonathan Balkind

unread,
Aug 5, 2024, 12:59:37 PM8/5/24
to OpenPiton Discussion
What happens if you try to just directly run `g_as`? I have a feeling you might be having some other kind of issue running with the binary. FWIW I do not recommend using the sparc version of the design at this point but rather the Ariane version. Some of the released software from Sun is very old and we don't have the source code to rebuild a replacement.

Thanks,
Jon

--
You received this message because you are subscribed to the Google Groups "OpenPiton Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpiton+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/12beb22e-9396-4952-a40e-8e18f74c9883n%40googlegroups.com.

Zuhair Ansari

unread,
Aug 5, 2024, 2:20:16 PM8/5/24
to OpenPiton Discussion
The issue was resolved, I had a look at the Readme and the solution was provided. I am quite new to this framework and ubuntu/linux in general, so I apologize for the very simple question and thank you for your timely response.

Sincerely,
Zuhair Ansari
Reply all
Reply to author
Forward
0 new messages