Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Linux kernel 3.0 breaks Modelsim

Hello everyone!

Some people were arguing that the big version change from 2.6.39 to 3.0 is going to break some scripts. Guess what? They were right.

The first thing i noticed after upgrading to Linux 3.0 rc1 (I'm on a x86_64) was something like "Error: cannot find /home/oliver/altera/10.1sp1/modelsim_ase/bin/../linux_rh60/vsim".

This is due to the following lines (beginning at line 198) in modelsim_ase/vco :


        case $utype in
          2.4.*)       vco="linux" ;;
          2.4.*)  vco="linux" ;;
          2.*)         vco="linux" ;;
          2.*)    vco="linux" ;;
          *)                vco="linux_rh60" ;;
        esac

As you can see 3.0 leads to vco="linux_rh60".

Simply add one line for 3.X and Modelsim is back working:


        case $utype in
          2.4.*)       vco="linux" ;;
          2.4.*)  vco="linux" ;;
          2.*)         vco="linux" ;;
          2.*)    vco="linux" ;;
	  3.*)	    vco="linux" ;;
          *)                vco="linux_rh60" ;;
        esac

Kind regards,

Oliver
No RepliesBe the first to reply