S4 icon indicating copy to clipboard operation
S4 copied to clipboard

unable to compile in after git clone the source code

Open Neoarroway opened this issue 6 years ago • 0 comments

I've git clone the source code into my ubuntu virtual machine, and use sudo make, sudo make install to try to do compilation. after sudo make, there are a lot of warnings, after sudo make install, it just returns that : No rule to make target install. There must be something wrong with sudo make.

sudo make

mkdir -p build mkdir -p build/S4k mkdir -p build/modules g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/S4.cpp -o build/S4k/S4.o S4/S4.cpp: In function ‘S4_Simulation* S4_Simulation_New(const S4_real*, unsigned int, int*)’: S4/S4.cpp:176:6: warning: unused variable ‘ret’ [-Wunused-variable] int ret = S4_Lattice_Reciprocate(S->Lr, S->Lk); ^ S4/S4.cpp: In function ‘int Simulation_ComputeLayerSolution(S4_Simulation*, S4_Layer*, LayerModes**, std::complex)’: S4/S4.cpp:1579:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(size_t i = 0; i < S->n_layers; ++i){ ^ S4/S4.cpp: In function ‘int S4_Simulation_GetWaves(S4_Simulation*, S4_LayerID, S4_real*)’: S4/S4.cpp:2231:31: warning: unused variable ‘H’ [-Wunused-variable] const std::complex H[2][3] = { ^ S4/S4.cpp:2196:12: warning: unused variable ‘n4’ [-Wunused-variable] const int n4 = 2n2; ^ S4/S4.cpp: In function ‘int Simulation_GetFieldPlane(S4_Simulation, int*, double, double*, double*)’: S4/S4.cpp:2984:24: warning: unused variable ‘work’ [-Wunused-variable] std::complex work = ab + n4; ^ S4/S4.cpp: In function ‘int S4_Simulation_GetFieldPlane(S4_Simulation, const int*, const S4_real*, S4_real*, S4_real*)’: S4/S4.cpp:3697:24: warning: unused variable ‘work’ [-Wunused-variable] std::complex work = ab + n4; ^ S4/S4.cpp: In function ‘int ( S4_Simulation_SetMessageHandler(S4_Simulation*, S4_message_handler, void*))(void*, const char*, int, const char*)’: S4/S4.cpp:355:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/rcwa.cpp -o build/S4k/rcwa.o S4/rcwa.cpp: In function ‘int SolveAll(size_t, size_t, const double*, const double*, std::complex, const double*, const std::complex, const std::complex, int*, const std::complex, const std::complex**, std::complex, std::complex, size_t*, size_t)’: S4/rcwa.cpp:1573:18: warning: unused variable ‘Qprev’ [-Wunused-variable] doublecomplex Qprev = Pprev + n22; ^ S4/rcwa.cpp:1576:18: warning: unused variable ‘Sab’ [-Wunused-variable] doublecomplex Sab = Sbb+n2; ^ S4/rcwa.cpp:1579:18: warning: unused variable ‘Saa’ [-Wunused-variable] doublecomplex Saa = Sba+n2; ^ S4/rcwa.cpp:1635:18: warning: unused variable ‘Qprev’ [-Wunused-variable] doublecomplex Qprev = Pprev + n22; ^ S4/rcwa.cpp:1641:18: warning: unused variable ‘Saa’ [-Wunused-variable] doublecomplex Saa = Sba+n2; ^ S4/rcwa.cpp: In function ‘void GetFieldOnGrid(size_t, int, const double, const double, std::complex, const std::complex, const std::complex, const std::complex, const std::complex, int, const std::complex, const size_t, const double*, std::complex, std::complex)’: S4/rcwa.cpp:2096:6: warning: unused variable ‘inxy’ [-Wunused-variable] int inxy[2] = { (int)nxy[0], (int)nxy[1] }; ^ S4/rcwa.cpp: At global scope: S4/rcwa.cpp:220:13: warning: ‘void PrintMatrix(const char*, size_t, size_t, const std::complex, size_t)’ defined but not used [-Wunused-function] static void PrintMatrix(const char name, size_t m, size_t n, const std::complex a, size_t lda){ ^ S4/rcwa.cpp:295:13: warning: ‘void MakeKPMatrix_real(double, size_t, const double, const double, const std::complex, double*, double*, size_t)’ defined but not used [-Wunused-function] static void MakeKPMatrix_real( ^ g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/fmm/fmm_common.cpp -o build/S4k/fmm_common.o g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/fmm/fmm_FFT.cpp -o build/S4k/fmm_FFT.o g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/fmm/fmm_kottke.cpp -o build/S4k/fmm_kottke.o g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/fmm/fmm_closed.cpp -o build/S4k/fmm_closed.o g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/fmm/fmm_PolBasisNV.cpp -o build/S4k/fmm_PolBasisNV.o g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/fmm/fmm_PolBasisVL.cpp -o build/S4k/fmm_PolBasisVL.o g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/fmm/fmm_PolBasisJones.cpp -o build/S4k/fmm_PolBasisJones.o g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/fmm/fmm_experimental.cpp -o build/S4k/fmm_experimental.o g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/fmm/fft_iface.cpp -o build/S4k/fft_iface.o gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/pattern/pattern.c -o build/S4k/pattern.o S4/pattern/pattern.c: In function ‘pattern_generate_flow_field_rect’: S4/pattern/pattern.c:1553:6: warning: variable ‘found_multiple_xsects’ set but not used [-Wunused-but-set-variable] int found_multiple_xsects = 0; ^ gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/pattern/intersection.c -o build/S4k/intersection.o gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/pattern/predicates.c -o build/S4k/predicates.o gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/numalloc.c -o build/S4k/numalloc.o gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/gsel.c -o build/S4k/gsel.o gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/sort.c -o build/S4k/sort.o gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/kiss_fft/kiss_fft.c -o build/S4k/kiss_fft.o gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/kiss_fft/tools/kiss_fftnd.c -o build/S4k/kiss_fftnd.o gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/SpectrumSampler.c -o build/S4k/SpectrumSampler.o gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/cubature.c -o build/S4k/cubature.o S4/cubature.c: In function ‘adapt_integrate_v’: S4/cubature.c:903:11: warning: ‘R.errmax’ may be used uninitialized in this function [-Wmaybe-uninitialized] R[0] = make_region(h, fdim); ^ S4/cubature.c:195:13: note: ‘R.errmax’ was declared here region R; ^ S4/cubature.c: In function ‘adapt_integrate’: S4/cubature.c:903:11: warning: ‘R.errmax’ may be used uninitialized in this function [-Wmaybe-uninitialized] R[0] = make_region(h, fdim); ^ S4/cubature.c:195:13: note: ‘R.errmax’ was declared here region R; ^ gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/Interpolator.c -o build/S4k/Interpolator.o gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/convert.c -o build/S4k/convert.o g++ -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft S4/RNP/Eigensystems.cpp -o build/S4k/Eigensystems.o S4/RNP/Eigensystems.cpp: In function ‘int RNP::Eigensystem_jacobi(size_t, std::complex, size_t, std::complex, std::complex, size_t, std::complex, size_t, std::complex, double)’: S4/RNP/Eigensystems.cpp:214:9: warning: variable ‘normL_prev’ set but not used [-Wunused-but-set-variable] double normL_prev; ^ S4/RNP/Eigensystems.cpp: In function ‘size_t zlahqr_(bool, bool, size_t, size_t, size_t, std::complex, int, std::complex, size_t, size_t, std::complex, size_t)’: S4/RNP/Eigensystems.cpp:1211:27: warning: variable ‘h22’ set but not used [-Wunused-but-set-variable] std::complex h22 = h[l+(( l+1 )-1)ldh]; ^ S4/RNP/Eigensystems.cpp: In function ‘void zlaqr5(bool, bool, int, int, int, int, int, std::complex, std::complex, int, int, int, std::complex, int, std::complex, int, std::complex, int, int, std::complex, int, int, std::complex, int)’: S4/RNP/Eigensystems.cpp:3156:9: warning: variable ‘safmax’ set but not used [-Wunused-but-set-variable] double safmax; ^ In file included from S4/RNP/Eigensystems.cpp:304:0: S4/RNP/TLASupport.h: In instantiation of ‘RNP::TLASupport::CheapMatrixNorm::CheapMatrixNorm(size_t, size_t, const T, size_t, typename RNP::TBLAS::_RealOrComplexChooser<T>::real_type*, typename RNP::TBLAS::RealOrComplexChooser<T>::real_type*) [with T = std::complex; char norm = 'M'; size_t = unsigned int; typename RNP::TBLAS::RealOrComplexChooser<T>::real_type = double]’: S4/RNP/Eigensystems.cpp:4542:59: required from here S4/RNP/TLASupport.h:275:13: warning: variable ‘jstart’ set but not used [-Wunused-but-set-variable] size_t jstart = 0; if(i > 0){ jstart = i-1; } ^ S4/RNP/TLASupport.h: In instantiation of ‘RNP::TLASupport::ApplyElementaryReflectorBlocked<side, trans, direct, storev>::ApplyElementaryReflectorBlocked(size_t, size_t, size_t, const T*, size_t, const T*, size_t, T*, size_t, T*, size_t) [with T = std::complex; char side = 'L'; char trans = 'C'; char direct = 'F'; char storev = 'C'; size_t = unsigned int]’: S4/RNP/TLASupport.h:1949:4: required from ‘void RNP::TLASupport::HessenbergReduction(size_t, size_t, size_t, T*, size_t, T*, T*, size_t) [with T = std::complex; size_t = unsigned int]’ S4/RNP/Eigensystems.cpp:1730:87: required from here S4/RNP/TLASupport.h:673:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] lastv = 1+LastNonzeroColumn(m, k, &v[v_offset], ldv); if(k > lastv){ lastv = k; } ^ S4/RNP/TLASupport.h:678:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:685:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:707:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:715:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] lastv = 1+LastNonzeroColumn(n, k, &v[v_offset], ldv); if(k > lastv){ lastv = k; } ^ S4/RNP/TLASupport.h:720:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:726:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:735:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:744:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:758:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] lastv = 1+LastNonzeroColumn(m, k, &v[v_offset], ldv); if(k > lastv){ lastv = k; } ^ S4/RNP/TLASupport.h:763:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:771:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:784:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:793:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:801:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] lastv = 1+LastNonzeroColumn(n, k, &v[v_offset], ldv); if(k > lastv){ lastv = k; } ^ S4/RNP/TLASupport.h:806:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:813:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:823:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:832:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:849:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] lastv = 1+LastNonzeroColumn(k, m, &v[v_offset], ldv); if(k > lastv){ lastv = k; } ^ S4/RNP/TLASupport.h:854:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:861:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:875:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:884:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:892:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] lastv = 1+LastNonzeroColumn(k, n, &v[v_offset], ldv); if(k > lastv){ lastv = k; } ^ S4/RNP/TLASupport.h:897:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:903:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:912:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:921:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:934:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] lastv = 1+LastNonzeroColumn(k, m, &v[v_offset], ldv); if(k > lastv){ lastv = k; } ^ S4/RNP/TLASupport.h:939:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:946:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:959:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:969:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:977:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] lastv = 1+LastNonzeroColumn(k, n, &v[v_offset], ldv); if(k > lastv){ lastv = k; } ^ S4/RNP/TLASupport.h:982:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/TLASupport.h:988:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:997:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(lastv > k){ ^ S4/RNP/TLASupport.h:1006:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; j <= k; ++j){ ^ S4/RNP/Eigensystems.cpp: In function ‘int iparmq(int, size_t, size_t, size_t)’: S4/RNP/Eigensystems.cpp:899:3: warning: ‘ns’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (ns >= 14) { ^ S4/RNP/Eigensystems.cpp: In function ‘size_t zlahqr(bool, bool, size_t, size_t, size_t, std::complex, int, std::complex, size_t, size_t, std::complex, size_t)’: S4/RNP/Eigensystems.cpp:1302:35: warning: ‘i2’ may be used uninitialized in this function [-Wmaybe-uninitialized] if( i2 > i ) RNP::TBLAS::Scale( i2-i, std::conj( temp ), &h[(i-1)+(( i+1 )-1)ldh], ldh ); ^ S4/RNP/Eigensystems.cpp: In function ‘int RNP::Eigensystem(size_t, std::complex, size_t, std::complex, std::complex, size_t, std::complex, size_t, std::complex, double, size_t)’: S4/RNP/Eigensystems.cpp:4618:2: warning: ‘info’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(info == 0){ ^ ar crvs build/libS4.a build/S4k/S4.o build/S4k/rcwa.o build/S4k/fmm_common.o build/S4k/fmm_FFT.o build/S4k/fmm_kottke.o build/S4k/fmm_closed.o build/S4k/fmm_PolBasisNV.o build/S4k/fmm_PolBasisVL.o build/S4k/fmm_PolBasisJones.o build/S4k/fmm_experimental.o build/S4k/fft_iface.o build/S4k/pattern.o build/S4k/intersection.o build/S4k/predicates.o build/S4k/numalloc.o build/S4k/gsel.o build/S4k/sort.o build/S4k/kiss_fft.o build/S4k/kiss_fftnd.o build/S4k/SpectrumSampler.o build/S4k/cubature.o build/S4k/Interpolator.o build/S4k/convert.o build/S4k/Eigensystems.o a - build/S4k/S4.o a - build/S4k/rcwa.o a - build/S4k/fmm_common.o a - build/S4k/fmm_FFT.o a - build/S4k/fmm_kottke.o a - build/S4k/fmm_closed.o a - build/S4k/fmm_PolBasisNV.o a - build/S4k/fmm_PolBasisVL.o a - build/S4k/fmm_PolBasisJones.o a - build/S4k/fmm_experimental.o a - build/S4k/fft_iface.o a - build/S4k/pattern.o a - build/S4k/intersection.o a - build/S4k/predicates.o a - build/S4k/numalloc.o a - build/S4k/gsel.o a - build/S4k/sort.o a - build/S4k/kiss_fft.o a - build/S4k/kiss_fftnd.o a - build/S4k/SpectrumSampler.o a - build/S4k/cubature.o a - build/S4k/Interpolator.o a - build/S4k/convert.o a - build/S4k/Eigensystems.o gcc -c -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft -I/usr/include/lua5.2 S4/main_lua.c -o build/S4k/main_lua.o S4/main_lua.c: In function ‘S4L_Simulation_GetAmplitudes’: S4/main_lua.c:2189:10: warning: comparison between pointer and integer if(NULL == layer){ ^ S4/main_lua.c:2207:3: warning: passing argument 2 of ‘Simulation_GetAmplitudes’ makes pointer from integer without a cast [-Wint-conversion] layer, ^ In file included from S4/S4.h:294:0, from S4/main_lua.c:34: S4/S4_internal.h:287:5: note: expected ‘S4_Layer * {aka struct *}’ but argument is of type ‘S4_LayerID {aka int}’ int Simulation_GetAmplitudes(S4_Simulation *S, S4_Layer *layer, double offset, double *forw, double *back); ^ S4/main_lua.c: At top level: S4/main_lua.c:84:13: warning: ‘thread_key’ defined but not used [-Wunused-variable] static char thread_key = 't'; ^ S4/main_lua.c:85:13: warning: ‘thread_count_key’ defined but not used [-Wunused-variable] static char thread_count_key = 'c'; ^ S4/main_lua.c:409:13: warning: ‘stackDump’ defined but not used [-Wunused-function] static void stackDump (lua_State *L) { ^ g++ -O3 -Wall -march=native -fcx-limited-range -fno-exceptions -fPIC -IS4 -IS4/RNP -IS4/kiss_fft build/S4k/main_lua.o -o build/S4 -Lbuild -lS4 -llapack -lblas -llua5.2 gcc -I/usr/include/lua5.2 -O3 -fPIC -shared -fpic S4/main_lua.c -o build/RCWA.so -Lbuild -lS4 -llapack -lblas -lstdc++ S4/main_lua.c: In function ‘S4L_Simulation_GetAmplitudes’: S4/main_lua.c:2189:10: warning: comparison between pointer and integer if(NULL == layer){ ^ S4/main_lua.c:2207:3: warning: passing argument 2 of ‘Simulation_GetAmplitudes’ makes pointer from integer without a cast [-Wint-conversion] layer, ^ In file included from S4/S4.h:294:0, from S4/main_lua.c:34: S4/S4_internal.h:287:5: note: expected ‘S4_Layer * {aka struct *}’ but argument is of type ‘S4_LayerID {aka int}’ int Simulation_GetAmplitudes(S4_Simulation *S, S4_Layer *layer, double offset, double *forw, double *back); ^ gcc -c -fpic -Wall -I. modules/function_sampler_1d.c -o build/modules/function_sampler_1d.o gcc -fPIC -shared -fpic -Wall -I/usr/include/lua5.2 -o build/FunctionSampler1D.so build/modules/function_sampler_1d.o modules/lua_function_sampler_1d.c gcc -c -fpic -Wall -I. modules/function_sampler_2d.c -o build/modules/function_sampler_2d.o modules/function_sampler_2d.c: In function ‘update_edge’: modules/function_sampler_2d.c:571:15: warning: unused variable ‘nrm2’ [-Wunused-variable] const double nrm2 = ab2 / fabs(geom_cross2d(cd, ab)); ^ gcc -c -O2 -fpic -Wall -I. modules/predicates.c -o build/modules/mod_predicates.o gcc -fPIC -shared -fpic -Wall -I/usr/include/lua5.2 -o build/FunctionSampler2D.so build/modules/function_sampler_2d.o build/modules/mod_predicates.o modules/lua_function_sampler_2d.c


Is there something I should do before sudo make, like changes in one of the make files?

Neoarroway avatar Jul 30 '18 08:07 Neoarroway