Bug 83382 - /usr/include/string.h:82:1: error: unknown type name '__extern_always_inline'
Summary: /usr/include/string.h:82:1: error: unknown type name '__extern_always_inline'
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-02 04:12 UTC by Vinson Lee
Modified: 2015-12-01 05:11 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2014-09-02 04:12:35 UTC
mesa: 94a909ec2df779bfdac6f42a25077b427b3873ea (10.4.0-devel)

Build error with GCC on Fedora

  CXX      glsl_lexer.lo
In file included from glsl_lexer.cpp:21:
/usr/include/string.h:82:1: error: unknown type name '__extern_always_inline'
__extern_always_inline void *
^
Comment 1 Alexander von Gluck 2014-09-02 17:38:23 UTC
Looks like a clang issue?

https://twiki.cern.ch/twiki/bin/view/Sandbox/ClangAsCrossCompiler

  " -D__extern_always_inline=inline"
Comment 2 Alexander von Gluck 2014-09-02 21:09:36 UTC
What version of fedora is this?
What commands are you using to build Mesa?

rpm -qa | grep gcc

Thanks!
Comment 3 Vinson Lee 2014-09-03 00:28:40 UTC
$ cat /etc/redhat-release 
Fedora release 22 (Rawhide)

$ export CC=clang
$ export CXX=clang++
$ ./autogen.sh
$ make

$ yum info gcc
Installed Packages
Name        : gcc
Arch        : x86_64
Version     : 4.9.1
Release     : 7.fc22
Size        : 42 M
Repo        : installed
From repo   : rawhide
Summary     : Various compilers (C, C++, Objective-C, Java, ...)
URL         : http://gcc.gnu.org
License     : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Description : The gcc package contains the GNU Compiler Collection version 4.9.
            : You'll need this package in order to compile C code.


$ yum info clang
Installed Packages
Name        : clang
Arch        : x86_64
Version     : 3.4
Release     : 15.fc22
Size        : 65 M
Repo        : installed
From repo   : rawhide
Summary     : A C language family front-end for LLVM
URL         : http://llvm.org/
License     : NCSA
Description : clang: noun
            :     1. A loud, resonant, metallic sound.
            :     2. The strident call of a crane or goose.
            :     3. C-language family front-end toolkit.
            : 
            : The goal of the Clang project is to create a new C, C++, Objective C
            : and Objective C++ front-end for the LLVM compiler. Its tools are built
            : as libraries and designed to be loosely-coupled and extensible.
Comment 4 Ian Romanick 2015-11-30 23:35:08 UTC
This bug is quite old... does this problem still occur?


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.