[ 
https://issues.apache.org/jira/browse/HDFS-16681?focusedWorklogId=794990&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-794990
 ]

ASF GitHub Bot logged work on HDFS-16681:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Jul/22 17:25
            Start Date: 25/Jul/22 17:25
    Worklog Time Spent: 10m 
      Work Description: GauthamBanasandra merged PR #4615:
URL: https://github.com/apache/hadoop/pull/4615




Issue Time Tracking
-------------------

    Worklog Id:     (was: 794990)
    Time Spent: 1h  (was: 50m)

> Do not pass GCC flags for MSVC in libhdfspp
> -------------------------------------------
>
>                 Key: HDFS-16681
>                 URL: https://issues.apache.org/jira/browse/HDFS-16681
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: libhdfs++
>    Affects Versions: 3.4.0
>         Environment: Windows 10
>            Reporter: Gautham Banasandra
>            Assignee: Gautham Banasandra
>            Priority: Major
>              Labels: libhdfscpp, pull-request-available
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The tests in HDFS native client uses the *-Wno-missing-field-initializers* 
> flag to ignore warnings about uninitialized members - 
> https://github.com/apache/hadoop/blob/8f83d9f56d775c73af6e3fa1d6a9aa3e64eebc37/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/CMakeLists.txt#L27-L28
> {code}
> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-field-initializers")
> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-field-initializers")
> {code}
> This leads to the following error on Visual C++.
> {code}
> [exec] 
> "E:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\ALL_BUILD.vcxproj"
>  (default target) (1) ->
> [exec] 
> "E:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\x-platform\x_platform_dirent_test_obj.vcxproj"
>  (default target) (24) ->
> [exec]   cl : command line error D8021: invalid numeric argument 
> '/Wno-missing-field-initializers' 
> [E:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\x-platform\x_platform_dirent_test_obj.vcxproj]
> {code}
> Thus, we need to pass this flag only when the compiler isn't Visual C++.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to