Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in the installation #77

Open
diegofelixdias opened this issue Jul 5, 2021 · 11 comments
Open

Problem in the installation #77

diegofelixdias opened this issue Jul 5, 2021 · 11 comments

Comments

@diegofelixdias
Copy link

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 -U__BLOCKS__ -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
Copy link
Owner

tschoonj commented Jul 6, 2021

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
Copy link
Author

Thank you very much, did`s work

@diegofelixdias
Copy link
Author

diegofelixdias commented Jul 8, 2021

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
Copy link
Owner

tschoonj commented Jul 8, 2021

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

That file works fine here.

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

@diegofelixdias
Copy link
Author

Actually in a MacBook Pro with version 11.4.

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

@tschoonj
Copy link
Owner

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.

@PATpat30-prog
Copy link

Hi,
I've trying to install the XMIMSIM on my notebook (macOS with m2 chip), using the Homebrew, but something it's wrong, given me this error:
==> Installing tschoonj/tap/xrmc --with-xmi-msim
==> ./configure --disable-silent-rules --enable-openmp --docdir=/opt/homebrew/Ce
==> make
Last 15 lines from /Users/patricknunziati/Library/Logs/Homebrew/xrmc/02.make:
./../sample/xrmc_sample.h:89:7: note: candidate found by name lookup is 'sample'
89 | class sample : public basesource
| ^
/opt/homebrew/opt/llvm/bin/../include/c++/v1/__algorithm/sample.h:105:1: note: candidate found by name lookup is 'std::sample'
105 | sample(_PopulationIterator __first,
| ^
7 errors generated.
make[3]: *** [libdetector_la-detector.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
2 errors generated.
libtool: compile: /opt/homebrew/opt/llvm/bin/clang++ -DHAVE_CONFIG_H -I. -I../.. -I./../xrmc_math -I./../xrmc_algo -I./../arrayNd -I./../device -I./../source -I./../photon -I./../spectrum -I./../exception -I./../main -I./../gettoken -I./../randmt -I./../sample -I./../composition -I./../geom3d -I./../phasecontrast -I./../fft -fopenmp -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -g -O2 -c xrmc_screen.cpp -o libdetector_la-xrmc_screen.o >/dev/null 2>&1
make[3]: *** [libdetector_la-loaddetector.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

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

Before this another error came out (the same reported by diegofelixdias) so i followed the instruction linked by tschoonj about Xcode and Command line tools.

Thanks for your attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants