Building on spring (from freebsd) 2024-12-17 05:37.09 ---> 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:37.10 ---> 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:37.10 ---> 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:37.11 ---> 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:37.11 ---> using "43207f3fada0dee8b2d293185d894075662416a518a256b1895ed46a16b8ba5e" from cache /: (run (network host) (shell "opam update --depexts")) [WARNING] Unknown update command for bsd, skipping system update 2024-12-17 05:37.12 ---> using "f8d4ba41e8ca3e03295d6c357ddb76fd7f7647e9b633e493960a24aff0c86428" from cache /: (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "\ \nopam remove -y \"liblinear.2.47\"\ \nopam install -vy \"liblinear.2.47\"\ \nres=$?\ \nif [ $res = 31 ]; then\ \n if opam show -f x-ci-accept-failures: \"liblinear.2.47\" | 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] liblinear.2.47 is not installed. Nothing to do. The following actions will be performed: === install 3 packages - install conf-g++ 1.0 [required by liblinear] - install conf-gcc 1.0 [required by liblinear] - install liblinear 2.47 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: [liblinear.2.47: extract] Processing 4/9: [liblinear.2.47: extract] [conf-g++: g++] Processing 5/9: [liblinear.2.47: 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: [liblinear.2.47: extract] [conf-gcc: gcc] -> installed conf-g++.1.0 Processing 6/9: [liblinear.2.47: 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: [liblinear.2.47: extract] -> installed conf-gcc.1.0 Processing 7/9: [liblinear.2.47: extract] -> retrieved liblinear.2.47 (cached) Processing 8/9: [liblinear: gmake] + /usr/local/bin/gmake (CWD=/home/opam/.opam/5.2.0/.opam-switch/build/liblinear.2.47) - c++ -Wall -Wconversion -O3 -fPIC -c -o newton.o newton.cpp - newton.cpp:42:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 42 | double *w_new = new double[n]; - | ~~~ ^ - newton.cpp:66:35: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 66 | memcpy(w, w_new, sizeof(double)*n); - | ~^ - newton.cpp:103:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 103 | double *s = new double[n]; - | ~~~ ^ - newton.cpp:104:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 104 | double *r = new double[n]; - | ~~~ ^ - newton.cpp:105:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 105 | double *g = new double[n]; - | ~~~ ^ - newton.cpp:108:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 108 | double *M = new double[n]; - | ~~~ ^ - newton.cpp:111:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 111 | double *w0 = new double[n]; - | ~~~ ^ - newton.cpp:179:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 179 | double *d = new double[n]; - | ~~~ ^ - newton.cpp:180:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 180 | double *Hd = new double[n]; - | ~~~ ^ - newton.cpp:182:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 182 | double *z = new double[n]; - | ~~~ ^ - 10 warnings generated. - c++ -Wall -Wconversion -O3 -fPIC -c -o linear.o linear.cpp - linear.cpp:137:18: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 137 | wx = new double[l]; - | ~~~ ^ - linear.cpp:138:19: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 138 | tmp = new double[l]; - | ~~~ ^ - linear.cpp:279:17: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 279 | D = new double[l]; - | ~~~ ^ - linear.cpp:388:20: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 388 | I = new int[prob->l]; - | ~~~ ~~~~~~^ - linear.cpp:602:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 602 | this->B = new double[nr_class]; - | ~~~ ^~~~~~~~ - linear.cpp:603:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 603 | this->G = new double[nr_class]; - | ~~~ ^~~~~~~~ - linear.cpp:630:11: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 630 | qsort(D, active_i, sizeof(double), compare_double); - | ~~~~~ ^~~~~~~~ - linear.cpp:661:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 661 | double *alpha = new double[l*nr_class]; - | ~~~ ~^~~~~~~~~ - linear.cpp:662:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 662 | double *alpha_new = new double[nr_class]; - | ~~~ ^~~~~~~~ - linear.cpp:663:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 663 | int *index = new int[l]; - | ~~~ ^ - linear.cpp:664:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 664 | double *QD = new double[l]; - | ~~~ ^ - linear.cpp:665:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 665 | int *d_ind = new int[nr_class]; - | ~~~ ^~~~~~~~ - linear.cpp:666:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 666 | double *d_val = new double[nr_class]; - | ~~~ ^~~~~~~~ - linear.cpp:667:37: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 667 | int *alpha_index = new int[nr_class*l]; - | ~~~ ~~~~~~~~^~ - linear.cpp:668:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 668 | int *y_index = new int[l]; - | ~~~ ^ - linear.cpp:670:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 670 | int *active_size_i = new int[l]; - | ~~~ ^ - linear.cpp:909:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 909 | double *QD = new double[l]; - | ~~~ ^ - linear.cpp:910:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 910 | int *index = new int[l]; - | ~~~ ^ - linear.cpp:911:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 911 | double *alpha = new double[l]; - | ~~~ ^ - linear.cpp:912:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 912 | schar *y = new schar[l]; - | ~~~ ^ - linear.cpp:1116:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1116 | int *index = new int[l]; - | ~~~ ^ - linear.cpp:1122:28: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1122 | double *beta = new double[l]; - | ~~~ ^ - linear.cpp:1123:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1123 | double *QD = new double[l]; - | ~~~ ^ - linear.cpp:1320:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1320 | double *xTx = new double[l]; - | ~~~ ^ - linear.cpp:1321:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1321 | int *index = new int[l]; - | ~~~ ^ - linear.cpp:1322:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1322 | double *alpha = new double[2*l]; // store alpha and C - alpha - | ~~~ ~^~ - linear.cpp:1323:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1323 | schar *y = new schar[l]; - | ~~~ ^ - linear.cpp:1496:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1496 | int *index = new int[w_size]; - | ~~~ ^~~~~~ - linear.cpp:1497:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1497 | schar *y = new schar[l]; - | ~~~ ^ - linear.cpp:1498:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1498 | double *b = new double[l]; // b = 1-ywTx - | ~~~ ^ - linear.cpp:1499:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1499 | double *xj_sq = new double[w_size]; - | ~~~ ^~~~~~ - linear.cpp:1805:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1805 | int *index = new int[w_size]; - | ~~~ ^~~~~~ - linear.cpp:1806:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1806 | schar *y = new schar[l]; - | ~~~ ^ - linear.cpp:1807:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1807 | double *Hdiag = new double[w_size]; - | ~~~ ^~~~~~ - linear.cpp:1808:28: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1808 | double *Grad = new double[w_size]; - | ~~~ ^~~~~~ - linear.cpp:1809:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1809 | double *wpd = new double[w_size]; - | ~~~ ^~~~~~ - linear.cpp:1810:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1810 | double *xjneg_sum = new double[w_size]; - | ~~~ ^~~~~~ - linear.cpp:1811:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1811 | double *xTd = new double[l]; - | ~~~ ^ - linear.cpp:1812:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1812 | double *exp_wTx = new double[l]; - | ~~~ ^ - linear.cpp:1813:35: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1813 | double *exp_wTx_new = new double[l]; - | ~~~ ^ - linear.cpp:1814:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1814 | double *tau = new double[l]; - | ~~~ ^ - linear.cpp:1815:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 1815 | double *D = new double[l]; - | ~~~ ^ - linear.cpp:2241:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2241 | double *QD = new double[l]; - | ~~~ ^ - linear.cpp:2242:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2242 | double *G = new double[l]; - | ~~~ ^ - linear.cpp:2243:23: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2243 | int *index = new int[l]; - | ~~~ ^ - linear.cpp:2244:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2244 | double *alpha = new double[l]; - | ~~~ ^ - linear.cpp:2252:51: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2252 | feature_node *max_negG_of_Iup = new feature_node[l]; - | ~~~ ^ - linear.cpp:2253:52: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2253 | feature_node *min_negG_of_Ilow = new feature_node[l]; - | ~~~ ^ - linear.cpp:2339:53: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 2339 | qsort(&(max_negG_of_Iup[len_Iup-max_inner_iter]), max_inner_iter, sizeof(struct feature_node), compare_feature_node); - | ~~~~~ ^~~~~~~~~~~~~~ - linear.cpp:2342:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 2342 | qsort(min_negG_of_Ilow, max_inner_iter, sizeof(struct feature_node), compare_feature_node); - | ~~~~~ ^~~~~~~~~~~~~~ - linear.cpp:2474:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2474 | size_t *col_ptr = new size_t [n+1]; - | ~~~ ~^~ - linear.cpp:2478:27: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2478 | prob_col->y = new double[l]; - | ~~~ ^ - linear.cpp:2479:34: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2479 | prob_col->x = new feature_node*[n]; - | ~~~ ^ - linear.cpp:2499:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 2499 | x_space = new feature_node[nnz+n]; - | ~^ - linear.cpp:2530:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2530 | int *label = Malloc(int,max_nr_class); - | ~~~~~~~~~~~^~~~~~~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:2531:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2531 | int *count = Malloc(int,max_nr_class); - | ~~~~~~~~~~~^~~~~~~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:2532:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2532 | int *data_label = Malloc(int,l); - | ~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:2553:34: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2553 | label = (int *)realloc(label,max_nr_class*sizeof(int)); - | ^~~~~~~~~~~~~ - linear.cpp:2554:34: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2554 | count = (int *)realloc(count,max_nr_class*sizeof(int)); - | ^~~~~~~~~~~~~ - linear.cpp:2580:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2580 | int *start = Malloc(int,nr_class); - | ~~~~~~~~~~~^~~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:2611:31: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 2611 | double *C = new double[prob->l]; - | ~~~ ~~~~~~^ - linear.cpp:2810:40: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 2810 | double *target = Malloc(double, prob->l); - | ~~~~~~~~~~~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:2814:36: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2814 | double **prev_w = Malloc(double*, nr_fold); - | ~~~~~~~~~~~~~~~~^~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:2849:32: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2849 | prev_w[i] = Malloc(double, total_w_size); - | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:2948:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2948 | model_->w = Malloc(double, w_size); - | ~~~~~~~~~~~~~~~^~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:2963:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2963 | model_->w = Malloc(double, w_size); - | ~~~~~~~~~~~~~~~^~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:2974:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2974 | int *perm = Malloc(int,l); - | ~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:2980:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2980 | model_->label = Malloc(int,nr_class); - | ~~~~~~~~~~~^~~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:2985:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 2985 | double *weighted_C = Malloc(double, nr_class); - | ~~~~~~~~~~~~~~~^~~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3000:44: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3000 | feature_node **x = Malloc(feature_node *,l); - | ~~~~~~~~~~~~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3008:47: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3008 | sub_prob.x = Malloc(feature_node *,sub_prob.l); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3009:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3009 | sub_prob.y = Malloc(double,sub_prob.l); - | ~~~~~~~~~~~~~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3017:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3017 | model_->w=Malloc(double, n*nr_class); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3028:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3028 | model_->w=Malloc(double, w_size); - | ~~~~~~~~~~~~~~~^~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3048:36: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3048 | model_->w=Malloc(double, w_size*nr_class); - | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3049:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3049 | double *w=Malloc(double, w_size); - | ~~~~~~~~~~~~~~~^~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3097:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3097 | int *perm = Malloc(int,l); - | ~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3103:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3103 | fold_start = Malloc(int,nr_fold+1); - | ~~~~~~~~~~~~~~~~~~^~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3123:51: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3123 | subprob.x = Malloc(struct feature_node*,subprob.l); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3124:37: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3124 | subprob.y = Malloc(double,subprob.l); - | ~~~~~~~~~~~~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3158:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3158 | int *perm = Malloc(int, l); - | ~~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3159:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3159 | struct problem *subprob = Malloc(problem,nr_fold); - | ~~~~~~~~~~~~~~~^~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3166:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3166 | fold_start = Malloc(int,nr_fold+1); - | ~~~~~~~~~~~~~~~~~~^~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3185:57: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3185 | subprob[i].x = Malloc(struct feature_node*,subprob[i].l); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3186:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3186 | subprob[i].y = Malloc(double,subprob[i].l); - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3313:46: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] - 3313 | double *dec_values = Malloc(double, model_->nr_class); - | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3526:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3526 | model_->label = Malloc(int,nr_class); - | ~~~~~~~~~~~^~~~~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:3549:33: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 3549 | model_->w=Malloc(double, w_size*nr_w); - | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ - linear.cpp:24:40: note: expanded from macro 'Malloc' - 24 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - linear.cpp:20:14: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 20 | dst = new T[n]; - | ~~~ ^ - linear.cpp:627:2: note: in instantiation of function template specialization 'clone<double, double>' requested here - 627 | clone(D, B, active_i); - | ^ - linear.cpp:21:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 21 | memcpy((void *)dst,(void *)src,sizeof(T)*n); - | ~^ - 90 warnings generated. - make -C blas OPTFLAGS='-Wall -Wconversion -O3 -fPIC' CC='cc'; - cc -Wall -Wconversion -O3 -fPIC -c dnrm2.c - cc -Wall -Wconversion -O3 -fPIC -c daxpy.c - cc -Wall -Wconversion -O3 -fPIC -c ddot.c - cc -Wall -Wconversion -O3 -fPIC -c dscal.c - ar rcv blas.a dnrm2.o daxpy.o ddot.o dscal.o - a - dnrm2.o - a - daxpy.o - a - ddot.o - a - dscal.o - ranlib blas.a - c++ -Wall -Wconversion -O3 -fPIC -o train train.c newton.o linear.o blas/blas.a - c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] - train.c:82:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 82 | line = (char *) realloc(line,max_line_len); - | ~~~~~~~ ^~~~~~~~~~~~ - train.c:176:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 176 | double *target = Malloc(double, prob.l); - | ~~~~~~~~~~~~~~~~~~~~^~ - train.c:8:40: note: expanded from macro 'Malloc' - 8 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - train.c:271:79: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 271 | param.weight_label = (int *) realloc(param.weight_label,sizeof(int)*param.nr_weight); - | ~~~~~~~^~~~~~~~~ - train.c:272:73: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 272 | param.weight = (double *) realloc(param.weight,sizeof(double)*param.nr_weight); - | ~~~~~~~^~~~~~~~~ - train.c:396:21: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 396 | line = Malloc(char,max_line_len); - | ~~~~~~~~~~~~^~~~~~~~~~~~~ - train.c:8:40: note: expanded from macro 'Malloc' - 8 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - train.c:416:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 416 | prob.y = Malloc(double,prob.l); - | ~~~~~~~~~~~~~~~~~~~^~ - train.c:8:40: note: expanded from macro 'Malloc' - 8 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - train.c:417:45: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 417 | prob.x = Malloc(struct feature_node *,prob.l); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ - train.c:8:40: note: expanded from macro 'Malloc' - 8 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ ~ - train.c:418:53: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 418 | x_space = Malloc(struct feature_node,elements+prob.l); - | ~~~~~~^ - train.c:8:40: note: expanded from macro 'Malloc' - 8 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) - | ^ - 8 warnings generated. - c++ -Wall -Wconversion -O3 -fPIC -o predict predict.c newton.o linear.o blas/blas.a - c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] - predict.c:37:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] - 37 | line = (char *) realloc(line,max_line_len); - | ~~~~~~~ ^~~~~~~~~~~~ - predict.c:71:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 71 | labels=(int *) malloc(nr_class*sizeof(int)); - | ^~~~~~~~~ - predict.c:73:38: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 73 | prob_estimates = (double *) malloc(nr_class*sizeof(double)); - | ^~~~~~~~~ - predict.c:82:24: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 82 | line = (char *)malloc(max_line_len*sizeof(char)); - | ^~~~~~~~~~~~~ - predict.c:103:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 103 | x = (struct feature_node *) realloc(x,max_nr_attr*sizeof(struct feature_node)); - | ^~~~~~~~~~~~ - predict.c:234:37: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] - 234 | x = (struct feature_node *) malloc(max_nr_attr*sizeof(struct feature_node)); - | ^~~~~~~~~~~~ - 6 warnings generated. -> compiled liblinear.2.47 Processing 9/9: [liblinear: cp train] + /bin/cp "train" "/home/opam/.opam/5.2.0/bin/liblinear_train" (CWD=/home/opam/.opam/5.2.0/.opam-switch/build/liblinear.2.47) Processing 9/9: [liblinear: cp predict] + /bin/cp "predict" "/home/opam/.opam/5.2.0/bin/liblinear_predict" (CWD=/home/opam/.opam/5.2.0/.opam-switch/build/liblinear.2.47) -> installed liblinear.2.47 Done. 2024-12-17 05:38.25 ---> saved as "8ae2eb8ee7eefff5d7eede76d1353cf6b49fbc6404e896c0d9aef71ad28f858f" Job succeeded