[Disksim-users] disksim_iosim.c:714: error: duplicate case value

Ricardo Rey ricardoreyyy at gmail.com
Sun Aug 26 17:54:47 EDT 2012


Hi

As stated by some people already, the problem is that Disksim won't
complile natively on 64 bit architectures.
There is a thread in the mailing list from December of last year, where
Peter Macko posted a link to a blog that explains how to patch Disksim to
work on 64 bit. The patch consists on changing about 6 or 7 source codes,
you can apply it in about 15 minutes =)

- Rick

On Sun, Aug 26, 2012 at 9:03 AM, 孙龙 <nianglao at gmail.com> wrote:

> Hi, I have successfully used the disksim-4.0 on my own laptop with ubuntu
> linux OS. Then I move the archive to my server and when I make, I meet the
> problem -"disksim_iosim.c:714: error: duplicate case value". Can anyone
> help me?
>
>
> //-------------------------------------------------------------------------------------------
> mkdir -p ../include/disksim/modules
> cp -pR modules/*.h ../include/disksim/modules
> cp disksim_interface.h ../include
> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include
> -I../libparam/include -I../libddbg/include -g -DASSERTS
> -I../memsmodel/include -I../ssdmodel/include -D_INLINE  disksim.c -o
> disksim.o
> disksim.c: In function ‘disksim_cleanup’:
> disksim.c:1103: warning: implicit declaration of function
> ‘iodriver_cleanup’
> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include
> -I../libparam/include -I../libddbg/include -g -DASSERTS
> -I../memsmodel/include -I../ssdmodel/include -D_INLINE  disksim_intr.c -o
> disksim_intr.o
> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include
> -I../libparam/include -I../libddbg/include -g -DASSERTS
> -I../memsmodel/include -I../ssdmodel/include -D_INLINE  disksim_pfsim.c -o
> disksim_pfsim.o
> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include
> -I../libparam/include -I../libddbg/include -g -DASSERTS
> -I../memsmodel/include -I../ssdmodel/include -D_INLINE  disksim_pfdisp.c -o
> disksim_pfdisp.o
> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include
> -I../libparam/include -I../libddbg/include -g -DASSERTS
> -I../memsmodel/include -I../ssdmodel/include -D_INLINE  disksim_synthio.c
> -o disksim_synthio.o
> disksim_synthio.c: In function ‘synthio_appendio’:
> disksim_synthio.c:215: warning: cast to pointer from integer of different
> size
> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include
> -I../libparam/include -I../libddbg/include -g -DASSERTS
> -I../memsmodel/include -I../ssdmodel/include -D_INLINE  disksim_iotrace.c
> -o disksim_iotrace.o
> disksim_iotrace.c: In function ‘iotrace_hpl_get_ioreq_event’:
> disksim_iotrace.c:373: warning: cast to pointer from integer of different
> size
> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include
> -I../libparam/include -I../libddbg/include -g -DASSERTS
> -I../memsmodel/include -I../ssdmodel/include -D_INLINE  disksim_iosim.c -o
> disksim_iosim.o
> disksim_iosim.c: In function ‘iosim_load_map’:
> disksim_iosim.c:366: warning: cast to pointer from integer of different
> size
> disksim_iosim.c: In function ‘io_initialize’:
> disksim_iosim.c:714: error: duplicate case value
> disksim_iosim.c:714: error: previously used here
> make[1]: *** [disksim_iosim.o] Error 1
> make[1]: Leaving directory `/root/workdir/disksim-4.0/src'
> make: *** [all] Error 2
>
> //-------------------------------------------------------------------------------------------
>
> _______________________________________________
> Disksim-users mailing list
> Disksim-users at ece.cmu.edu
> https://sos.ece.cmu.edu/mailman/listinfo/disksim-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/disksim-users/attachments/20120826/2168f3ee/attachment.html>


More information about the Disksim-users mailing list