You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Gautham Banasandra (Jira)" <ji...@apache.org> on 2020/08/10 17:07:20 UTC

[jira] [Updated] (HADOOP-17196) Compilation warnings caused by non-standard flags

     [ https://issues.apache.org/jira/browse/HADOOP-17196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gautham Banasandra updated HADOOP-17196:
----------------------------------------
    Description: 
The C/C++ language standard is not specified in a cross-compiler manner. Even though it's as straight forward as passing *-std* as compiler arguments, not all the values are supported by all the compilers. For example, compilation with the Visual C++ compiler on Windows with *-std=gnu99* flag causes the following warning -
{code:java}
cl : command line warning D9002: ignoring unknown option '-std=gnu99' [Z:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfs-examples\hdfs_read.vcxproj] {code}
Thus, we need to use the appropriate flags provided by CMake to specify the C/C++ standards so that it is compiler friendly.

  was:
The C/C++ language standard is not specified in a cross-compiler manner. Even though it's as straight forward as passing -std as compiler arguments, not all the values are supported by all the compilers. For example, compilation with the Visual C++ compiler on Windows with -std=gnu99 flag causes the following warning -
{code:java}
cl : command line warning D9002: ignoring unknown option '-std=gnu99' [Z:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfs-examples\hdfs_read.vcxproj] {code}
Thus, we need to use the appropriate flags provided by CMake to specify the C/C++ standards so that it is compiler friendly.


> Compilation warnings caused by non-standard flags
> -------------------------------------------------
>
>                 Key: HADOOP-17196
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17196
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 3.1.3
>         Environment: Windows 10 Pro 64-bit
>            Reporter: Gautham Banasandra
>            Priority: Major
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> The C/C++ language standard is not specified in a cross-compiler manner. Even though it's as straight forward as passing *-std* as compiler arguments, not all the values are supported by all the compilers. For example, compilation with the Visual C++ compiler on Windows with *-std=gnu99* flag causes the following warning -
> {code:java}
> cl : command line warning D9002: ignoring unknown option '-std=gnu99' [Z:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfs-examples\hdfs_read.vcxproj] {code}
> Thus, we need to use the appropriate flags provided by CMake to specify the C/C++ standards so that it is compiler friendly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org