adding: C_logging_code= if(stardata->star[0].SN_type != SN_NONE) { if (stardata->model.time < stardata->model.max_evolution_time) { Printf("DAVID_SN %30.12e %g %g %g %d\n", // stardata->model.time, // 1 stardata->star[0].mass, //2 stardata->previous_stardata->star[0].mass, //3 stardata->star[0].pms_mass, //4 stardata->star[0].SN_type //5 ); }; /* Kill the simulation to save time */ stardata->model.max_evolution_time = stardata->model.time - stardata->model.dtm; }; to grid_options adding: separation=1000000000 to BSE_options adding: orbital_period=400000000 to BSE_options adding: metallicity=0.002 to BSE_options !! Key doesnt match previously known parameter: adding: data_dir=/vol/ph/astro_code/dhendriks/binaryc/results/testing_python/multiprocessing2/surreypc to custom_options /usr/bin/ld: /tmp/ccca3KKm.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /tmp/ccca3KKm.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status Traceback (most recent call last): File "multiprocessing_via_population_comparison.py", line 106, in <module> res = test_pop.evolve_population_comparison(parse_function, amt=int(amt_systems), nodes=int(amt_nodes)) File "/vol/ph/astro_code/dhendriks/binaryc/binary_c-python/binarycpython/utils/grid.py", line 456, in evolve_population_comparison self.set_custom_logging() File "/vol/ph/astro_code/dhendriks/binaryc/binary_c-python/binarycpython/utils/grid.py", line 364, in set_custom_logging ] = create_and_load_logging_function(custom_logging_code) File "/vol/ph/astro_code/dhendriks/binaryc/binary_c-python/binarycpython/utils/custom_logging_functions.py", line 302, in create_and_load_logging_function outfile_name=library_name, File "/vol/ph/astro_code/dhendriks/binaryc/binary_c-python/binarycpython/utils/custom_logging_functions.py", line 262, in compile_shared_lib res = subprocess.check_output("{command}".format(command=command), shell=True) File "/user/HS128/dh00601/.pyenv/versions/3.6.4/lib/python3.6/subprocess.py", line 336, in check_output **kwargs).stdout File "/user/HS128/dh00601/.pyenv/versions/3.6.4/lib/python3.6/subprocess.py", line 418, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command 'gcc -DALIGNSIZE=8 -std=gnu99 -march=native -mtune=native -ffast-math -fno-associative-math -fno-finite-math-only -fsignaling-nans -fomit-frame-pointer -DCPUFREQ=3600 -DOPERATING_SYSTEM=linux -DLINUX -DPOSIX -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFPU_CONTROL -DGIT_REVISION=4797:20200127:369f3df -DGIT_URL=gitlab@gitlab.eps.surrey.ac.uk:ri0005/binary_c.git -D__HAVE_LIBC__ -D__HAVE_LIBGSL__ -I/user/HS128/dh00601/.local/include -DUSE_GSL -D__HAVE_LIBGSLCBLAS__ -D__HAVE_LIBBACKTRACE__ -D__HAVE_LIBBSD__ -D__HAVE_LIBM__ -D__HAVE_IEEE754_H__ -D__HAVE_DRAND48__ -D__HAVE_HSEARCH_DATA__ -D__HAVE_MALLOC_H__ -D__HAVE_SETITIMER__ -D__HAVE_PKG_CONFIG__ -D__HAVE_VALGRIND__ -D__SHOW_STARDATA__ -D__DIFF_STARDATA__ -O3 -shared -D_SEARCH_H -L/vol/ph/astro_code/dhendriks/binaryc/binary_c/src -L/user/HS128/dh00601/.local/lib -L/vol/ph/astro_code/dhendriks/binaryc/binary_c/src -lbinary_c -lc -lgsl -lgsl -lgslcblas -lm -lgslcblas -lbacktrace -lbsd -lm -o /tmp/binary_c_python/libcustom_logging_db727f25d8e14d4fbeaed42a32f23764.so /tmp/binary_c_python/custom_logging.c -I/vol/ph/astro_code/dhendriks/binaryc/binary_c -I/vol/ph/astro_code/dhendriks/binaryc/binary_c/src -I/usr/include -I/usr/local/include -I/vol/ph/astro_code/dhendriks/binaryc/binary_c/src' returned non-zero exit status 1. ### https://github.com/pybind/pybind11/issues/1234 might be useful (binaryc_py3.6.4) ➜ population git:(population) ✗ machine_overview System: Host: phws71 Kernel: 4.4.0-171-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Xfce 4.12.3 (Gtk 2.24.28) Distro: Ubuntu 16.04 xenial Machine: System: Dell product: OptiPlex 7050 Mobo: Dell model: 0XHGV1 v: A01 Bios: Dell v: 1.8.3 date: 03/23/2018 CPU: Quad core Intel Core i5-6500 (-MCP-) cache: 6144 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 25536 clock speeds: max: 3600 MHz 1: 864 MHz 2: 881 MHz 3: 863 MHz 4: 849 MHz Graphics: Card: Intel HD Graphics 530 bus-ID: 00:02.0 Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa) Resolution: 1920x1080@60.00hz, 1920x1080@60.00hz GLX Renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2) GLX Version: 3.0 Mesa 18.0.5 Direct Rendering: Yes Audio: Card Intel 200 Series PCH HD Audio driver: snd_hda_intel bus-ID: 00:1f.3 Sound: Advanced Linux Sound Architecture v: k4.4.0-171-generic Network: Card: Intel Ethernet Connection (5) I219-LM driver: e1000e v: 3.2.6-k bus-ID: 00:1f.6 IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: 8c:ec:4b:7b:54:21 Drives: HDD Total Size: 512.1GB (25.5% used) ID-1: /dev/sda model: ADATA_SSD_DM900 size: 512.1GB Partition: ID-1: / size: 184G used: 55G (32%) fs: ext4 dev: /dev/dm-0 ID-2: /tmp size: 9.1G used: 38M (1%) fs: ext4 dev: /dev/dm-2 ID-3: swap-1 size: 8.19GB used: 0.24GB (3%) fs: swap dev: /dev/dm-1 RAID: No RAID devices: /proc/mdstat, md_mod kernel module present Sensors: System Temperatures: cpu: 29.8C mobo: 27.8C Fan Speeds (in rpm): cpu: N/A Info: Processes: 308 Uptime: 10 days Memory: 6456.8/15911.6MB Init: systemd runlevel: 5 Gcc sys: 5.4.0 Client: Shell (zsh 5.6.2) inxi: 2.2.35 (binaryc_py3.6.4) ➜ population git:(population) ✗ gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609 Copyright (C) 2015 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.