Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Error #1

Open
aishahasmoh opened this issue Oct 9, 2018 · 0 comments
Open

Compilation Error #1

aishahasmoh opened this issue Oct 9, 2018 · 0 comments

Comments

@aishahasmoh
Copy link

I am trying to run the ./runTransE.sh command on my Ubuntu machine but I am getting the following Error:

[ 84%] Building CXX object CMakeFiles/runTHPipeline.dir/src/Boosting/runTHPipeline.cpp.o
In file included from /home/amohamed/Arabic-Knowledge-Base/b4l/include/tf/alg/THPipeline.h:5:0,
                 from /home/amohamed/Arabic-Knowledge-Base/b4l/src/Boosting/runTHPipeline.cpp:1:
/home/amohamed/Arabic-Knowledge-Base/b4l/include/tf/alg/TransE.h: In lambda function:
/home/amohamed/Arabic-Knowledge-Base/b4l/include/tf/alg/TransE.h:103:10: error: ‘virtual void TransE::update(Sample&, value_type)’ is protected
     void update(Sample &sample, const value_type weight = 1.0) {
          ^
In file included from /home/amohamed/Arabic-Knowledge-Base/b4l/src/Boosting/runTHPipeline.cpp:1:0:
/home/amohamed/Arabic-Knowledge-Base/b4l/include/tf/alg/THPipeline.h:304:46: error: within this context
                         TransE::update(sample);
                                              ^
make[2]: *** [CMakeFiles/runTHPipeline.dir/src/Boosting/runTHPipeline.cpp.o] Error 1
make[1]: *** [CMakeFiles/runTHPipeline.dir/all] Error 2
make: *** [all] Error 2
./runTransE.sh: line 28: ./runTransE: No such file or directory

The full output when I run the command is:

-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type: NativeRelease
-- Found mkl: /opt/intel/mkl/lib/intel64/libmkl_rt.so  
-- MKL found /opt/intel/mkl/include
-- Found TBB: /usr/include (found version "4.2")  
-- TBB found: /usr/include
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   program_options
--   system
--   filesystem
-- Boost found
-- Looking for dgemm_
-- Looking for dgemm_ - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- A library with BLAS API found.
-- BLAS found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/amohamed/Arabic-Knowledge-Base/b4l/experiments/build-te
Scanning dependencies of target tf
[  7%] Building CXX object CMakeFiles/tf.dir/include/tf/liblinear/linear.cpp.o
[ 15%] Building CXX object CMakeFiles/tf.dir/include/tf/liblinear/tron.cpp.o
Linking CXX shared library libtf.so
[ 15%] Built target tf
Scanning dependencies of target outputScore
[ 23%] Building CXX object CMakeFiles/outputScore.dir/src/outputScore.cpp.o
Linking CXX executable outputScore
[ 23%] Built target outputScore
Scanning dependencies of target runHOLE
[ 30%] Building CXX object CMakeFiles/runHOLE.dir/src/runHOLE.cpp.o
Linking CXX executable runHOLE
[ 30%] Built target runHOLE
Scanning dependencies of target runHTLREnsemble
[ 38%] Building CXX object CMakeFiles/runHTLREnsemble.dir/src/LREnsemble/runHTLREnsemble.cpp.o
Linking CXX executable runHTLREnsemble
[ 38%] Built target runHTLREnsemble
Scanning dependencies of target runRESCAL
[ 46%] Building CXX object CMakeFiles/runRESCAL.dir/src/runRESCAL.cpp.o
Linking CXX executable runRESCAL
[ 46%] Built target runRESCAL
Scanning dependencies of target runRESCAL_RANK
[ 53%] Building CXX object CMakeFiles/runRESCAL_RANK.dir/src/runRESCAL_RANK.cpp.o
Linking CXX executable runRESCAL_RANK
[ 53%] Built target runRESCAL_RANK
Scanning dependencies of target runRHLREnsemble
[ 61%] Building CXX object CMakeFiles/runRHLREnsemble.dir/src/LREnsemble/runRHLREnsemble.cpp.o
Linking CXX executable runRHLREnsemble
[ 61%] Built target runRHLREnsemble
Scanning dependencies of target runRHTLREnsemble
[ 69%] Building CXX object CMakeFiles/runRHTLREnsemble.dir/src/LREnsemble/runRHTLREnsemble.cpp.o
Linking CXX executable runRHTLREnsemble
[ 69%] Built target runRHTLREnsemble
Scanning dependencies of target runRTLREnsemble
[ 76%] Building CXX object CMakeFiles/runRTLREnsemble.dir/src/LREnsemble/runRTLREnsemble.cpp.o
Linking CXX executable runRTLREnsemble
[ 76%] Built target runRTLREnsemble
Scanning dependencies of target runTHPipeline
[ 84%] Building CXX object CMakeFiles/runTHPipeline.dir/src/Boosting/runTHPipeline.cpp.o
In file included from /home/amohamed/Arabic-Knowledge-Base/b4l/include/tf/alg/THPipeline.h:5:0,
                 from /home/amohamed/Arabic-Knowledge-Base/b4l/src/Boosting/runTHPipeline.cpp:1:
/home/amohamed/Arabic-Knowledge-Base/b4l/include/tf/alg/TransE.h: In lambda function:
/home/amohamed/Arabic-Knowledge-Base/b4l/include/tf/alg/TransE.h:103:10: error: ‘virtual void TransE::update(Sample&, value_type)’ is protected
     void update(Sample &sample, const value_type weight = 1.0) {
          ^
In file included from /home/amohamed/Arabic-Knowledge-Base/b4l/src/Boosting/runTHPipeline.cpp:1:0:
/home/amohamed/Arabic-Knowledge-Base/b4l/include/tf/alg/THPipeline.h:304:46: error: within this context
                         TransE::update(sample);
                                              ^
make[2]: *** [CMakeFiles/runTHPipeline.dir/src/Boosting/runTHPipeline.cpp.o] Error 1
make[1]: *** [CMakeFiles/runTHPipeline.dir/all] Error 2
make: *** [all] Error 2
./runTransE.sh: line 28: ./runTransE: No such file or directory

can you please help me fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant