|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Machine SUIF build problemHello there,
I am trying to install machine suif on debian linux but I am stuck with a build problem. I probed into the problem and realized that the problem lies in the generation of machine_ir.h file from the hoof specification machine_ir.hoof. For the definition of the class "InstrList", it generates the following (lines 71-75): ------------------------ private: suif_list<Instr* > _instrs; public: list<Instr*>& instrs() { return _instrs; } InstrList* to_instr_list(); ------------------------ whereas, I suppose, it should generate: ------------------------ private: list<Instr* > _instrs; // list instead of suif_list public: list<Instr*>& instrs() { return _instrs; } InstrList* to_instr_list(); ------------------------ Since the templates suif_list and list are visible in a mutually exclusive manner, the above results in compile errors. I am using gcc 2.95.4 following the discussion in this thread: http://suif.stanford.edu/pipermail/suif-talk/2003-February/001252.html I would appreciate it if somebody could give me tips to fix this gracefully. Could there be a problem with my SUIF (basesuif 2.2) installation (the "smgn" binary)? regards, Soumyaroop. -- Soumyaroop Roy Ph.D. Student Department of Computer Science and Engineering University of South Florida, Tampa http://www.csee.usf.edu/~sroy "If you haven't pissed off anybody, you haven't taken a decision" - Lavi Lev, Former Ex. VP of Cadence Design Systems _______________________________________________ To unsubscribe, send mail to suif-talk-unsubscribe@... or visit http://suif.stanford.edu/mailman/listinfo/suif-talk |
|
|
Re: Machine SUIF build problemsoumyaroop roy wrote:
> Hello there, > > I am trying to install machine suif on debian linux but I am stuck > with a build problem. I probed into the problem and realized that the > problem lies in the generation of machine_ir.h file from the hoof > specification machine_ir.hoof. For the definition of the class > "InstrList", it generates the following (lines 71-75): > ------------------------ > private: > suif_list<Instr* > _instrs; > public: > list<Instr*>& instrs() { return _instrs; } > InstrList* to_instr_list(); > ------------------------ > whereas, I suppose, it should generate: > ------------------------ > private: > list<Instr* > _instrs; // list instead of suif_list > public: > list<Instr*>& instrs() { return _instrs; } > InstrList* to_instr_list(); > ------------------------ > > Since the templates suif_list and list are visible in a mutually > exclusive manner, the above results in compile errors. I am using gcc > 2.95.4 following the discussion in this thread: > http://suif.stanford.edu/pipermail/suif-talk/2003-February/001252.html > > I would appreciate it if somebody could give me tips to fix this > gracefully. Could there be a problem with my SUIF (basesuif 2.2) > installation (the "smgn" binary)? > > regards, > Soumyaroop. > file. In my build, I have list in both places. My .hoof file (and the .nw version) both have list as well. I grep'd through my sources and could find nothing that looked like suif_list, except as the name of a header file. I'm building under Fedora with gcc 4.1.1. To build, I followed the instructions here: http://mail.ustc.edu.cn/~jsji/research/tools/SUIF2.html So far, I've had good success: I've modified create_suif_hello_world a little bit and was able to run the result (with the x86 code generator): [~/test] ms% ls create_suif_hello_world.cpp dependencies machdriver* Makefile create_suif_hello_world.o hello_world.o main.c Makefile.deps [~/test] ms% create_suif_hello_world [ {FileSetBlock}[ ... snipped [~/test] ms% ./machdriver Warning in padding.cpp(419)[transforms] Warning: Skipping StructPaddingPass because Target Info Block is unavailable [~/test] ms% ./hello_world hello world[~/test] ms% I had to make a couple of small changes to Machine SUIF because of the missing target information block, but it worked. -Rich _______________________________________________ To unsubscribe, send mail to suif-talk-unsubscribe@... or visit http://suif.stanford.edu/mailman/listinfo/suif-talk |
|
|
Re: Machine SUIF build problemHello Richard,
Thank you for pointing me to the SUIF and MachineSUIF installation instructions page. The built process went quite smoothly on my debian GNU/Linux (Ubuntu) system with gcc 4.1.1. This also fixes one of my earlier build problems when I was trying with gcc 2.95.4: http://www.nabble.com/suif-2-installation-problem---eh_frame-p13601271.html Hopefully, this thread will be helpful to future SUIF/Machine SUIF users. God bless both of you (i.e., you and Jinsong Ji, who made the instructions page)! regards, Soumyaroop. On Nov 24, 2007 5:00 AM, Richard Pennington <rich@...> wrote: > > soumyaroop roy wrote: > > Hello there, > > > > I am trying to install machine suif on debian linux but I am stuck > > with a build problem. I probed into the problem and realized that the > > problem lies in the generation of machine_ir.h file from the hoof > > specification machine_ir.hoof. For the definition of the class > > "InstrList", it generates the following (lines 71-75): > > ------------------------ > > private: > > suif_list<Instr* > _instrs; > > public: > > list<Instr*>& instrs() { return _instrs; } > > InstrList* to_instr_list(); > > ------------------------ > > whereas, I suppose, it should generate: > > ------------------------ > > private: > > list<Instr* > _instrs; // list instead of suif_list > > public: > > list<Instr*>& instrs() { return _instrs; } > > InstrList* to_instr_list(); > > ------------------------ > > > > Since the templates suif_list and list are visible in a mutually > > exclusive manner, the above results in compile errors. I am using gcc > > 2.95.4 following the discussion in this thread: > > http://suif.stanford.edu/pipermail/suif-talk/2003-February/001252.html > > > > I would appreciate it if somebody could give me tips to fix this > > gracefully. Could there be a problem with my SUIF (basesuif 2.2) > > installation (the "smgn" binary)? > > > > regards, > > Soumyaroop. > > > I have no idea why you have suif_list instead of list in your header > file. In my build, I have list in both places. My .hoof file (and the > .nw version) both have list as well. > > I grep'd through my sources and could find nothing that looked like > suif_list, except as the name of a header file. > > I'm building under Fedora with gcc 4.1.1. > > To build, I followed the instructions here: > http://mail.ustc.edu.cn/~jsji/research/tools/SUIF2.html > > So far, I've had good success: I've modified create_suif_hello_world a > little bit and was able to run the result (with the x86 code generator): > [~/test] ms% ls > create_suif_hello_world.cpp dependencies machdriver* > Makefile > create_suif_hello_world.o hello_world.o main.c > Makefile.deps > [~/test] ms% create_suif_hello_world > [ > {FileSetBlock}[ > ... snipped > [~/test] ms% ./machdriver > Warning in padding.cpp(419)[transforms] > Warning: Skipping StructPaddingPass because Target Info Block is unavailable > [~/test] ms% ./hello_world > hello world[~/test] ms% > > I had to make a couple of small changes to Machine SUIF because of the > missing target information block, but it worked. > > -Rich > -- Soumyaroop Roy Ph.D. Student Department of Computer Science and Engineering University of South Florida, Tampa http://www.csee.usf.edu/~sroy "If you haven't pissed off anybody, you haven't taken a decision" - Lavi Lev, Former Ex. VP of Cadence Design Systems _______________________________________________ To unsubscribe, send mail to suif-talk-unsubscribe@... or visit http://suif.stanford.edu/mailman/listinfo/suif-talk |
|
|
|
| Free Forum Powered by Nabble | Forum Help |