Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It looks like the Clang binaries for 32-bit Ubuntu try to produce 64-bit executables by default:

    # clang -v
    clang version 3.2 (tags/RELEASE_32/final)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    # clang hello_world.c
    /usr/include/features.h:324:10: fatal error: 'bits/predefs.h' file not found
    # clang -m32 hello_world.c  # (No error)
    
That's not right, surely?


This is what bit me when compiling g++ on Ubuntu: http://wiki.debian.org/Multiarch

There seemed to be some special magic in the gcc build for Debian-derived distros. It wasn't all controllable with command-line options.

You and Clang may be encountering similar fun.


Sure you didn't download the 64-bit binaries? The 32-bit ones look fine to me.

If you see that on 32-bit ones, file a bug.


This has now been fixed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: