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

Paul Guo commented on HAWQ-1316:
--------------------------------

Version should not be "backlog".

> Feature test compile failed on on Centos7.3
> -------------------------------------------
>
>                 Key: HAWQ-1316
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1316
>             Project: Apache HAWQ
>          Issue Type: Bug
>          Components: Build
>            Reporter: Radar Lei
>            Assignee: Radar Lei
>             Fix For: backlog
>
>
> While compiling HAWQ feature test on rhel7, I see below error.
> make -C lib all
> make[1]: Entering directory 
> `/tmp/build/78017950/hdb_apache/src/test/feature/lib'
> ar -r libtest.a 
> /tmp/build/78017950/hdb_apache/src/test/feature/lib/xml_parser.o 
> /tmp/build/78017950/hdb_apache/src/test/feature/lib/command.o 
> /tmp/build/78017950/hdb_apache/src/test/feature/lib/hawq_config.o 
> /tmp/build/78017950/hdb_apache/src/test/feature/lib/hawq_scp.o 
> /tmp/build/78017950/hdb_apache/src/test/feature/lib/string_util.o 
> /tmp/build/78017950/hdb_apache/src/test/feature/lib/hdfs_config.o 
> /tmp/build/78017950/hdb_apache/src/test/feature/lib/data_gen.o 
> /tmp/build/78017950/hdb_apache/src/test/feature/lib/psql.o 
> /tmp/build/78017950/hdb_apache/src/test/feature/lib/yarn_config.o 
> /tmp/build/78017950/hdb_apache/src/test/feature/lib/sql_util.o 
> /tmp/build/78017950/hdb_apache/src/test/feature/lib/file_replace.o
> ar: creating libtest.a
> make[1]: Leaving directory 
> `/tmp/build/78017950/hdb_apache/src/test/feature/lib'
> g++ -I/usr/include -I/usr/local/include -I/usr/include/libxml2 
> -I/tmp/build/78017950/hdb_apache/src/test/feature/ 
> -I/tmp/build/78017950/hdb_apache/src/test/feature/ManagementTool/ 
> -I/tmp/build/78017950/hdb_apache/src/test/feature/lib/ 
> -I/tmp/build/78017950/hdb_apache/src/interfaces/libpq 
> -I/tmp/build/78017950/hdb_apache/src/interfaces 
> -I/tmp/build/78017950/hdb_apache/src/include  
> -I/tmp/build/78017950/hdb_apache/depends/thirdparty/googletest/googletest/include
>  
> -I/tmp/build/78017950/hdb_apache/depends/thirdparty/googletest/googlemock/include
>  -Wall -O0 -g -std=c++11 test_main.o ao/TestAoSnappy.o utility/test_copy.o 
> utility/test_cmd.o testlib/test_lib.o ExternalSource/test_errortbl.o 
> ExternalSource/test_external_oid.o ExternalSource/test_exttab.o 
> query/test_create_type_composite.o query/test_prepare.o query/test_portal.o 
> query/test_temp.o query/test_polymorphism.o query/test_nested_case_null.o 
> query/test_sequence.o query/test_parser.o query/test_information_schema.o 
> query/test_gp_dist_random.o query/test_rowtypes.o query/test_insert.o 
> query/test_aggregate.o parquet/test_parquet.o 
> transactions/test_transactions.o ddl/test_database.o 
> partition/test_partition.o catalog/test_alter_table.o catalog/test_type.o 
> catalog/test_alter_owner.o catalog/test_guc.o catalog/test_create_table.o 
> toast/TestToast.o planner/test_subplan.o UDF/TestUDF.o 
> PreparedStatement/TestPreparedStatement.o lib/xml_parser.o lib/command.o 
> lib/hawq_config.o lib/hawq_scp.o lib/string_util.o lib/hdfs_config.o 
> lib/data_gen.o lib/psql.o lib/yarn_config.o lib/sql_util.o lib/file_replace.o 
> ManagementTool/test_hawq_register_usage2_case1.o 
> ManagementTool/test_hawq_register_usage2_case2.o 
> ManagementTool/test_hawq_register_usage1.o 
> ManagementTool/test_hawq_register_rollback.o 
> ManagementTool/test_hawq_register_partition.o -L../../../src/port 
> -L../../../src/port -Wl,--as-needed 
> -L/tmp/build/78017950/hdb_apache/depends/libhdfs3/build/install/usr/local/hawq/lib
>  
> -L/tmp/build/78017950/hdb_apache/depends/libyarn/build/install/usr/local/hawq/lib
>  -Wl,-rpath,'/usr/local/hawq/lib',--enable-new-dtags -L/usr/local/lib 
> -L/usr/lib -L/tmp/build/78017950/hdb_apache/src/test/feature/ 
> -L/tmp/build/78017950/hdb_apache/src/test/feature/lib/ 
> -L/tmp/build/78017950/hdb_apache/src/interfaces/libpq 
> -L/tmp/build/78017950/hdb_apache/depends/thirdparty/googletest/build/googlemock
>  
> -L/tmp/build/78017950/hdb_apache/depends/thirdparty/googletest/build/googlemock/gtest
>  -lpgport -ljson-c -levent -lyaml -lsnappy -lbz2 -lrt -lz -lreadline -lcrypt 
> -ldl -lm  -lcurl   -lyarn -lkrb5 -lgtest -lpq -lxml2 -ltest -o feature-test
> /usr/bin/ld: /usr/lib/libgtest.a(gtest-all.cc.o): undefined reference to 
> symbol 'pthread_key_delete@@GLIBC_2.2.5'
> /usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command 
> line
> collect2: error: ld returned 1 exit status
> make: *** [all] Error 1
> After append '-l pthread', the compile passed. now this happens on centos7.3 
> version, centos7.2 working fine.



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

Reply via email to