[Disksim-users] Compile error

Catherine Yu cythereayu at gmail.com
Tue Dec 14 19:55:24 EST 2010


Hi all,

I am new to DiskSim.
When I compile DiskSim 4.0 on the 64bit machine, I added -m32 to
src/Makefile like this
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$(DISKSIM_OBJ): %.o: %.c
 $(CC) -c -m32 $(CFLAGS) $< -o $@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Then I encountered these compilation erros
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_iosim.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_logorg.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_redun.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_ioqueue.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_iodriver.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_bus.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_controller.o)' is incompatible with i386:x86-64
output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_ctlrdumb.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_ctlrsmart.o)' is incompatible with i386:x86-64
output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_disk.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_diskctlr.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_diskcache.o)' is incompatible with i386:x86-64
output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_statload.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_stat.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_rand48.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_malloc.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_cache.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_cachemem.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_cachedev.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_simpledisk.o)' is incompatible with i386:x86-64
output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_device.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`./libdisksim.a(disksim_loadparams.o)' is incompatible with i386:x86-64
output
./libdisksim.a(disksim_diskctlr.o)(.text+0x8ee5): In function
`disk_buffer_seekdone':
/user/cathyyu/disksim-4.0-dixtrac/src/disksim_diskctlr.c:4101: undefined
reference to `__moddi3'
./libdisksim.a(disksim_diskctlr.o)(.text+0x956c): In function
`disk_buffer_sector_done':
/user/cathyyu/disksim-4.0-dixtrac/src/disksim_diskctlr.c:4402: undefined
reference to `__moddi3'
collect2: ld returned 1 exit status
make: *** [disksim] Error 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Can anyone help me with this? Thanks a lot!

Regards,
-- 
Catherine Yu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/disksim-users/attachments/20101214/67207817/attachment.html>


More information about the Disksim-users mailing list