Juniper / contrail-installer

Install scripts for OpenContrail
29 stars 64 forks source link

./contrail.sh build fails with error 'controller/src/database/cassandra/cql/cql_if.cc:12:23: fatal error: cassandra.h: No such file or directory' #113

Open asifhasnain opened 8 years ago

asifhasnain commented 8 years ago

2016-01-15 18:22:56 g++ -o build/production/analytics/syslog_collector.o -c -g -O3 -Wall -Werror -Wsign-compare -Wno-unused-local-typedefs -DLINUX -DUSE_CASSANDRA_CQL -DBOOST_NO_UNREACHABLE_RETURN_DETECTION -Icontroller/src -Ibuild/include -Icontroller/lib -I/usr/include/python2.7 -I/usr/include/librdkafka -Ibuild/production/tools/sandesh/library/common -Itools/sandesh/library/common -Ibuild/production/io -Icontroller/src/io -Ibuild/production/database -Icontroller/src/database -Ibuild/production -Ibuild/production/http/client -Icontroller/src/http/client -Ibuild/production/discovery/client -Icontroller/src/discovery/client -Ibuild/production/analytics -Icontroller/src/analytics -Ibuild/production -Ibuild/production/base/sandesh -Icontroller/src/base/sandesh controller/src/analytics/syslog_collector.cc 2016-01-15 18:23:10 g++ -o build/production/database/cassandra/cql/cql_if.o -c -g -O3 -Wall -Werror -Wsign-compare -Wno-unused-local-typedefs -DLINUX -Icontroller/src -Ibuild/include -Icontroller/lib -Ibuild/production -Ibuild/production/database -Icontroller/src/database -I/usr/include controller/src/database/cassandra/cql/cql_if.cc 2016-01-15 18:23:11 controller/src/database/cassandra/cql/cql_if.cc:12:23: fatal error: cassandra.h: No such file or directory 2016-01-15 18:23:11 #include 2016-01-15 18:23:11 compilation terminated. 2016-01-15 18:23:13 scons: *\ [build/production/database/cassandra/cql/cql_if.o] Error 1 2016-01-15 18:23:35 scons: building terminated because of errors. 2016-01-15 18:23:36 ++ ret_val=2 2016-01-15 18:23:36 exited with status :2 2016-01-15 18:23:36 ++ [[ 2 -ne 0 ]] 2016-01-15 18:23:36 ++ exit 2 2016-01-15 18:23:36 ++ clean 2016-01-15 18:23:36 ++ local r=2 2016-01-15 18:23:36 ++ echo 'exited with status :2' 2016-01-15 18:23:36 ++ exit 2

dsetia commented 8 years ago

I just submitted a fix for this. We switched to new Cassandra version which requires development packages to be present while building

pmondal08 commented 8 years ago

Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty

I hit the same issue while build with latest code . I have all the development packages pre install is there any specific package to be installed?

2016-03-16 17:30:42 g++ -o build/production/database/cassandra/cql/cql_if.o -c -g -O3 -Wall -Werror -Wsign-compare -Wno-unused-local-typedefs -DLINUX -Icontroller/src -Ibuild/include -Icontroller/lib -Ibuild/production -Ibuild/production/database -Icontroller/src/database -I/usr/include controller/src/database/cassandra/cql/cql_if.cc 2016-03-16 17:30:44 controller/src/database/cassandra/cql/cql_if.cc:12:23: fatal error: cassandra.h: No such file or directory 2016-03-16 17:30:44 #include 2016-03-16 17:30:44 ^ 2016-03-16 17:30:44 compilation terminated. 2016-03-16 17:30:47 scons: *\ [build/production/database/cassandra/cql/cql_if.o] Error 1 2016-03-16 17:30:47 scons: building terminated because of errors. 2016-03-16 17:30:48 ++ ret_val=2 :/app/contrail-installer$ 2016-03-16 17:30:48 exited with status :2 2016-03-16 17:30:48 ++ [[ 2 -ne 0 ]] 2016-03-16 17:30:48 ++ exit 2 2016-03-16 17:30:48 ++ clean 2016-03-16 17:30:48 ++ local r=2 2016-03-16 17:30:48 ++ echo 'exited with status :2' 2016-03-16 17:30:48 ++ exit 2

appeacock commented 8 years ago

I just ran into this as well. is there a fix or known dependencies that must exist prior to starting the compile?

dsetia commented 8 years ago

looking into this …

— Deepinder

From: aplawson notifications@github.com<mailto:notifications@github.com> Reply-To: Juniper/contrail-installer reply@reply.github.com<mailto:reply@reply.github.com> Date: Thursday, March 17, 2016 at 12:44 PM To: Juniper/contrail-installer contrail-installer@noreply.github.com<mailto:contrail-installer@noreply.github.com> Cc: Deepinder SETIA dsetia@juniper.net<mailto:dsetia@juniper.net> Subject: Re: [contrail-installer] ./contrail.sh build fails with error 'controller/src/database/cassandra/cql/cql_if.cc:12:23: fatal error: cassandra.h: No such file or directory' (#113)

I just ran into this as well. is there a fix or known dependencies that must exist prior to starting the compile?

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHubhttps://github.com/Juniper/contrail-installer/issues/113#issuecomment-198052975

appeacock commented 8 years ago

I'm cloning "juniper/contrail-installer --branch master" if that helps at all.

dsetia commented 8 years ago

https://github.com/Juniper/contrail-installer/commit/b0fb3262835145c4d4bbfeb3d94315777f9bce82 was supposed to fix a while back. Maybe some package version has changed. I am doing a run and will report soon.

dsetia commented 8 years ago

Please sync again and retry. Path of Cassandra development package had changed.

HehuaTang commented 8 years ago

Hi ,I also hit this issue today when I build the R3.0. I solved it by copy cassandra.h to my /usr/include. I also hit the issue, scons reported that no file zookeeper.h, I also copy zookeeper.h to zookeeper directory. But now it still reported error link following: ranlib build/debug/analytics/ruleparser/libruleparser.a gcc -o build/third_party/hiredis/src/net.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/net.c gcc -o build/third_party/hiredis/src/hiredis.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/hiredis.c gcc -o build/third_party/hiredis/src/sds.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/sds.c gcc -o build/third_party/hiredis/src/async.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/async.c gcc -o build/third_party/hiredis/src/dict.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/dict.c g++ -o build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.cpp g++ -o build/third_party/hiredis/base64.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/base64.cpp ar rc build/third_party/hiredis/libhiredis.a build/third_party/hiredis/src/net.o build/third_party/hiredis/src/hiredis.o build/third_party/hiredis/src/sds.o build/third_party/hiredis/src/async.o build/third_party/hiredis/src/dict.o build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.o build/third_party/hiredis/base64.o ranlib build/third_party/hiredis/libhiredis.a Install file: "build/third_party/hiredis/libhiredis.a" as "build/lib/libhiredis.a" g++ -o build/debug/zookeeper/zookeeper_client.o -c -g -O0 -DDEBUG -Wall -Werror -Wsign-compare -Wno-unused-local-typedefs -DLINUX -Icontroller/src -Ibuild/include -Icontroller/lib -I/usr/include controller/src/zookeeper/zookeeper_client.cc In file included from controller/src/zookeeper/zookeeper_client_impl.h:8:0, from controller/src/zookeeper/zookeeper_client.cc:10: controller/src/zookeeper/zookeeper.h:32:19: fatal error: proto.h: No such file or directory

include "proto.h"

               ^

compilation terminated. scons: *\ [build/debug/zookeeper/zookeeper_client.o] Error 1 scons: building terminated because of errors.

Is there some packages to be installed in my building host? I could build R2.2 successfully. Thanks

meghb commented 8 years ago

You will need to install

cassandra-cpp-driver-dev libzookeeper-mt-dev libzookeeper-mt2 cassandra-cpp-driver

Thanks

Megh

On Apr 22, 2016, at 1:52 AM, HehuaTang notifications@github.com<mailto:notifications@github.com> wrote:

Hi ,I also hit this issue today when I build the R3.0. I solved it by copy cassandra.h to my /usr/include. I also hit the issue, scons reported that no file zookeeper.h, I also copy zookeeper.h to zookeeper directory. But now it still reported error link following: ranlib build/debug/analytics/ruleparser/libruleparser.a gcc -o build/third_party/hiredis/src/net.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/net.c gcc -o build/third_party/hiredis/src/hiredis.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/hiredis.c gcc -o build/third_party/hiredis/src/sds.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/sds.c gcc -o build/third_party/hiredis/src/async.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/async.c gcc -o build/third_party/hiredis/src/dict.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/dict.c g++ -o build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.cpp g++ -o build/third_party/hiredis/base64.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/base64.cpp ar rc build/third_party/hiredis/libhiredis.a build/third_party/hiredis/src/net.o build/third_party/hiredis/src/hiredis.o build/third_party/hiredis/src/sds.o build/third_party/hiredis/src/async.o build/third_party/hiredis/src/dict.o build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.o build/third_party/hiredis/base64.o ranlib build/third_party/hiredis/libhiredis.a Install file: "build/third_party/hiredis/libhiredis.a" as "build/lib/libhiredis.a" g++ -o build/debug/zookeeper/zookeeper_client.o -c -g -O0 -DDEBUG -Wall -Werror -Wsign-compare -Wno-unused-local-typedefs -DLINUX -Icontroller/src -Ibuild/include -Icontroller/lib -I/usr/include controller/src/zookeeper/zookeeper_client.cc In file included from controller/src/zookeeper/zookeeper_client_impl.h:8:0, from controller/src/zookeeper/zookeeper_client.cc:10: controller/src/zookeeper/zookeeper.h:32:19: fatal error: proto.h: No such file or directory

include "proto.h"

^ compilation terminated. scons: *\ [build/debug/zookeeper/zookeeper_client.o] Error 1 scons: building terminated because of errors.

Is there some packages to be installed in my building host? I could build R2.2 successfully. Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHubhttps://github.com/Juniper/contrail-installer/issues/113#issuecomment-213334977

meghb commented 8 years ago

The cassandra packages can be downloaded from:

https://downloads.datastax.com/cpp-driver/ubuntu/14.04/v2.2.0/

Thanks

Megh

On Apr 22, 2016, at 7:42 AM, Megh Bhatt meghb@juniper.net<mailto:meghb@juniper.net> wrote:

You will need to install

cassandra-cpp-driver-dev libzookeeper-mt-dev libzookeeper-mt2 cassandra-cpp-driver

Thanks

Megh

On Apr 22, 2016, at 1:52 AM, HehuaTang notifications@github.com<mailto:notifications@github.com> wrote:

Hi ,I also hit this issue today when I build the R3.0. I solved it by copy cassandra.h to my /usr/include. I also hit the issue, scons reported that no file zookeeper.h, I also copy zookeeper.h to zookeeper directory. But now it still reported error link following: ranlib build/debug/analytics/ruleparser/libruleparser.a gcc -o build/third_party/hiredis/src/net.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/net.c gcc -o build/third_party/hiredis/src/hiredis.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/hiredis.c gcc -o build/third_party/hiredis/src/sds.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/sds.c gcc -o build/third_party/hiredis/src/async.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/async.c gcc -o build/third_party/hiredis/src/dict.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/dict.c g++ -o build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.cpp g++ -o build/third_party/hiredis/base64.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/base64.cpp ar rc build/third_party/hiredis/libhiredis.a build/third_party/hiredis/src/net.o build/third_party/hiredis/src/hiredis.o build/third_party/hiredis/src/sds.o build/third_party/hiredis/src/async.o build/third_party/hiredis/src/dict.o build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.o build/third_party/hiredis/base64.o ranlib build/third_party/hiredis/libhiredis.a Install file: "build/third_party/hiredis/libhiredis.a" as "build/lib/libhiredis.a" g++ -o build/debug/zookeeper/zookeeper_client.o -c -g -O0 -DDEBUG -Wall -Werror -Wsign-compare -Wno-unused-local-typedefs -DLINUX -Icontroller/src -Ibuild/include -Icontroller/lib -I/usr/include controller/src/zookeeper/zookeeper_client.cc In file included from controller/src/zookeeper/zookeeper_client_impl.h:8:0, from controller/src/zookeeper/zookeeper_client.cc:10: controller/src/zookeeper/zookeeper.h:32:19: fatal error: proto.h: No such file or directory

include "proto.h"

^ compilation terminated. scons: *\ [build/debug/zookeeper/zookeeper_client.o] Error 1 scons: building terminated because of errors.

Is there some packages to be installed in my building host? I could build R2.2 successfully. Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHubhttps://github.com/Juniper/contrail-installer/issues/113#issuecomment-213334977

HehuaTang commented 8 years ago

Hi Megh,

Thanks. I got it now.

Andy Wang

At 2016-04-23 03:04:09, "meghb" notifications@github.com wrote: The cassandra packages can be downloaded from:

https://downloads.datastax.com/cpp-driver/ubuntu/14.04/v2.2.0/

Thanks

Megh

On Apr 22, 2016, at 7:42 AM, Megh Bhatt meghb@juniper.net<mailto:meghb@juniper.net> wrote:

You will need to install

cassandra-cpp-driver-dev libzookeeper-mt-dev libzookeeper-mt2 cassandra-cpp-driver

Thanks

Megh

On Apr 22, 2016, at 1:52 AM, HehuaTang notifications@github.com<mailto:notifications@github.com> wrote:

Hi ,I also hit this issue today when I build the R3.0. I solved it by copy cassandra.h to my /usr/include. I also hit the issue, scons reported that no file zookeeper.h, I also copy zookeeper.h to zookeeper directory. But now it still reported error link following: ranlib build/debug/analytics/ruleparser/libruleparser.a gcc -o build/third_party/hiredis/src/net.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/net.c gcc -o build/third_party/hiredis/src/hiredis.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/hiredis.c gcc -o build/third_party/hiredis/src/sds.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/sds.c gcc -o build/third_party/hiredis/src/async.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/async.c gcc -o build/third_party/hiredis/src/dict.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/src/dict.c g++ -o build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.cpp g++ -o build/third_party/hiredis/base64.o -c -g -O0 -DDEBUG -g -Ithird_party -Ithird_party/hiredis-0.11.0 -Ithird_party/hiredis-0.11.0/adapters -Ibuild/include -Ithird_party/tbb40_20111130oss/include build/third_party/hiredis/base64.cpp ar rc build/third_party/hiredis/libhiredis.a build/third_party/hiredis/src/net.o build/third_party/hiredis/src/hiredis.o build/third_party/hiredis/src/sds.o build/third_party/hiredis/src/async.o build/third_party/hiredis/src/dict.o build/third_party/hiredis/hiredis-boostasio-adapter/boostasio.o build/third_party/hiredis/base64.o ranlib build/third_party/hiredis/libhiredis.a Install file: "build/third_party/hiredis/libhiredis.a" as "build/lib/libhiredis.a" g++ -o build/debug/zookeeper/zookeeper_client.o -c -g -O0 -DDEBUG -Wall -Werror -Wsign-compare -Wno-unused-local-typedefs -DLINUX -Icontroller/src -Ibuild/include -Icontroller/lib -I/usr/include controller/src/zookeeper/zookeeper_client.cc In file included from controller/src/zookeeper/zookeeper_client_impl.h:8:0, from controller/src/zookeeper/zookeeper_client.cc:10: controller/src/zookeeper/zookeeper.h:32:19: fatal error: proto.h: No such file or directory

include "proto.h"

^ compilation terminated. scons: *\ [build/debug/zookeeper/zookeeper_client.o] Error 1 scons: building terminated because of errors.

Is there some packages to be installed in my building host? I could build R2.2 successfully. Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHubhttps://github.com/Juniper/contrail-installer/issues/113#issuecomment-213334977

— You are receiving this because you commented. Reply to this email directly or view it on GitHub

jack6liu commented 8 years ago

Hello guys Where can I download libzookeeper and libzookeeper-devel for CentOS7? I couldn't find any rpm exists like cassandra-cpp-driver..

weiyaohui commented 8 years ago

hi jack6liu have you got the rpms like cassandra-cpp-driver... or not, i have the same compile problem under centos7 thanks

jack6liu commented 8 years ago

no, I'm not a developer, I tried to build rpms but failed because of connecting to google site.

Chenglong Liu(Jack)On weiyaohui notifications@github.com, Jul 20, 2016 6:50 PM wrote:hi jack6liu have you got the rpms like cassandra-cpp-driver... or not, i have the same compile problem under centos7 thanks

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

weiyaohui commented 8 years ago

thank you jackliu for response, i faced the same problem as you, you konw, for connectiong the goole site.. but i got that rpms from other site that i can access. thanks