From: Colin P. A. <co...@co...> - 2008-01-19 15:14:39
|
I did an svn update this morning, and noticing the large number of changes, I decided to re-run the bootstrap. Looking at History.txt, I see, amongst others: This makes if possible for example for 'gec' to determine -- whether the Boehm GC should be used trhough the Xace option -- 'garbage_collector'. Apart from the two typos, the sentence seems to suggest that <option name="garbage_collector" value="boehm"/> should now work. But there is no confirmation of this in the section on gec itself. I see that a compile_ge.xace file is generated and read, and the option gets passed through to that file. But it looks like the option is still ignored. Can you confirm that for the moment I still have to type the gec command by hand to add the --gc=boehm option? -- Colin Adams Preston Lancashire |
From: Eric B. <er...@go...> - 2008-01-19 15:59:45
|
Colin Paul Adams wrote: > I did an svn update this morning, and noticing the large number of > changes, I decided to re-run the bootstrap. > > Looking at History.txt, I see, amongst others: > > This makes if possible for example for 'gec' to determine > -- > whether the Boehm GC should be used trhough the Xace option > -- > 'garbage_collector'. > > Apart from the two typos, the sentence seems to suggest that <option > name="garbage_collector" value="boehm"/> should now work. > > But there is no confirmation of this in the section on gec itself. I > see that a compile_ge.xace file is generated and read, and the option > gets passed through to that file. But it looks like the option is > still ignored. Can you confirm that for the moment I still have to > type the gec command by hand to add the --gc=boehm option? Yes, you still have to do that. "It makes it possible" does not mean that it is already done. But it should be done anytime soon. I will open a bug report as a reminder. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |
From: Eric B. <er...@go...> - 2008-01-22 10:36:15
|
Eric Bezault wrote: > Colin Paul Adams wrote: >> I did an svn update this morning, and noticing the large number of >> changes, I decided to re-run the bootstrap. >> >> Looking at History.txt, I see, amongst others: >> >> This makes if possible for example for 'gec' to determine >> -- >> whether the Boehm GC should be used trhough the Xace option >> -- >> 'garbage_collector'. >> >> Apart from the two typos, the sentence seems to suggest that <option >> name="garbage_collector" value="boehm"/> should now work. >> >> But there is no confirmation of this in the section on gec itself. I >> see that a compile_ge.xace file is generated and read, and the option >> gets passed through to that file. But it looks like the option is >> still ignored. Can you confirm that for the moment I still have to >> type the gec command by hand to add the --gc=boehm option? > > Yes, you still have to do that. "It makes it possible" does not > mean that it is already done. But it should be done anytime soon. > I will open a bug report as a reminder. It's now implemented in svn#6276. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |
From: Eric B. <er...@go...> - 2008-01-22 11:35:02
|
Colin Adams wrote: > On 22/01/2008, Eric Bezault <er...@go...> wrote: >> Eric Bezault wrote: > >>>> Apart from the two typos, the sentence seems to suggest that <option >>>> name="garbage_collector" value="boehm"/> should now work. >>>> >>>> But there is no confirmation of this in the section on gec itself. > >> It's now implemented in svn#6276. > > Thanks. > > What happens if this option is supplied, but BOEHM_GC is not set? Is > an error message issued, or does compilation go ahead assuming the > value is actually set to "none"? Even if the environment variable BOEHM_GC is not set, gec will generate code that works with the Boehm GC. Indeed, it is possible that one wants to generate the C code, and then compile it later on another computer where the Boehm GC is installed. Furthermore, the environment variable BOEHM_GC is something that is used in the config files in $GOBO/tool/gec/config/c, but it is just a convention and it is possible to write config files that don't use this environment variable. > If the former, then is it possible to test to see if an environment > variable is set within a system.xace file? <option name="garbage_collector" value="boehm" if="${BOEHM_GC}"/> -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |
From: Eric B. <er...@go...> - 2008-01-22 20:53:07
|
Colin Adams wrote: > On 22/01/2008, Eric Bezault <er...@go...> wrote: >>> If the former, then is it possible to test to see if an environment >>> variable is set within a system.xace file? >> <option name="garbage_collector" value="boehm" if="${BOEHM_GC}"/> >> > > It doesn't work. > > Not even if I add -DBOEHM_GC =/usr/local to the geant invocation. > > Geant is not passing on BOEHM_GC to gexace command, and so the line > does not appear in the generated compile_ge.xace. > > Here is the generated command: > > gexace --define="GOBO_EIFFEL=ge GOBO_OS=unix GOBO_CC=gcc" > --system="ge" --output="compile_ge.xace" > /home/colin/gobo/src/gexslt/system.xace > > If I manually add BOEHM_GC=/usr/local into the --define= stuff, then > the correct xace gets generated. Update the file gobo/misc/eiffel.eant and try again. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |
From: Colin A. <col...@go...> - 2008-01-22 11:17:39
|
On 22/01/2008, Eric Bezault <er...@go...> wrote: > Eric Bezault wrote: > >> Apart from the two typos, the sentence seems to suggest that <option > >> name="garbage_collector" value="boehm"/> should now work. > >> > >> But there is no confirmation of this in the section on gec itself. > It's now implemented in svn#6276. Thanks. What happens if this option is supplied, but BOEHM_GC is not set? Is an error message issued, or does compilation go ahead assuming the value is actually set to "none"? If the former, then is it possible to test to see if an environment variable is set within a system.xace file? |
From: Colin A. <col...@go...> - 2008-01-22 20:47:30
|
On 22/01/2008, Eric Bezault <er...@go...> wrote: > > > If the former, then is it possible to test to see if an environment > > variable is set within a system.xace file? > > <option name="garbage_collector" value="boehm" if="${BOEHM_GC}"/> > It doesn't work. Not even if I add -DBOEHM_GC =/usr/local to the geant invocation. Geant is not passing on BOEHM_GC to gexace command, and so the line does not appear in the generated compile_ge.xace. Here is the generated command: gexace --define="GOBO_EIFFEL=ge GOBO_OS=unix GOBO_CC=gcc" --system="ge" --output="compile_ge.xace" /home/colin/gobo/src/gexslt/system.xace If I manually add BOEHM_GC=/usr/local into the --define= stuff, then the correct xace gets generated. |
From: Colin A. <col...@go...> - 2008-01-23 20:46:47
|
> Update the file gobo/misc/eiffel.eant and try again. That works. I've updated the system.xace file for gexslt to use boehm when available. This works for linux. Not sure about Windows. Can you check it please? |
From: Eric B. <er...@go...> - 2008-01-23 23:45:14
|
Colin Adams wrote: >> Update the file gobo/misc/eiffel.eant and try again. > > That works. > > I've updated the system.xace file for gexslt to use boehm when > available. This works for linux. Not sure about Windows. Can you check > it please? It didn't work. Actually I wonder how it could work on Linux. I had to replace: <option if="{GOBO_EIFFEL}=ge"> <option if="{BOEHM_GC}"> by: <option if="${GOBO_EIFFEL}=ge"> <option if="${BOEHM_GC}"> The $ signs were missing. It's now fixed in SVN. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |