tschoonj / xmimsim

Monte Carlo simulation of energy-dispersive X-ray fluorescence spectrometers
Other
32 stars 11 forks source link

Problem in the installation #77

Open diegofelixdias opened 3 years ago

diegofelixdias commented 3 years ago

Hi.

I've trying to install the XMIMSIM in my notebook (macOS), using the Homebrew, but something it's wrong, given me a error:

Last 15 lines from /Users/diegofelixdias/Library/Logs/Homebrew/xmi-msim/02.make: /bin/sh ../libtool --mode=link clang -g -O2 -module -avoid-version -shared -o xmimsim-metal.la -rpath /usr/local/Cellar/xmi-msim/8.1_3/lib/xmimsim xmimsim_metal_la-xmi_solid_angle_metal.lo -framework Metal libxmimsim.la -lm libtool: link: clang -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -o .libs/xmimsim-metal.so -bundle .libs/xmimsim_metal_la-xmi_solid_angle_metal.o -framework Metal ./.libs/libxmimsim.dylib -L/usr/local/Cellar/hdf5/1.12.0_4/lib -L/usr/local/opt/szip/lib -L/usr/local/Cellar/libxml2/2.9.12/lib -L/usr/local/Cellar/libxslt/1.1.34_3/lib -L/usr/local/Cellar/xraylib/4.1.0/lib -L/usr/local/Cellar/easyrng/1.2_4/lib -L/usr/local/Cellar/glib/2.68.3/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/libsoup/2.72.0/lib -lhdf5_hl -lhdf5 -lsz -ldl -lxslt -lz -lpthread -liconv -lxml2 -lxrlf03 -lxrl -leasyRNG -lgmodule-2.0 -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lm -O2 -framework Metal -fopenmp libtool: link: ( cd ".libs" && rm -f "xmimsim-metal.la" && ln -s "../xmimsim-metal.la" "xmimsim-metal.la" ) CPPFLAGS="" CFLAGS="-g -O2" LDFLAGS="" CC="clang" PKG_CONFIG="/usr/local/Homebrew/Library/Homebrew/shims/mac/super/pkg-config" GI_HOST_OS="" DLLTOOL="false" /usr/local/Cellar/gobject-introspection/1.68.0_1/bin/g-ir-scanner -I.. --warn-all --identifier-filter-cmd="python3 ./identfilter.py" --symbol-filter-cmd="python3 ./symbolfilter.py" --c-include=include/xmi_gobject.h --c-include=include/xmi_data_structs.h --accept-unprefixed -v --namespace=XmiMsim --nsversion=1.0 --libtool="/bin/sh ../libtool" --include=GObject-2.0 --include=libxml2-2.0 --library=libxmimsim.la --cflags-begin -I/usr/local/Cellar/xraylib/4.1.0/include/xraylib -I../include --cflags-end ../include/xmi_data_structs.h ../include/xmi_job.h ../include/xmi_gobject.h xmi_type_builtins.h xmi_private.h ../include/xmi_xml.h ../include/xmi_error.h ../include/xmi_aux.h ../include/xmi_data.h ../include/xmi_batch.h xmi_data_structs.c xmi_job.c xmi_gobject.c xmi_type_builtins.c xmi_xml.c xmi_aux.c xmi_batch.c ../include/xmi_google_analytics.h xmi_google_analytics.c libxmimsim.la --output XmiMsim-1.0.gir clang -E -UBLOCKS -I. -I/usr/local/Cellar/xraylib/4.1.0/include/xraylib -I/private/tmp/xmi-msim-20210705-75944-18qrn2m/xmimsim-8.1/include -I/private/tmp/xmi-msim-20210705-75944-18qrn2m/xmimsim-8.1 -I/usr/local/Cellar/libffi/3.3_3/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/glib/2.68.3/include -I/usr/local/Cellar/glib/2.68.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.68.3/lib/glib-2.0/include -I/usr/local/Cellar/gettext/0.21/include -I/usr/local/Cellar/libxml2/2.9.12/include/libxml2 -o g-ir-cpp-yyzhs4la.i -C /private/tmp/xmi-msim-20210705-75944-18qrn2m/xmimsim-8.1/src/g-ir-cpp-yyzhs4la.c clang -g -O2 -I/private/tmp/xmi-msim-20210705-75944-18qrn2m/xmimsim-8.1 -I/usr/local/Cellar/libffi/3.3_3/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/glib/2.68.3/include -I/usr/local/Cellar/glib/2.68.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.68.3/lib/glib-2.0/include -I/usr/local/Cellar/gettext/0.21/include -I/usr/local/Cellar/libxml2/2.9.12/include/libxml2 -I/usr/local/Cellar/libffi/3.3_3/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/glib/2.68.3/include -I/usr/local/Cellar/glib/2.68.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.68.3/lib/glib-2.0/include -I/usr/local/Cellar/gettext/0.21/include -I/usr/local/Cellar/xraylib/4.1.0/include/xraylib -I/private/tmp/xmi-msim-20210705-75944-18qrn2m/xmimsim-8.1/include -c /private/tmp/xmi-msim-20210705-75944-18qrn2m/xmimsim-8.1/src/tmp-introspectow8wn7bp/XmiMsim-1.0.c -o /private/tmp/xmi-msim-20210705-75944-18qrn2m/xmimsim-8.1/src/tmp-introspectow8wn7bp/XmiMsim-1.0.o -Wno-deprecated-declarations g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC clang -o /private/tmp/xmi-msim-20210705-75944-18qrn2m/xmimsim-8.1/src/tmp-introspectow8wn7bp/XmiMsim-1.0 -export-dynamic -g -O2 /private/tmp/xmi-msim-20210705-75944-18qrn2m/xmimsim-8.1/src/tmp-introspectow8wn7bp/XmiMsim-1.0.o -L. libxmimsim.la -L/usr/local/Cellar/glib/2.68.3/lib -L/usr/local/opt/gettext/lib -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl libtool: link: clang -o /private/tmp/xmi-msim-20210705-75944-18qrn2m/xmimsim-8.1/src/tmp-introspectow8wn7bp/.libs/XmiMsim-1.0 -g -O2 /private/tmp/xmi-msim-20210705-75944-18qrn2m/xmimsim-8.1/src/tmp-introspectow8wn7bp/XmiMsim-1.0.o -L. ./.libs/libxmimsim.dylib -L/usr/local/Cellar/hdf5/1.12.0_4/lib -L/usr/local/opt/szip/lib -L/usr/local/Cellar/libxml2/2.9.12/lib -L/usr/local/Cellar/libxslt/1.1.34_3/lib -L/usr/local/Cellar/xraylib/4.1.0/lib -L/usr/local/Cellar/easyrng/1.2_4/lib -L/usr/local/Cellar/glib/2.68.3/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/libsoup/2.72.0/lib -lhdf5_hl -lhdf5 -lsz -ldl -lxslt -lz -lpthread -liconv -lxml2 -lxrlf03 -lxrl -leasyRNG -lsoup-2.4 -lm -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -fopenmp /usr/local/Cellar/gobject-introspection/1.68.0_1/bin/g-ir-compiler --includedir=. XmiMsim-1.0.gir -o XmiMsim-1.0.typelib xcrun --sdk macosx metal -I../include -I../include -DG_LOG_DOMAIN=\"XmiMsim\" -DRANGE_DIVIDER=8 -I. -c xmi_kernels.metal -o xmi_kernels.air xcrun: error: unable to find utility "metal", not a developer tool or in PATH make[3]: [xmi_kernels.air] Error 72 make[2]: [install-recursive] Error 1 make[1]: [install] Error 2 make: [install-recursive] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): https://github.com/tschoonj/homebrew-tap/issues

