Summary: | error: cast from ‘void*’ to ‘intptr_t {aka int}’ loses precision [-fpermissive] in ast_to_hir.cpp | ||
---|---|---|---|
Product: | Mesa | Reporter: | Alexandre Demers <alexandre.f.demers> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Alexandre Demers
2012-02-10 09:15:58 UTC
Something is wonkey with your build or your system. The whole purpose of the intptr_t type is to be an integer that is large enough to hold a pointer. It sounds like stdint.h on your system is broken or the compile is (somehow) picking up the wrong one. You might try copy-and-pasting that compile line replacing the -c with -E. The output may give some clue as to where the broken intptr_t definition is coming from. Indeed, there seems to be something wrong. My system doesn't boot anymore... I'm working on it and when that will be fixed, I'll tell you if my build goes back to a working state. Ok, my system is mostly fixed (Xorg crashes when starting, pointing maybe to libc and/or the ddx driver). So I tried replacing -c by -E and... It builds correctly, without any error. It seems reinstalling libc6-dev and linux-libc-dev fixed the problem. Thanks for the help though. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.