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

Namrata Bhave commented on HAWQ-1391:
-------------------------------------

I am working on building and testing HAWQ on s390x platform.
I am facing below error while executing make unittest-check in access/external:

[ RUN         ] test__GPHD_HA_load_nodes__UnknownNameservice
[          OK ] test__GPHD_HA_load_nodes__UnknownNameservice
[ RUN         ] test__GPHD_HA_load_nodes__OneNN
                No entries for symbol hdfsFreeNamenodeInformation.
                ERROR: ha_config_mock.c:38 - Could not get value to mock 
function hdfsFreeNamenodeInformation
                Previously returned mock value was declared at 
ha_config_test.c:93
[      FAILED ] test__GPHD_HA_load_nodes__OneNN
[ RUN         ] test__GPHD_HA_load_nodes__RpcDelimMissing
                No entries for symbol hdfsFreeNamenodeInformation.
                ERROR: ha_config_mock.c:38 - Could not get value to mock 
function hdfsFreeNamenodeInformation
                Previously returned mock value was declared at 
ha_config_test.c:127
[      FAILED ] test__GPHD_HA_load_nodes__RpcDelimMissing
[ RUN         ] test__GPHD_HA_load_nodes__PxfServicePortIsAssigned
                port_to_str() has remaining non-returned values.
                  Remaining item(s) declared at...
                    ha_config_test.c:163
                    ha_config_test.c:168
                port_to_str() has remaining non-assigned out-values.
                  Remaining item(s) declared at...
                    port:0
port_to_str.                port parameter still has values that haven't been 
checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:164
                    ha_config_test.c:169
                new_port parameter still has values that haven't been checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:165
                    ha_config_test.c:170
[      FAILED ] test__GPHD_HA_load_nodes__PxfServicePortIsAssigned
[ RUN         ] test__GPHD_HA_load_nodes__HostMissing
                port_to_str() has remaining non-returned values.
                  Remaining item(s) declared at...
                    ha_config_test.c:197
                    ha_config_test.c:202
                port_to_str() has remaining non-assigned out-values.
                  Remaining item(s) declared at...
                    port:0
port_to_str.                port parameter still has values that haven't been 
checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:198
                    ha_config_test.c:203
                new_port parameter still has values that haven't been checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:199
                    ha_config_test.c:204
[      FAILED ] test__GPHD_HA_load_nodes__HostMissing
[ RUN         ] test__GPHD_HA_load_nodes__PortMissing
                port_to_str() has remaining non-returned values.
                  Remaining item(s) declared at...
                    ha_config_test.c:238
                    ha_config_test.c:242
port_to_str.                port parameter still has values that haven't been 
checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:239
                    ha_config_test.c:243
                new_port parameter still has values that haven't been checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:240
                    ha_config_test.c:244
[      FAILED ] test__GPHD_HA_load_nodes__PortMissing
[ RUN         ] test__GPHD_HA_load_nodes__PortIsInvalidNumber
                port_to_str() has remaining non-returned values.
                  Remaining item(s) declared at...
                    ha_config_test.c:277
                    ha_config_test.c:282
                port_to_str() has remaining non-assigned out-values.
                  Remaining item(s) declared at...
                    port:0
port_to_str.                port parameter still has values that haven't been 
checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:278
                    ha_config_test.c:283
                new_port parameter still has values that haven't been checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:279
                    ha_config_test.c:284
[      FAILED ] test__GPHD_HA_load_nodes__PortIsInvalidNumber
[ RUN         ] test__GPHD_HA_load_nodes__PortIsNotNumber_TakeOne
                port_to_str() has remaining non-returned values.
                  Remaining item(s) declared at...
                    ha_config_test.c:318
                    ha_config_test.c:323
                port_to_str() has remaining non-assigned out-values.
                  Remaining item(s) declared at...
                    port:0
port_to_str.                port parameter still has values that haven't been 
checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:319
                    ha_config_test.c:324
                new_port parameter still has values that haven't been checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:320
                    ha_config_test.c:325
[      FAILED ] test__GPHD_HA_load_nodes__PortIsNotNumber_TakeOne
[ RUN         ] test__GPHD_HA_load_nodes__PortIsNotNumber_TakeTwo
                port_to_str() has remaining non-returned values.
                  Remaining item(s) declared at...
                    ha_config_test.c:358
                    ha_config_test.c:363
                port_to_str() has remaining non-assigned out-values.
                  Remaining item(s) declared at...
                    port:0
