Hi Hrishikish,

Thank you for your continued support of Project Clearwater.

Having a look through the output of the make command it looks as though 
warnings (which would not usually cause the compilation to abort) are being 
treated as errors and causing the compiler to stop. This suggests that the 
“-Werror” flag has been enabled, perhaps it’s a default on your compiler. We 
can see more evidence for this here:

cc1plus: all warnings being treated as errors

The instructions on how to disable –Werror may change depending on which 
compiler you are using. You can try including the “-i” option in the make 
command (i.e. “make -i…”).

Please let me know if this works

Thanks,

Andrew

From: Clearwater [mailto:[email protected]] On 
Behalf Of Hrishikesh Karanjikar
Sent: Thursday, August 10, 2017 1:49 PM
To: [email protected]
Subject: [Project Clearwater] Sprout compilation failed on ARM64 platform

Hi,
I am trying to compile sprout as per the instructions given in below link,

https://github.com/Metaswitch/sprout/blob/master/docs/Development.md
But I am getting error as follows,

===================================================================

cp -r --preserve=timestamps 
/home/hrishikesh/Hrishikesh/sprout/build/module-install/usr/ 
/home/hrishikesh/Hrishikesh/sprout/usr/
make -C /home/hrishikesh/Hrishikesh/sprout/src
make[1]: Entering directory '/home/hrishikesh/Hrishikesh/sprout/src'
g++   -MMD -MP -O2 -ggdb3 -std=c++11 -Wall -Werror -Wno-write-strings 
-I../include -I../modules/cpp-common/include -I../modules/app-servers/include 
-I../usr/include -I../modules/rapidjson/include 
`PKG_CONFIG_PATH=../usr/lib/pkgconfig pkg-config --cflags libpjproject`  -c 
../modules/cpp-common/src/logger.cpp -o ../build/sprout/logger.o
g++   -MMD -MP -O2 -ggdb3 -std=c++11 -Wall -Werror -Wno-write-strings 
-I../include -I../modules/cpp-common/include -I../modules/app-servers/include 
-I../usr/include -I../modules/rapidjson/include 
`PKG_CONFIG_PATH=../usr/lib/pkgconfig pkg-config --cflags libpjproject`  -c 
../modules/cpp-common/src/saslogger.cpp -o ../build/sprout/saslogger.o
g++   -MMD -MP -O2 -ggdb3 -std=c++11 -Wall -Werror -Wno-write-strings 
-I../include -I../modules/cpp-common/include -I../modules/app-servers/include 
-I../usr/include -I../modules/rapidjson/include 
`PKG_CONFIG_PATH=../usr/lib/pkgconfig pkg-config --cflags libpjproject`  -c 
../modules/cpp-common/src/utils.cpp -o ../build/sprout/utils.o
g++   -MMD -MP -O2 -ggdb3 -std=c++11 -Wall -Werror -Wno-write-strings 
-I../include -I../modules/cpp-common/include -I../modules/app-servers/include 
-I../usr/include -I../modules/rapidjson/include 
`PKG_CONFIG_PATH=../usr/lib/pkgconfig pkg-config --cflags libpjproject`  -c 
analyticslogger.cpp -o ../build/sprout/analyticslogger.o
g++   -MMD -MP -O2 -ggdb3 -std=c++11 -Wall -Werror -Wno-write-strings 
-I../include -I../modules/cpp-common/include -I../modules/app-servers/include 
-I../usr/include -I../modules/rapidjson/include 
`PKG_CONFIG_PATH=../usr/lib/pkgconfig pkg-config --cflags libpjproject`  -c 
stack.cpp -o ../build/sprout/stack.o
In file included from stack.cpp:30:0:
../include/constants.h:183:27: error: ‘METHOD_UPDATE’ defined but not used 
[-Werror=unused-variable]
 const static pjsip_method METHOD_UPDATE = { PJSIP_OTHER_METHOD, pj_str((char*)"
                           ^
../include/constants.h:184:27: error: ‘METHOD_INFO’ defined but not used 
[-Werror=unused-variable]
 const static pjsip_method METHOD_INFO = { PJSIP_OTHER_METHOD, pj_str((char*)"IN
                           ^
cc1plus: all warnings being treated as errors
../build-infra/cpp.mk:222<http://cpp.mk:222>: recipe for target 
'../build/sprout/stack.o' failed
make[1]: *** [../build/sprout/stack.o] Error 1
make[1]: Leaving directory '/home/hrishikesh/Hrishikesh/sprout/src'
/home/hrishikesh/Hrishikesh/sprout/mk/sprout.mk:14<http://sprout.mk:14>: recipe 
for target 'sprout' failed
make: *** [sprout] Error 2

===================================================================
Can you help me out with these?

Thanks
Hrishikesh
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org

Reply via email to