[Disksim-users] Compiling DiskSim 4.0 on 64-bit machine

Vijay Chidambaram vvijay03 at gmail.com
Thu Oct 11 12:42:44 EDT 2012


Hi,

I tried compiling DiskSim on a Ubuntu 64-bit machine with 3.2.0-29-generic kernel. I ran into some problems and fixed them later with the help of some googling and some experimenting. I thought I would send an email collecting the changes I had to do.

# Problem 1: Disksim-4.0 does not compile on 64-bit machine.

Symptom: An error about "duplicate case"

Solution: Apply the 64-bit patch found here: http://code.google.com/p/sst-simulator/downloads/detail?name=disksim_4.0_64bit.patch

# Problem 2: Problems due to math linking errors

Symptom: undefined reference to 'log', 'sqrt' and so on.

Solution: Change the Makefiles so that in LDFLAGS definition, the "-lm" part is at the end of the line.

For example:  Change LDFLAGS = -L. -lm -ldisksim $(DISKMODEL_LDFLAGS) 
to
LDFLAGS = -L. -ldisksim $(DISKMODEL_LDFLAGS) -lm

Hope this helps anyone else running into the same problem.

Thanks,
Vijay

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/disksim-users/attachments/20121011/4923db79/attachment.html>


More information about the Disksim-users mailing list