# Questasim script error during compilation after a syntax error

**URL:** <https://forum.uvvm.org/t/questasim-script-error-during-compilation-after-a-syntax-error/419>\
**Category:** General questions\
**Created:** [February 14, 2024, 12:25pm UTC](https://forum.uvvm.org/t/questasim-script-error-during-compilation-after-a-syntax-error/419 "2024-02-14T12:25:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EZA](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.uvvm.org/eza/32/143_2.png) [@EZA](https://forum.uvvm.org/u/EZA)\
**Post date:** [February 14, 2024, 12:25pm UTC](https://forum.uvvm.org/t/questasim-script-error-during-compilation-after-a-syntax-error/419/1 "2024-02-14T12:25:12Z")

</div>

Hi,  
I have noticed a strange behaviour during the UVVM compilation using Questasim (an old version Questasim 10.7c).

I use the following command:  
do …/Sources/uvvm\_master/script/compile\_all.do …/Sources/uvvm\_master/script/

If I compile the UVVM library the command works fine, but let’s suppose that I perform a change in the UVVM source that contains a VHDL syntax error, here the behaviour is strange.

Here the sequence

1. I compile the UVVM library using the previous command; (result: everything is OK)
2. I perform a change in the UVVM source, but I made a mistake in the VHDL syntax.
3. I compile the UVVM library using the previous command; (result: compilation Error)
4. I revert all my changes, so I have the UVVM library in the exact same status as in step 1)
5. I compile the UVVM library using the previous command; (result: script Error)
6. I restart Questasim
7. I compile the UVVM library using the previous command; (result: everything is OK)

The error I have in the step 5) is:  
Unknown simulator. Attempting to use Modelsim commands.  
\*\* Error: couldn’t read file “…/Sources/uvvm\_master/script//…/uvvm\_util/compile\_src.do”: no such file or directory

Am I doing something wrong or is there a problem with the script/Qustasim?

Thanks  
Emanuele

---

<div class="post-metadata">

**Author:** ![EZA](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.uvvm.org/eza/32/143_2.png) [@EZA](https://forum.uvvm.org/u/EZA)\
**Post date:** [October 7, 2024, 4:03pm UTC](https://forum.uvvm.org/t/questasim-script-error-during-compilation-after-a-syntax-error/419/2 "2024-10-07T16:03:43Z")

</div>

Hi,  
I found a way to remove this problem.

After any compilation error use TCL command

“namespace delete compile\_src”

before trying another compilation.

Bye

---

<div class="post-metadata">

**Author:** ![EspenTa](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.uvvm.org/espenta/32/52_2.png) [@EspenTa](https://forum.uvvm.org/u/EspenTa)\
**Post date:** [December 23, 2024, 4:08pm UTC](https://forum.uvvm.org/t/questasim-script-error-during-compilation-after-a-syntax-error/419/3 "2024-12-23T16:08:02Z")

</div>

Thanks for sharing 🙂  
– Espen