The XMIMSIM from the dmg file, works very well. If someone can help with this.

Thanks for your attention.

tschoonj commented 3 years ago

Hi,

Installing XMI-MSIM from source on macOS requires both Xcode and Command Line Tools. I recommend you go through these instructions and then try again compiling.

diegofelixdias commented 3 years ago

Thank you very much, did`s work

diegofelixdias commented 3 years ago

Hi again, I'm trying to run xmimsim from source, just typing "xmimsim inputfile", then I receive the message:

Segmentation fault: 11

And no any file as create. So, someone, have an idea was going on?

Thanks for your attention.

tschoonj commented 3 years ago

can you email me the input-file? I will try and have a look at it.

Keep in mind that I have very little time nowadays to look into XMI-MSIM.., but I will do my best to investigate.

tschoonj commented 2 years ago

You are using invalid values for your sample and detector orientation vectors: they cannot all be zeroes. How did you generate this file? Through the graphical user interface or did you modify the file manually in an editor?

diegofelixdias commented 2 years ago

I generate this file using the interface and then modify using a python routine. My mistake, these values cannot be zeroes. But the problem, using a correct file, generated only from the interface, I receive the same error. xmsi_testfile_Diego.xmsi.zip

diegofelixdias commented 2 years ago

Looking better about this error, I found this:

**Segmentation fault ⚓

The error is:

clang: error: unable to execute command: Segmentation fault: 11 This is usually due to Xcode version mismatch - that you use a different Xcode on your Mac than the one you use on bitrise.io.

The solution is simple, just make sure that you use the same Xcode version everywhere.**

So what Xcode version was used?

tschoonj commented 2 years ago

That file works fine here.

I have never seen that error before. In what context are you installing XMI-MSIM? Some VM?

diegofelixdias commented 2 years ago

Actually in a MacBook Pro with version 11.4.

As I was saying, looks like a problem with a Xcode version.

tschoonj commented 2 years ago

I have honestly no idea what it could be then. I am still not Catalina, but will upgrade to Big Sur later this summer, so maybe I will run into it too then.