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

Compilation fails on 32bit / i686 systems #52

Open
phile314 opened this issue Mar 18, 2015 · 1 comment
Open

Compilation fails on 32bit / i686 systems #52

phile314 opened this issue Mar 18, 2015 · 1 comment

Comments

@phile314
Copy link
Member

Compilation fails on 32bit / i686 systems:

touch build/101/rts/bc/bc/interpreter.c
building build/101/rts/bc/bc/interpreter.o
/nix/store/icgwaw22fjy9c50rwc334hsc68xrs2w2-clang-wrapper-3.5.0/bin/clang -I/tmp/nix-build-uhc-1.1.8.7.drv-0/uhc-0dec07e/EHC/install/101/shared/include/ -std=gnu99 -Wno-array-bounds  -fomit-frame-pointer -D__UHC_BUILDS_RTS__ -O3 -D__UHC_TARGET_BC__ -D__UHC_TARGET__=bc -o build/101/rts/bc/bc/interpreter.o -c build/101/rts/bc/bc/interpreter.c
build/101/rts/bc/bc/interpreter.c:317:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
fatal error: error in backend: Invalid register name global variable
clang-3.5: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 3.5.0 (tags/RELEASE_350/final)
Target: i386-pc-linux-gnu
Thread model: posix
clang-3.5: note: diagnostic msg: PLEASE submit a bug report to  and include the crash backtrace, preprocessed source, and associated run script.
clang-3.5: note: diagnostic msg: 

Full log:
http://hydra.nixos.org/build/20345965/log/raw

I don't care if this gets fixed or not, but I'm opening the issue anyway in case somebody else runs into the same problem. Feel free to close.

@barracuda156
Copy link

@phile314 Have you tried using gcc instead? clang is often inherently broken, especially for older platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants