[ https://issues.apache.org/jira/browse/HDFS-12026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16084465#comment-16084465 ]
Anatoli Shein commented on HDFS-12026: -------------------------------------- Some clarification on Libhdfs building process with the latest patch: During the normal build Libhdfspp is compiled with the default C/C++ compiler on the system (specified in CC/CXX variables). During the CI run the additional second build with the alternative compiler is performed. For example if CC/CXX are set to gcc/g++, then the second build will be done with clang/clang++, and vice versa. This assumes that both compilers are installed on the CI system and can be simply invoked from terminal by entering their names. After adding clang to the Dockerfile our current CI system supports that. We currently do not support CI systems that have only one compiler installed, or systems where gcc links to clang, or clang links to gcc. E.g.: if gcc links to clang on some CI system, then the second build would have to be done with the actual gcc, and it could be cumbersome to try and find the location of the actual gcc compiler on such system automatically. Please review. > libhdfs++: Fix compilation errors and warnings when compiling with Clang > ------------------------------------------------------------------------- > > Key: HDFS-12026 > URL: https://issues.apache.org/jira/browse/HDFS-12026 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Reporter: Anatoli Shein > Assignee: Anatoli Shein > Attachments: HDFS-12026.HDFS-8707.000.patch, > HDFS-12026.HDFS-8707.001.patch, HDFS-12026.HDFS-8707.002.patch, > HDFS-12026.HDFS-8707.003.patch, HDFS-12026.HDFS-8707.004.patch, > HDFS-12026.HDFS-8707.005.patch, HDFS-12026.HDFS-8707.006.patch, > HDFS-12026.HDFS-8707.007.patch, HDFS-12026.HDFS-8707.008.patch > > > Currently multiple errors and warnings prevent libhdfspp from being compiled > with clang. It should compile cleanly using flag: > -std=c++11 > and also warning flags: > -Weverything -Wno-c++98-compat -Wno-missing-prototypes > -Wno-c++98-compat-pedantic -Wno-padded -Wno-covered-switch-default > -Wno-missing-noreturn -Wno-unknown-pragmas -Wconversion -Werror -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org