Building on spring (from freebsd) 2024-12-17 05:40.25 ---> using "77d5fe31836124b4684d554707425c4fde23f9ef3df0a804431a47419573778d" from cache /: (user (uid 1000) (gid 1000)) /: (env OPAMPRECISETRACKING 1) /: (env OPAMUTF8 never) /: (env OPAMEXTERNALSOLVER builtin-0install) /: (env OPAMCRITERIA +removed) /: (env CI true) /: (env OPAM_HEALTH_CHECK_CI true) /: (run (shell "sudo ln -f /usr/local/bin/opam-dev /usr/local/bin/opam")) 2024-12-17 05:40.25 ---> using "7afea9128a2830beedf345f0b46af5484579ebada7710165f445c6c5b18563a9" from cache /: (run (network host) (shell "rm -rf ~/opam-repository && git clone -q 'https://github.com/ocaml/opam-repository' ~/opam-repository && git -C ~/opam-repository checkout -q 4c55f2acaf27f0a15996d4dc0dd13e0b2e5f3cc1")) 2024-12-17 05:40.26 ---> using "d701441ac9189e76e6aabd2fd8f272b1b496c95092ee71a867994fa042b099bd" from cache /: (run (shell "rm -rf ~/.opam && opam init -ya --bare ~/opam-repository")) No configuration file found, using built-in defaults. Checking for available remotes: rsync and local, git. - you won't be able to use mercurial repositories unless you install the hg command on your system. - you won't be able to use darcs repositories unless you install the darcs command on your system. <><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><> [default] Initialised User configuration: ~/.profile is already up-to-date. [NOTE] Make sure that ~/.profile is well sourced in your ~/.bashrc. 2024-12-17 05:40.26 ---> using "b9fb679fd35ef44bcfc79e6d6bda1d7df4c7a62f3e55ae0f5e83fdf081890ebd" from cache /: (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "opam switch create --repositories=default '5.2.0' 'ocaml-base-compiler.5.2.0'")) <><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><> Switch invariant: ["ocaml-base-compiler" {= "5.2.0"}] <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> installed base-bigarray.base -> installed base-threads.base -> installed base-unix.base -> installed host-arch-x86_64.1 -> installed host-system-other.1 -> installed ocaml-options-vanilla.1 -> retrieved ocaml-config.3 (2 extra sources) -> retrieved ocaml-config.3 (2 extra sources) -> retrieved ocaml-base-compiler.5.2.0 (https://github.com/ocaml/ocaml/archive/5.2.0.tar.gz) -> installed ocaml-base-compiler.5.2.0 -> installed ocaml-config.3 -> installed ocaml.5.2.0 -> installed base-domains.base -> installed base-nnp.base Done. # To update the current shell environment, run: eval $(opam env --switch=5.2.0) 2024-12-17 05:40.27 ---> using "43207f3fada0dee8b2d293185d894075662416a518a256b1895ed46a16b8ba5e" from cache /: (run (network host) (shell "opam update --depexts")) [WARNING] Unknown update command for bsd, skipping system update 2024-12-17 05:40.28 ---> using "f8d4ba41e8ca3e03295d6c357ddb76fd7f7647e9b633e493960a24aff0c86428" from cache /: (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "\ \nopam remove -y \"libsvm_tools.3.35\"\ \nopam install -vy \"libsvm_tools.3.35\"\ \nres=$?\ \nif [ $res = 31 ]; then\ \n if opam show -f x-ci-accept-failures: \"libsvm_tools.3.35\" | grep -q '\"freebsd\"'; then\ \n echo \"This package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\"\ \n exit 69\ \n fi\ \nfi\ \n\ \n\ \nexit $res\ \n")) [NOTE] libsvm_tools.3.35 is not installed. Nothing to do. The following actions will be performed: === install 3 packages - install conf-g++ 1.0 [required by libsvm_tools] - install conf-gcc 1.0 [required by libsvm_tools] - install libsvm_tools 3.35 The following system packages will first need to be installed: gcc <><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><> opam believes some required external dependencies are missing. opam can: > 1. Run pkg to install them (may need root/sudo access) 2. Display the recommended pkg command and wait while you run it manually (e.g. in another terminal) 3. Continue anyway, and, upon success, permanently register that this external dependency is present, but not detectable 4. Abort the installation [1/2/3/4] 1 + /usr/local/bin/sudo "pkg" "install" "-y" "gcc" - Updating FreeBSD repository catalogue... - [spring] Fetching data.pkg: .. - ........ done - Processing entries: . - . - . - .. - . - . - .. - . done - FreeBSD repository update completed. 35568 packages processed. - All repositories are up to date. - The following 6 package(s) will be affected (of 0 checked): - - New packages to be INSTALLED: - binutils: 2.43.1,1 - gcc: 13_5 - gcc13: 13.3.0 - gmp: 6.3.0 - mpc: 1.3.1_1 - mpfr: 4.2.1,1 - - Number of packages to be installed: 6 - - The process will require 459 MiB more space. - 98 MiB to be downloaded. - [spring] [1/6] Fetching mpc-1.3.1_1.pkg: ....... done - [spring] [2/6] Fetching gcc-13_5.pkg: . done - [spring] [3/6] Fetching gcc13-13.3.0.pkg: - . - . - . - . - . - .. - . - .. done - [spring] [4/6] Fetching mpfr-4.2.1,1.pkg: .......... done - [spring] [5/6] Fetching gmp-6.3.0.pkg: ... - .. done - [spring] [6/6] Fetching binutils-2.43.1,1.pkg: - .. - .. - .. - ... - . done - Checking integrity... done (0 conflicting) - [spring] [1/6] Installing gmp-6.3.0... - [spring] [1/6] Extracting gmp-6.3.0: .......... done - [spring] [2/6] Installing mpfr-4.2.1,1... - [spring] [2/6] Extracting mpfr-4.2.1,1: .......... done - [spring] [3/6] Installing mpc-1.3.1_1... - [spring] [3/6] Extracting mpc-1.3.1_1: ......... done - [spring] [4/6] Installing binutils-2.43.1,1... - [spring] [4/6] Extracting binutils-2.43.1,1: ..... - ..... done - [spring] [5/6] Installing gcc13-13.3.0... - [spring] [5/6] Extracting gcc13-13.3.0: ......... - . done - [spring] [6/6] Installing gcc-13_5... - [spring] [6/6] Extracting gcc-13_5: ... done - ===== - Message from gcc13-13.3.0: - - -- - To ensure binaries built with this toolchain find appropriate versions - of the necessary run-time libraries, you may want to link using - - -Wl,-rpath=/usr/local/lib/gcc13 - - For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens - transparently. <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> Processing 3/9: [libsvm_tools.3.35: extract] Processing 4/9: [libsvm_tools.3.35: extract] [conf-g++: g++] Processing 5/9: [libsvm_tools.3.35: extract] [conf-g++: g++] [conf-gcc: gcc] + /usr/local/bin/g++ "--version" (CWD=/home/opam/.opam/5.2.0/.opam-switch/build/conf-g++.1.0) - g++ (FreeBSD Ports Collection) 13.3.0 - Copyright (C) 2023 Free Software Foundation, Inc. - This is free software; see the source for copying conditions. There is NO - warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -> compiled conf-g++.1.0 Processing 5/9: [libsvm_tools.3.35: extract] [conf-gcc: gcc] -> installed conf-g++.1.0 Processing 6/9: [libsvm_tools.3.35: extract] [conf-gcc: gcc] + /usr/local/bin/gcc "--version" (CWD=/home/opam/.opam/5.2.0/.opam-switch/build/conf-gcc.1.0) - gcc (FreeBSD Ports Collection) 13.3.0 - Copyright (C) 2023 Free Software Foundation, Inc. - This is free software; see the source for copying conditions. There is NO - warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -> compiled conf-gcc.1.0 Processing 6/9: [libsvm_tools.3.35: extract] -> installed conf-gcc.1.0 Processing 7/9: [libsvm_tools.3.35: extract] -> retrieved libsvm_tools.3.35 (cached) Processing 8/9: [libsvm_tools: gmake] + /usr/local/bin/gmake (CWD=/home/opam/.opam/5.2.0/.opam-switch/build/libsvm_tools.3.35) - c++ -Wall -Wconversion -O3 -fPIC -c svm.cpp - svm.cpp:100:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 100 | head = (head_t *)calloc(l,sizeof(head_t)); // initialized to 0 - | ~~~~~~ ^ - svm.cpp:102:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 102 | size_t header_size = l * sizeof(head_t) / sizeof(Qfloat); - | ^ ~ - svm.cpp:144:17: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 144 | size += old->len; - | ~~ ~~~~~^~~ - svm.cpp:150:54: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 150 | h->data = (Qfloat *)realloc(h->data,sizeof(Qfloat)*len); - | ~^~~ - svm.cpp:151:11: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 151 | size -= more; // previous while loop guarantees size >= more and subtraction of size_t variable will not underflow - | ~~ ^~~~ - svm.cpp:183:16: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 183 | size += h->len; - | ~~ ~~~^~~ - svm.cpp:284:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 284 | x_square = new double[l]; - | ~~~ ^ - svm.cpp:525:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 525 | alpha_status = new char[l]; - | ~~~ ^ - svm.cpp:532:24: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 532 | active_set = new int[l]; - | ~~~ ^ - svm.cpp:540:18: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 540 | G = new double[l]; - | ~~~ ^ - svm.cpp:541:22: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 541 | G_bar = new double[l]; - | ~~~ ^ - svm.cpp:1278:24: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 1278 | QD = new double[prob.l]; - | ~~~ ~~~~~^ - svm.cpp:1330:24: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 1330 | QD = new double[prob.l]; - | ~~~ ~~~~~^ - svm.cpp:1377:20: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1377 | QD = new double[2*l]; - | ~~~ ~^~ - svm.cpp:1378:21: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1378 | sign = new schar[2*l]; - | ~~~ ~^~ - svm.cpp:1379:20: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1379 | index = new int[2*l]; - | ~~~ ~^~ - svm.cpp:1389:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1389 | buffer[0] = new Qfloat[2*l]; - | ~~~ ~^~ - svm.cpp:1390:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1390 | buffer[1] = new Qfloat[2*l]; - | ~~~ ~^~ - svm.cpp:1455:34: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1455 | double *minus_ones = new double[l]; - | ~~~ ^ - svm.cpp:1456:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1456 | schar *y = new schar[l]; - | ~~~ ^ - svm.cpp:1493:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1493 | schar *y = new schar[l]; - | ~~~ ^ - svm.cpp:1516:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1516 | double *zeros = new double[l]; - | ~~~ ^ - svm.cpp:1545:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1545 | double *zeros = new double[l]; - | ~~~ ^ - svm.cpp:1546:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1546 | schar *ones = new schar[l]; - | ~~~ ^ - svm.cpp:1577:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1577 | double *alpha2 = new double[2*l]; - | ~~~ ~^~ - svm.cpp:1578:36: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1578 | double *linear_term = new double[2*l]; - | ~~~ ~^~ - svm.cpp:1579:24: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1579 | schar *y = new schar[2*l]; - | ~~~ ~^~ - svm.cpp:1616:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1616 | double *alpha2 = new double[2*l]; - | ~~~ ~^~ - svm.cpp:1617:36: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1617 | double *linear_term = new double[2*l]; - | ~~~ ~^~ - svm.cpp:1618:24: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1618 | schar *y = new schar[2*l]; - | ~~~ ~^~ - svm.cpp:1661:38: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 1661 | double *alpha = Malloc(double,prob->l); - | ~~~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:1732:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1732 | double *t=Malloc(double,l); - | ~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:1843:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1843 | double **Q=Malloc(double *,k); - | ~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:1844:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1844 | double *Qp=Malloc(double,k); - | ~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:1850:22: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1850 | Q[t]=Malloc(double,k); - | ~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:1909:31: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 1909 | int *perm = Malloc(int,prob->l); - | ~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:1910:43: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 1910 | double *dec_values = Malloc(double,prob->l); - | ~~~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:1927:47: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1927 | subprob.x = Malloc(struct svm_node*,subprob.l); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:1928:37: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1928 | subprob.y = Malloc(double,subprob.l); - | ~~~~~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2023:43: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 2023 | double *dec_values = Malloc(double,prob->l); - | ~~~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2024:45: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 2024 | double *pred_results = Malloc(double,prob->l); - | ~~~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2030:25: warning: implicit conversion changes signedness: 'const int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 2030 | qsort(dec_values,prob->l,sizeof(double),compare_double); - | ~~~~~ ~~~~~~^ - svm.cpp:2049:45: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2049 | double *tmp_marks = Malloc(double,nr_marks+1); - | ~~~~~~~~~~~~~~~~~~~~~~^~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2072:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 2072 | double *ymv = Malloc(double,prob->l); - | ~~~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2106:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2106 | int *label = Malloc(int,max_nr_class); - | ~~~~~~~~~~~^~~~~~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2107:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2107 | int *count = Malloc(int,max_nr_class); - | ~~~~~~~~~~~^~~~~~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2108:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2108 | int *data_label = Malloc(int,l); - | ~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2129:34: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2129 | label = (int *)realloc(label,max_nr_class*sizeof(int)); - | ^~~~~~~~~~~~~ - svm.cpp:2130:34: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2130 | count = (int *)realloc(count,max_nr_class*sizeof(int)); - | ^~~~~~~~~~~~~ - svm.cpp:2156:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2156 | int *start = Malloc(int,nr_class); - | ~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2206:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2206 | model->SV = Malloc(svm_node *,nSV); - | ~~~~~~~~~~~~~~~~~~^~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2207:37: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2207 | model->sv_coef[0] = Malloc(double,nSV); - | ~~~~~~~~~~~~~~^~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2208:34: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2208 | model->sv_indices = Malloc(int,nSV); - | ~~~~~~~~~~~^~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2229:47: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2229 | double *prob_density_marks = Malloc(double,nr_marks); - | ~~~~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2247:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2247 | int *perm = Malloc(int,l); - | ~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2254:36: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2254 | svm_node **x = Malloc(svm_node *,l); - | ~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2261:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2261 | double *weighted_C = Malloc(double, nr_class); - | ~~~~~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2278:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2278 | bool *nonzero = Malloc(bool,l); - | ~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2281:72: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2281 | decision_function *f = Malloc(decision_function,nr_class*(nr_class-1)/2); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2286:45: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2286 | probA=Malloc(double,nr_class*(nr_class-1)/2); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2287:45: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2287 | probB=Malloc(double,nr_class*(nr_class-1)/2); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2298:45: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2298 | sub_prob.x = Malloc(svm_node *,sub_prob.l); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2299:41: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2299 | sub_prob.y = Malloc(double,sub_prob.l); - | ~~~~~~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2331:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2331 | model->label = Malloc(int,nr_class); - | ~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2335:51: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2335 | model->rho = Malloc(double,nr_class*(nr_class-1)/2); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2341:54: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2341 | model->probA = Malloc(double,nr_class*(nr_class-1)/2); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2342:54: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2342 | model->probB = Malloc(double,nr_class*(nr_class-1)/2); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2357:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2357 | int *nz_count = Malloc(int,nr_class); - | ~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2358:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2358 | model->nSV = Malloc(int,nr_class); - | ~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2375:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2375 | model->SV = Malloc(svm_node *,total_sv); - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2376:34: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2376 | model->sv_indices = Malloc(int,total_sv); - | ~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2385:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2385 | int *nz_start = Malloc(int,nr_class); - | ~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2390:44: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2390 | model->sv_coef = Malloc(double *,nr_class-1); - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2392:38: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2392 | model->sv_coef[i] = Malloc(double,total_sv); - | ~~~~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2443:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2443 | int *perm = Malloc(int,l); - | ~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2450:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2450 | fold_start = Malloc(int,nr_fold+1); - | ~~~~~~~~~~~~~~~~~~^~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2462:32: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2462 | int *fold_count = Malloc(int,nr_fold); - | ~~~~~~~~~~~^~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2464:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2464 | int *index = Malloc(int,l); - | ~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2522:47: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2522 | subprob.x = Malloc(struct svm_node*,subprob.l); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2523:37: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2523 | subprob.y = Malloc(double,subprob.l); - | ~~~~~~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2542:41: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2542 | double *prob_estimates=Malloc(double,svm_get_nr_class(submodel)); - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2627:34: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2627 | double *kvalue = Malloc(double,l); - | ~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2634:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2634 | int *start = Malloc(int,nr_class); - | ~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2639:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2639 | int *vote = Malloc(int,nr_class); - | ~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2691:52: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2691 | dec_values = Malloc(double, nr_class*(nr_class-1)/2); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2705:60: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2705 | double *dec_values = Malloc(double, nr_class*(nr_class-1)/2); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2709:42: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2709 | double **pairwise_prob=Malloc(double *,nr_class); - | ~~~~~~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2711:35: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2711 | pairwise_prob[i]=Malloc(double,nr_class); - | ~~~~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2878:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 2878 | line = (char *) realloc(line,max_line_len); - | ~~~~~~~ ^~~~~~~~~~~~ - svm.cpp:2956:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2956 | model->rho = Malloc(double,n); - | ~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2963:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2963 | model->label = Malloc(int,n); - | ~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2970:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2970 | model->probA = Malloc(double,n); - | ~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2977:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2977 | model->probB = Malloc(double,n); - | ~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2984:46: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2984 | model->prob_density_marks = Malloc(double,n); - | ~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:2991:28: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2991 | model->nSV = Malloc(int,n); - | ~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:3056:21: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3056 | line = Malloc(char,max_line_len); - | ~~~~~~~~~~~~^~~~~~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:3076:35: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3076 | model->sv_coef = Malloc(double *,m); - | ~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:3079:37: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3079 | model->sv_coef[i] = Malloc(double,l); - | ~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:3080:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3080 | model->SV = Malloc(svm_node*,l); - | ~~~~~~~~~~~~~~~~~^~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:3082:36: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3082 | if(l>0) x_space = Malloc(svm_node,elements); - | ~~~~~~~~~~~~~~~~^~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:3247:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3247 | int *label = Malloc(int,max_nr_class); - | ~~~~~~~~~~~^~~~~~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:3248:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3248 | int *count = Malloc(int,max_nr_class); - | ~~~~~~~~~~~^~~~~~~~~~~~~ - svm.cpp:43:40: note: expanded from macro 'Malloc' - 43 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm.cpp:3266:35: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3266 | label = (int *)realloc(label,max_nr_class*sizeof(int)); - | ^~~~~~~~~~~~~ - svm.cpp:3267:35: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3267 | count = (int *)realloc(count,max_nr_class*sizeof(int)); - | ^~~~~~~~~~~~~ - svm.cpp:27:14: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 27 | dst = new T[n]; - | ~~~ ^ - svm.cpp:280:2: note: in instantiation of function template specialization 'clone<svm_node *const, const svm_node *>' requested here - 280 | clone(x,x_,l); - | ^ - svm.cpp:28:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 28 | memcpy((void *)dst,(void *)src,sizeof(T)*n); - | ~^ - svm.cpp:27:14: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 27 | dst = new T[n]; - | ~~~ ^ - svm.cpp:515:2: note: in instantiation of function template specialization 'clone<const double, double>' requested here - 515 | clone(p, p_,l); - | ^ - svm.cpp:28:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 28 | memcpy((void *)dst,(void *)src,sizeof(T)*n); - | ~^ - svm.cpp:27:14: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 27 | dst = new T[n]; - | ~~~ ^ - svm.cpp:516:2: note: in instantiation of function template specialization 'clone<const signed char, signed char>' requested here - 516 | clone(y, y_,l); - | ^ - svm.cpp:28:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 28 | memcpy((void *)dst,(void *)src,sizeof(T)*n); - | ~^ - svm.cpp:27:14: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 27 | dst = new T[n]; - | ~~~ ^ - svm.cpp:517:2: note: in instantiation of function template specialization 'clone<double, double>' requested here - 517 | clone(alpha,alpha_,l); - | ^ - svm.cpp:28:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 28 | memcpy((void *)dst,(void *)src,sizeof(T)*n); - | ~^ - 112 warnings generated. - c++ -Wall -Wconversion -O3 -fPIC svm-train.c svm.o -o svm-train -lm - c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] - svm-train.c:75:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 75 | line = (char *) realloc(line,max_line_len); - | ~~~~~~~ ^~~~~~~~~~~~ - svm-train.c:128:38: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 128 | double *target = Malloc(double,prob.l); - | ~~~~~~~~~~~~~~~~~~~^~ - svm-train.c:7:40: note: expanded from macro 'Malloc' - 7 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm-train.c:243:78: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 243 | param.weight_label = (int *)realloc(param.weight_label,sizeof(int)*param.nr_weight); - | ~~~~~~~^~~~~~~~~ - svm-train.c:244:72: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 244 | param.weight = (double *)realloc(param.weight,sizeof(double)*param.nr_weight); - | ~~~~~~~^~~~~~~~~ - svm-train.c:296:21: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 296 | line = Malloc(char,max_line_len); - | ~~~~~~~~~~~~^~~~~~~~~~~~~ - svm-train.c:7:40: note: expanded from macro 'Malloc' - 7 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm-train.c:314:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 314 | prob.y = Malloc(double,prob.l); - | ~~~~~~~~~~~~~~~~~~~^~ - svm-train.c:7:40: note: expanded from macro 'Malloc' - 7 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - svm-train.c:315:41: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 315 | prob.x = Malloc(struct svm_node *,prob.l); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ - svm-train.c:7:40: note: expanded from macro 'Malloc' - 7 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - 7 warnings generated. - c++ -Wall -Wconversion -O3 -fPIC svm-predict.c svm.o -o svm-predict -lm - c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] - svm-predict.c:31:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 31 | line = (char *) realloc(line,max_line_len); - | ~~~~~~~ ^~~~~~~~~~~~ - svm-predict.c:64:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 64 | prob_estimates = (double *) malloc(nr_class*sizeof(double)); - | ^~~~~~~~~ - svm-predict.c:69:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 69 | int *labels=(int *) malloc(nr_class*sizeof(int)); - | ^~~~~~~~~ - svm-predict.c:71:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 71 | prob_estimates = (double *) malloc(nr_class*sizeof(double)); - | ^~~~~~~~~ - svm-predict.c:81:24: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 81 | line = (char *)malloc(max_line_len*sizeof(char)); - | ^~~~~~~~~~~~~ - svm-predict.c:102:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 102 | x = (struct svm_node *) realloc(x,max_nr_attr*sizeof(struct svm_node)); - | ^~~~~~~~~~~~ - svm-predict.c:223:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 223 | x = (struct svm_node *) malloc(max_nr_attr*sizeof(struct svm_node)); - | ^~~~~~~~~~~~ - 7 warnings generated. - c++ -Wall -Wconversion -O3 -fPIC svm-scale.c -o svm-scale - c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] - svm-scale.c:94:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 94 | line = (char *) malloc(max_line_len*sizeof(char)); - | ^~~~~~~~~~~~~ - svm-scale.c:158:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 158 | feature_max = (double *)malloc((max_index+1)* sizeof(double)); - | ~~~~~~~~~^~ ~ - svm-scale.c:159:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 159 | feature_min = (double *)malloc((max_index+1)* sizeof(double)); - | ~~~~~~~~~^~ ~ - svm-scale.c:350:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 350 | line = (char *) realloc(line, max_line_len); - | ~~~~~~~ ^~~~~~~~~~~~ - 4 warnings generated. -> compiled libsvm_tools.3.35 Processing 9/9: [libsvm_tools: cp svm-train] + /bin/cp "svm-train" "/home/opam/.opam/5.2.0/bin/libsvm_train" (CWD=/home/opam/.opam/5.2.0/.opam-switch/build/libsvm_tools.3.35) Processing 9/9: [libsvm_tools: cp svm-predict] + /bin/cp "svm-predict" "/home/opam/.opam/5.2.0/bin/libsvm_predict" (CWD=/home/opam/.opam/5.2.0/.opam-switch/build/libsvm_tools.3.35) -> installed libsvm_tools.3.35 Done. 2024-12-17 05:41.48 ---> saved as "325cd6c2570e737a53de00b9eeee1fddec093963d1cca8d76384f64101437d4d" Job succeeded