port_to_str.                port parameter still has values that haven't been 
checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:359
                    ha_config_test.c:364
                new_port parameter still has values that haven't been checked.
                  Remaining item(s) declared at...
                    ha_config_test.c:360
                    ha_config_test.c:365
[      FAILED ] test__GPHD_HA_load_nodes__PortIsNotNumber_TakeTwo
[=============] 9 tests ran
[ PASSED      ] 1 tests
[ FAILED      ] 8 tests, listed below
[ FAILED      ] test__GPHD_HA_load_nodes__OneNN
[ FAILED      ] test__GPHD_HA_load_nodes__RpcDelimMissing
[ FAILED      ] test__GPHD_HA_load_nodes__PxfServicePortIsAssigned
[ FAILED      ] test__GPHD_HA_load_nodes__HostMissing
[ FAILED      ] test__GPHD_HA_load_nodes__PortMissing
[ FAILED      ] test__GPHD_HA_load_nodes__PortIsInvalidNumber
[ FAILED      ] test__GPHD_HA_load_nodes__PortIsNotNumber_TakeOne
[ FAILED      ] test__GPHD_HA_load_nodes__PortIsNotNumber_TakeTwo
make[1]: *** [ha_config-check] Error 8

While debugging test__GPHD_HA_load_nodes__OneNN, it was observed that, in 
ha_config_mock.c:hdfsGetHANamenodes, the *size / len variable is 0 on s390x 
instead of 1. 

Could someone help in resolving the same?




> s390x support for HWCRC32c
> --------------------------
>
>                 Key: HAWQ-1391
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1391
>             Project: Apache HAWQ
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: ketan
>            Assignee: Ed Espino
>
> Hi ,
> I am in progress building Apache - HAWQ on s390x
> following instruction on
> https://cwiki.apache.org/confluence/display/HAWQ/Build+and+Install
> I am in the build stage i notice that during the build i encounter
> undefined reference to vtable for Hdfs::Internal::HWCrc32c
> On further debugging i observed that  libhdfs3/src/common/HWCRC32c.cpp has 
> not support for s390x.
> My questions are as follows.
> 1) I want to confirm whether does this check happens as part of unit testing 
> of libhdfs3?
> 2) if yes to 1 whether this test is specific to SSE based platforms ?
> 3) can we exactly get some information on what this check does>?
> 4) Is HAWQ source supported on  SSE based platforms only ?  
> Help would be appreciated.
> Adding Log for reference.
> **************************************************
> make[3]: Leaving directory `//incubator-hawq/src/backend/cdb'
> g++ -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -fno-aggressive-loop-optimizations  -I/usr/include/libxml2 -L../../src/port 
> -L../../src/port -Wl,--as-needed 
> -L/scratch/ecos0013/ketan/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/lib
>  
> -L/scratch/ecos0013/ketan/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/lib
>  -Wl,-rpath,'/usr/local/hawq/lib',--enable-new-dtags -Wl,-E access/SUBSYS.o 
> bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o commands/SUBSYS.o 
> executor/SUBSYS.o foreign/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o 
> gp_libpq_fe/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o 
> port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o 
> storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o resourcemanager/SUBSYS.o 
> ../../src/timezone/SUBSYS.o cdb/SUBSYS.o ../../src/port/libpgport_srv.a 
> -lprotobuf -lboost_system -lboost_date_time -lstdc++ -lhdfs3 -lgsasl -lxml2 
> -ljson-c -levent -lyaml -lsnappy -lbz2 -lrt -lz -lcrypt -ldl -lm -lcurl 
> -lyarn -lkrb5 -lpthread -lthrift -lsnappy -o postgres
> /scratch/ecos0013/ketan/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/lib/libhdfs3.so:
>  undefined reference to `Hdfs::Internal::HWCrc32c::available()'
> /scratch/ecos0013/ketan/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/lib/libhdfs3.so:
>  undefined reference to `vtable for Hdfs::Internal::HWCrc32c'
> collect2: error: ld returned 1 exit status
> make[2]: *** [postgres] Error 1
> make[2]: Leaving directory `incubator-hawq/src/backend'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/incubator-hawq/src'
> make: *** [all] Error 2
> ******************************************************************************
> Regards
> Ketan



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

Reply via email to