Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.6.7 fails to build on i386 but version 0.6.6 has build successfully #344

Open
tillea opened this issue Mar 21, 2018 · 9 comments

Comments

@tillea
Copy link

tillea commented Mar 21, 2018

Hi,
after uploading version 0.6.7 to Debian a bug report was filed that the package does not build on i386 architecture. Here you can see a full build log and this is the problematic part:

    cd obj-i686-linux-gnu && LC_ALL=C.UTF-8 ninja -j4 -v
[1/74] ldc2  -Isambamba@exe -I. -I.. -I/usr/include/d -enable-color -O -g -release -wi  -of 'sambamba@exe/main.d.o' -c ../main.d
FAILED: sambamba@exe/main.d.o
ldc2  -Isambamba@exe -I. -I.. -I/usr/include/d -enable-color -O -g -release -wi  -of 'sambamba@exe/main.d.o' -c ../main.d
../sambamba/markdup.d(609): Error: static assert  `36u == 40u` is false
[2/74] ldc2  -Isambamba@exe -I. -I.. -I/usr/include/d -enable-color -O -g -release -wi  -of 'sambamba@exe/sambamba_fixbins.d.o' -c ../sambamba/fixbins.d
[3/74] ldc2  -Isambamba@exe -I. -I.. -I/usr/include/d -enable-color -O -g -release -wi  -of 'sambamba@exe/sambamba_flagstat.d.o' -c ../sambamba/flagstat.d
[4/74] ldc2  -Isambamba@exe -I. -I.. -I/usr/include/d -enable-color -O -g -release -wi  -of 'sambamba@exe/sambamba_depth.d.o' -c ../sambamba/depth.d
ninja: build stopped: subcommand failed.

Could you please check this.
Kind regards, Andreas.

@pjotrp
Copy link
Member

pjotrp commented Mar 21, 2018

Thanks @tillea, will do soon.

@LocutusOfBorg
Copy link

For sake of completeness, I already did report and some additional posts are available on #300.
Anyhow, somewhere the "uint" is not properly being fixed size, I tried both uint32_t and uint64_t but I failed so far

@pjotrp pjotrp self-assigned this Mar 21, 2018
@pjotrp pjotrp added the bug label Mar 21, 2018
@pjotrp pjotrp added this to the 0.6.8 milestone Mar 21, 2018
@LocutusOfBorg
Copy link

regression is in commit
0583f49

@LocutusOfBorg
Copy link

I think I'll upload the assert disabled for now in Debian, to make it build again :).
From my perspective, it makes things no worse, since this was a bug also in previous release, just hidden by the missing assert

@tillea
Copy link
Author

tillea commented Apr 18, 2018 via email

@pjotrp
Copy link
Member

pjotrp commented Apr 19, 2018

Thanks. I'll look into the problem when I have time again. I looked into it quickly, but I am not sure whether the old assert or the new assert is actually the bug. Sorry about that.

@lomereiter
Copy link
Contributor

lomereiter commented Apr 20, 2018

FWIW, I almost never cared about i386 architecture, as it's very tough to process data being limited by 4GB. (Edit: I've just removed myself from BioD organization and this repo owners/watchers. Pjotr, it's all yours now.)

@tillea
Copy link
Author

tillea commented Apr 20, 2018 via email

@pjotrp
Copy link
Member

pjotrp commented Apr 21, 2018

I agree we should support i386. Not so much because I care about the target (few people will use i386), but because it brings out architecture assumptions. The number of processors is going up, rather than down, in the coming years. Good software will allow for that. Above assertion failure points out something changes on different targets (in this case the target is not that different, really, it is just the use of int and ptr). The problem is that the assertion got 'fixed' in a commit but it is not clear (to me) whether the fix was actually correct. I need to chase it. But chasing bugs is often not trivial and I need to make time for this.

So, pending.

@pjotrp pjotrp modified the milestones: 0.6.8, Later Sep 10, 2018
@pjotrp pjotrp modified the milestones: Later, v1.0.0 Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants