Bug 57374 - compilation issue with gcc 4.7.2
Summary: compilation issue with gcc 4.7.2
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: 9.0
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-21 15:07 UTC by andreas
Modified: 2012-11-22 15:31 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description andreas 2012-11-21 15:07:59 UTC
Mesa-9.0.1/src/gallium/auxiliary/draw/draw_vs.h:170

  #if HAVE_LLVM
     [...]
  #endif

some other files have this construct, too.

I guess that's not valid anymore with recent gcc versions?
please enlighten me :)

if my assumption is correct, this can be fixed by using

  #if defined(HAVE_LLVM)
     [...]
  #endif

instead.

I'll create a patch for that. if you want it, send a ping :)

Thanks,
Andy
Comment 1 andreas 2012-11-21 15:26:48 UTC
oh, maybe I was too hasty. now it sais:

In file included from /usr/include/llvm-c/Core.h:18:0,
                 from ./gallivm/lp_bld.h:49,
                 from ./gallivm/lp_bld_init.h:35,
                 from draw/draw_context.c:44:
/usr/include/llvm/Support/DataTypes.h:53:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h"

I'll quickly look into that and post what I find here.
Comment 2 Michel Dänzer 2012-11-22 09:37:25 UTC
> I guess that's not valid anymore with recent gcc versions?

Why wouldn't it be? It's a standard preprocessor test.

I'm afraid you're tumbling down a rabbit hole. :) What was the original problem you're trying to solve?
Comment 3 andreas 2012-11-22 15:06:10 UTC
> I'm afraid you're tumbling down a rabbit hole. :) What was the original
> problem you're trying to solve?

You're completely right. My build environment wasn't sane which lead to a complete crash of my system. I've just set everything back up and there are no issues anymore.

I'm sorry, and thank you for your reply :)


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.