Hola Javier!<br><br><div class="gmail_quote">On Tue, Jun 17, 2008 at 5:21 PM, Javier Fontan <<a href="mailto:jfontan@fdi.ucm.es">jfontan@fdi.ucm.es</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello Alvaro,<br>
<br>
I don't really know what can be happening to your modifications but I can give you some hints:<br>
<br>
* main_env seems not to be defined, it needs to. "main_env=Environment()" is commented.</blockquote><div><br>Yes, you're right, but if I left it as follows:<br><br>main_env=Environment()<br>main_env['ENV']['PATH']=os.environ['PATH']<br>
<br>I get the problem related to "no compiler found".<br>By the way, I can make scons be aware of where my compiler is by doing this:<br><br>main_env=Environment()<br>path = ['/OVS/software/bin', '/bin', '/usr/bin']<br>
main_env = Environment(ENV = {'PATH' : path})<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
* This line "main_env['ENV']['PATH']=os.environ['PATH']" probably does exactly what you want, gets the path from the environment. If you have your executables in other places just add them to PATH environment and scons will import that paths.</blockquote>
<div><br>Yes, that's what I thought! But the fact is that I have "/OVS/software/bin" in my PATH (and I can see that it is the compiler being used, thanks to "which")!<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
* The problem you are getting in the first place (before modifying SConstruct) is caused by scons not finding the compiler. Leave SConstruct as it was and before calling scons add "/OVS/software/bin" to your path.<br>
</blockquote><div><br>Yep. I agree. But it is already done ;)<br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Anyhow, we are about to release a new technology preview pretty soon. I can not tell you exactly when (we are right now finishing things). In this release we address some issues as the flex/bison requirements (now that files wont be rebuilt again by default so you wont need these utilities).</blockquote>
<div><br>Cool!<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Bye</blockquote><div><br>Thank you for your help, anyway :)<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
<br>
<br>
On Jun 17, 2008, at 4:50 PM, Alvaro Canales wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Dear users,<br>
<br>
I'm trying to install ONE, but I get this error:<br>
<br>
scons: Reading SConscript files ...<br>
scons: done reading SConscript files.<br>
scons: Building targets ...<br>
g++ -o src/host/Host.o -c -g -Wall -Iinclude src/host/Host.cc<br>
src/host/Host.cc:449: error: declaration of C function 'void host_lex_destroy()' conflicts with<br>
host_parser.h:228: error: previous declaration 'int host_lex_destroy()' here<br>
scons: *** [src/host/Host.o] Error 1<br>
scons: building terminated because of errors.<br>
<br>
This output occurs after adapting the Sconstruct file (following <a href="http://www.scons.org/doc/0.98.5/HTML/scons-user/c1410.html" target="_blank">http://www.scons.org/doc/0.98.5/HTML/scons-user/c1410.html</a> instructions), because I have installed all ONE requisits in /OVS/software, not a "typical" path.<br>
<br>
My Sconstruct file is as follows:<br>
<br>
...<br>
# This is the absolute path where the project is located<br>
cwd=os.getcwd()<br>
<br>
# Environment that will be applied to each scons child<br>
## Old<br>
#main_env=Environment()<br>
#main_env['ENV']['PATH']=os.environ['PATH']<br>
## New<br>
main_env['ENV']['PATH'] = ['/OVS/software/bin', '/bin', '/usr/bin']<br>
<br>
## Note: doing<br>
# main_env = Environment(ENV = {'PATH' : os.environ['PATH']})<br>
## or # path = ['/OVS/software/bin', '/bin', '/usr/bin'] # main_env = Environment(ENV = {'PATH' : path})<br>
##doesn't help neither.<br>
<br>
# Add builders for flex and bison<br>
add_lex(main_env)<br>
add_bison(main_env)<br>
...<br>
<br>
Prior to making any change to Scosntruct file, I got this output:<br>
<br>
scons: Reading SConscript files ...<br>
scons: done reading SConscript files.<br>
scons: Building targets ...<br>
o src/common/ActionManager.o -c -g -Wall -Iinclude src/common/ActionManager.cc<br>
sh: o: command not found<br>
o src/common/Attribute.o -c -g -Wall -Iinclude src/common/Attribute.cc<br>
sh: o: command not found<br>
ar rc src/common/libnebula_common.a src/common/ActionManager.o src/common/Attribute.o<br>
ar: src/common/ActionManager.o: No such file or directory<br>
scons: *** [src/common/libnebula_common.a] Error 1<br>
scons: building terminated because of errors.<br>
<br>
...which led me to inspec the file.<br>
<br>
What do you think? Can you help me adapting the Sconstruct file or I'm wrong and this is not the source of the problem?<br>
All software prerequisites have been tested and are in their correct version.<br>
Thanks in advance!<br>
<br>
-- <br>
Álvaro<br></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote>
<br>
--<br>
Javier Fontan, Grid Technology Engineer/Researcher<br>
DSA Research Group: <a href="http://dsa-research.org" target="_blank">http://dsa-research.org</a><br>
Globus GridWay Metascheduler: <a href="http://www.GridWay.org" target="_blank">http://www.GridWay.org</a><br>
OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Álvaro