<div>Hi all,</div>
<div> </div>
<div>I am new to DiskSim.</div>
<div>When I compile DiskSim 4.0 on the 64bit machine, I added -m32 to src/Makefile like this</div>
<div>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>$(DISKSIM_OBJ): %.o: %.c<br> $(CC) -c -m32 $(CFLAGS) $< -o $@<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>
<div> </div>
<div> </div>
<div>Then I encountered these compilation erros</div>
<div>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>gcc -Wall -Wno-unused -MD -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS   -I../memsmodel/include -I../ssdmodel/include -D_INLINE  -o disksim disksim_main.o -lm -L. -ldisksim -L../diskmodel/lib -ldiskmodel -L../memsmodel/lib -lmemsmodel -L../ssdmodel/lib -lssdmodel -L../libparam/lib -lparam -L../libddbg/lib -lddbg <br>
/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_iosim.o)' is incompatible with i386:x86-64 output<br>/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_logorg.o)' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_redun.o)' is incompatible with i386:x86-64 output<br>/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_ioqueue.o)' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_iodriver.o)' is incompatible with i386:x86-64 output<br>/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_bus.o)' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_controller.o)' is incompatible with i386:x86-64 output<br>/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_ctlrdumb.o)' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_ctlrsmart.o)' is incompatible with i386:x86-64 output<br>/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_disk.o)' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_diskctlr.o)' is incompatible with i386:x86-64 output<br>/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_diskcache.o)' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_statload.o)' is incompatible with i386:x86-64 output<br>/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_stat.o)' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_rand48.o)' is incompatible with i386:x86-64 output<br>/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_malloc.o)' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_cache.o)' is incompatible with i386:x86-64 output<br>/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_cachemem.o)' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_cachedev.o)' is incompatible with i386:x86-64 output<br>/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_simpledisk.o)' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_device.o)' is incompatible with i386:x86-64 output<br>/usr/bin/ld: warning: i386 architecture of input file `./libdisksim.a(disksim_loadparams.o)' is incompatible with i386:x86-64 output<br>
./libdisksim.a(disksim_diskctlr.o)(.text+0x8ee5): In function `disk_buffer_seekdone':<br>/user/cathyyu/disksim-4.0-dixtrac/src/disksim_diskctlr.c:4101: undefined reference to `__moddi3'<br>./libdisksim.a(disksim_diskctlr.o)(.text+0x956c): In function `disk_buffer_sector_done':<br>
/user/cathyyu/disksim-4.0-dixtrac/src/disksim_diskctlr.c:4402: undefined reference to `__moddi3'<br>collect2: ld returned 1 exit status<br>make: *** [disksim] Error 1<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>

<div> </div>
<div>Can anyone help me with this? Thanks a lot!</div>
<div><br clear="all">Regards,<br>-- <br>Catherine Yu<br></div>