adamwalker / sdr

Software defined radio library in Haskell
BSD 3-Clause "New" or "Revised" License
90 stars 13 forks source link

sdr-0.1.0.3 does not compile on i686-linux #2

Open peti opened 8 years ago

peti commented 8 years ago

Citing from http://hydra.nixos.org/build/26455954/log/raw:

c_sources/cpuid.c: In function ‘cpuid’:

c_sources/cpuid.c:4:5:
     error: inconsistent operand constraints in an ‘asm’
         asm volatile(
         ^
adamwalker commented 8 years ago

That assembly code is 64 bit only. I will either figure out how to tell cabal that it only builds for 64 bit machines or implement a 32 bit version.

peti commented 8 years ago

Ping?

adamwalker commented 8 years ago

Sorry about the delay. I hope to find time to fix this by the end of this weekend.

peti commented 8 years ago

I have disabled the package in the NixOS distribution.

adamwalker commented 8 years ago

I gave up on this. There doesn't seem to be a way to specify which architectures it builds on to cabal, and, I was unable to get Virtualbox to even start on my system so that I could develop a 32 bit version of the failing code and resolve this properly.

However, I see no reason to disable the package on 64 bit x86 architectures.

peti commented 8 years ago
library
  if arch(i386)
    Buildable: False
adamwalker commented 8 years ago

I applied your suggested fix and uploaded to Hackage. Leaving this open to remind me to fix it properly.