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 launching Amrvis on Apple M3 Max #30

Open
mukul1992 opened this issue Apr 3, 2024 · 0 comments
Open

Problem launching Amrvis on Apple M3 Max #30

mukul1992 opened this issue Apr 3, 2024 · 0 comments

Comments

@mukul1992
Copy link

mukul1992 commented Apr 3, 2024

I have a new Apple laptop with the M3 Max chip. I installed openmotif and xquartz, compiled volpack and amrvis, but have a problem launching it.

Install steps:

$ brew install --cask xquartz
$ brew info xquartz
==> xquartz: 2.8.5 (auto_updates)
https://www.xquartz.org/

$ brew install openmotif
$ brew info openmotif
==> openmotif: stable 2.3.8 (bottled)
LGPL release of the Motif toolkit
https://motif.ics.com/motif
/opt/homebrew/Cellar/openmotif/2.3.8_2 (1,245 files, 17.7MB) *

$ cd volpack            # also had to  "brew install m4"  and put it in PATH for this to work
$ make CC=gcc-13

$ cd ../Amrvis
$ make CC=gcc-13 CXX=g++-13 CPATH="/opt/homebrew/include:/opt/homebrew/Cellar/openmotif/2.3.8_2/include:$CPATH" LIBRARY_PATH="/opt/homebrew/lib:$LIBRARY_PATH"
$ ./amrvis3d.gnu.ex:
	/opt/homebrew/opt/openmotif/lib/libXm.4.dylib (compatibility version 5.0.0, current version 5.4.0)
	/opt/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
	/opt/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.1.0)
	/opt/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	/opt/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current version 16.0.0)
	/opt/X11/lib/libX11.6.dylib (compatibility version 11.0.0, current version 11.0.0)
	/opt/homebrew/opt/gcc/lib/gcc/current/libgfortran.5.dylib (compatibility version 6.0.0, current version 6.0.0)
	/opt/homebrew/opt/gcc/lib/gcc/current/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/homebrew/opt/gcc/lib/gcc/current/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.32.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1345.100.2)

Here's the warnings/errors:

$ ./amrvis3d.gnu.ex 
Initializing AMReX (3525b4a3f27e)...
AMReX (3525b4a3f27e) initialized
Reading defaults from:  ./amrvis.defaults
Warning: translation table syntax error: Unknown event type :   BtnMotion
Warning: ... found while parsing '<BtnMotion>:			ManagerGadgetButtonMotion()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown event type :   EnterWindow
Warning: ... found while parsing '<EnterWindow>:			ManagerEnter()'
Warning: String to TranslationTable conversion encountered errors
Warning: translation table syntax error: Unknown event type :   BtnMotion
Warning: ... found while parsing '<BtnMotion>:			ManagerGadgetButtonMotion()'
Warning: String to TranslationTable conversion encountered errors
Warning: No type converter registered for 'translations' to 'UnsignedChar' conversion.
Warning: No type converter registered for 'translations' to 'InitialResourcesPersistent' conversion.
Warning: No type converter registered for 'TranslationTable' to 'InitialResourcesPersistent' conversion.
Warning: No type converter registered for 'translations' to 'Meta' conversion.
Warning: No type converter registered for 'translations' to 'Any' conversion.
Warning: No type converter registered for 'translations' to 'Key' conversion.
Warning: No type converter registered for 'translations' to 'KeyUp' conversion.
Warning: No type converter registered for 'translations' to 'KeyUp' conversion.
Warning: No type converter registered for 'TranslationTable' to 'BtnDown' conversion.
Warning: No type converter registered for 'KeyRelease' to 'KeyUp' conversion.
Warning: No type converter registered for 'TranslationTable' to 'BtnDown' conversion.
Warning: No type converter registered for 'TranslationTable' to 'InitialResourcesPersistent' conversion.
Warning: No type converter registered for 'translations' to 'KeyUp' conversion.
Warning: No type converter registered for 'translations' to 'ISO8859-8' conversion.
Warning: No type converter registered for 'TranslationTable' to 'ColormapNotify' conversion.
Warning: No type converter registered for 'TranslationTable' to 'MenuPopdown' conversion.
Warning: No type converter registered for 'translations' to 'KeyUp' conversion.
Warning: No type converter registered for 'translations' to 'ISO8859-8' conversion.
Warning: No type converter registered for 'translations' to 'KeyUp' conversion.
Warning: No type converter registered for 'TranslationTable' to 'ISO8859-8' conversion.
Warning: No type converter registered for 'TranslationTable' to 'InitialResourcesPersistent' conversion.
Warning: No type converter registered for 'TranslationTable' to 'Pointer' conversion.
Warning: No type converter registered for 'translations' to 'Map' conversion.
Warning: No type converter registered for 'TranslationTable' to 'Button5' conversion.
Warning: No type converter registered for 'TranslationTable' to 'MenuPopdown' conversion.
Warning: No type converter registered for 'TranslationTable' to 'XtDisplayAccelerators' conversion.
Warning: No type converter registered for 'translations' to 'ISO8859-5' conversion.
Warning: No type converter registered for 'translations' to 'ISO8859-6:GR' conversion.
Warning: No type converter registered for 'translations' to 'ISO8859-6' conversion.
Warning: No type converter registered for 'translations' to 'ISO8859-4:GR' conversion.
Warning: No type converter registered for 'String' to 'ISO8859-4' conversion.
Warning: No type converter registered for 'translations' to 'ISO8859-4' conversion.
Warning: No type converter registered for 'translations' to 'ISO8859-5:GR' conversion.
Warning: No type converter registered for 'TranslationTable' to 'InitialResourcesPersistent' conversion.
Warning: No type converter registered for 'TranslationTable' to 'InitialResourcesPersistent' conversion.
Warning: No type converter registered for 'TranslationTable' to 'InitialResourcesPersistent' conversion.
Warning: No type converter registered for 'TranslationTable' to 'Mod5' conversion.
Warning: No type converter registered for 'TranslationTable' to 'Any' conversion.
Error: Couldn't find per display information

I suspected that this may be an incompatibility of Xquartz with the system, but xeyes, xterm, etc. work fine, and so does launching Matlab on Perlmutter with X-forwarding. This makes me think that it may be some incompatibility of Amrvis with the latest Xquartz? I was able to use Amrvis fine on my prior Apple M2 laptop, probably with an older minor-version of Xquartz (8.4.x).

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

1 participant