[ 
https://issues.apache.org/jira/browse/HAWQ-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16022263#comment-16022263
 ] 

Paul Guo commented on HAWQ-1471:
--------------------------------

There is another gcc requirement on that page (see below). In my centos6.7 dev 
vm, the gcc version is
"gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)". If I remember correctly I 
followed the instruction and there
is not issue of compiling on my box.

Default version of gcc in Red Hat/CentOS 6.X is 4.4.7 or lower, you can quickly 
upgrade gcc following instructions below:
cd /etc/yum.repos.d
# make sure you have root permission
wget -O /etc/yum.repos.d/slc6-devtoolset.repo 
http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
# install higher version using devtoolset-2
yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++
# Start using software collections
scl enable devtoolset-2 bash

I think we should remove the gcc version items on that page (for rhel6.x). By 
the way, next time you might
wan to send to the dev/user email list since there are broader audience there 
and anyone have the permission
of that page could modify the page quickly.

> "Build and Install" under Red Hat 6.X environment, gcc / gcc-c++ version 
> 4.7.2 is too low to install hawq
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HAWQ-1471
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1471
>             Project: Apache HAWQ
>          Issue Type: Improvement
>          Components: Build
>            Reporter: fangpei
>            Assignee: Ed Espino
>
>     My OS environment is Red Hat 6.5. I referred to the  website 
> "https://cwiki.apache.org//confluence/display/HAWQ/Build+and+Install"; to 
> build and install hawq. I installed the GCC version specified on the website 
> (gcc 4.7.2 / gcc-c++ 4.7.2), but the error happened:
>     "error: 'Hdfs::Internal::Once' cannot be thread-local because it has 
> non-trivial type 'std::once_flag'" 
>     or
>     "error : 'Yarn:Internal::Once' cannot be thread-local because it has 
> non-trivial type 'std::once_flag'"
>     I found that GCC support for C ++ 11 is not good, leading to the 
> emergence of the error.
>     So I installed gcc 4.8.5 / gcc-c++ 4.8.5, and the problem was resolved. 
>     gcc / gcc-c++ version 4.7.2 is too low to install hawq, I suggest 
> updating the website about gcc / gcc-c++ version requirement.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to