sdr icon indicating copy to clipboard operation
sdr copied to clipboard

sdr-0.1.0.3 does not compile on i686-linux

Open peti opened this issue 10 years ago • 7 comments

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(
         ^

peti avatar Oct 05 '15 08:10 peti

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.

adamwalker avatar Oct 11 '15 08:10 adamwalker

Ping?

peti avatar Nov 08 '15 17:11 peti

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

adamwalker avatar Nov 10 '15 21:11 adamwalker

I have disabled the package in the NixOS distribution.

peti avatar Nov 18 '15 18:11 peti

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.

adamwalker avatar Nov 24 '15 00:11 adamwalker

library
  if arch(i386)
    Buildable: False

peti avatar Nov 24 '15 09:11 peti

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

adamwalker avatar Nov 28 '15 07:11 adamwalker