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

Failure to build 1.0-rc1 release tarball with MESA SDK 21.4.1 on Fedora 36 #7

Closed
warrickball opened this issue Jun 1, 2022 · 5 comments

Comments

@warrickball
Copy link

I just tried to build 1.0-rc1 by following the instructions in the Quick Start, specifically:

$ export MESASDK_ROOT=$HOME/mesa/sdk/21.4.1
$ source $MESASDK_ROOT/bin/mesasdk_init.sh
$ tar -xf ~/Downloads/msg-1.0-rc1.tar.gz # after clicking the release link
$ cd msg-1.0-rc1
$ export MSG_DIR=$(pwd)
$ make -C $MSG_DIR

and ran into the error

$ make -C $MSG_DIR
make: Entering directory '/home/wball/code/msg/1.0-rc1'
../src/lib/cmsg_m.fypp:18: error: include file 'forum.inc' not found [FyppFatalError]
../src/lib/fmsg_m.fypp:18: error: include file 'forum.inc' not found [FyppFatalError]
../src/lib/msg_m.fypp:18: error: include file 'forum.inc' not found [FyppFatalError]
../src/lib/forum_m.fypp:18: error: include file 'forum.inc' not found [FyppFatalError]
make[1]: *** No rule to make target 'forum_m.f90', needed by 'forum_m.o'.  Stop.
make: *** [Makefile:15: all] Error 2
make: Leaving directory '/home/wball/code/msg/1.0-rc1'

I noticed that forum is a git submodule in a separate repo. There's an empty folder under $MSG_DIR/src/forum, too.

$ find . -iname *forum*
./src/forum
./src/lib/forum_m.fypp
./build/.forum_m.dpp

The instructions for cloning the git repo and installing the development version do end with a successful build, so I suspect the relevant files from forum aren't being correctly included in the GitHub release archive.

@warrickball warrickball changed the title Failure to build 1.0-rc1 with MESA SDK 21.4.1 on Fedora 36 Failure to build 1.0-rc1 release tarball with MESA SDK 21.4.1 on Fedora 36 Jun 1, 2022
@rhdtownsend
Copy link
Owner

Thanks, Warrick -- this is why one has release candidates, I guess. You're correct about the submodule not being included in the tarball; this is an annoying feature of GitHub that I'd forgotten about (see, e.g., AcademySoftwareFoundation/MaterialX#317).

I'll get this fixed in the docs and push out rc2 later today.

@rhdtownsend
Copy link
Owner

OK, rc2 is live -- give it a whirl!

@warrickball
Copy link
Author

Success, thank you! I don't know how long 1.0-rc2 might live but you might want to link to the actual tarball (on your personal site) from the GitHub release page. I confused myself with various versions of the ReadTheDocs pages before finding the correct link.

Also, perhaps worth adding this to the troubleshooting page. I'm happy to open a PR to document this¹ but it won't happen until at least next week.

¹ i.e., "if you see this error, see if the forum code is there and if not make sure you didn't get archive from GitHub or make sure you clone with --recurse-submodules".

@rhdtownsend
Copy link
Owner

Added a link on the release page, and added the troubleshooting item as suggested (on main, will be in the next rc or in the full release).

@warrickball
Copy link
Author

This all looks good / is working for me, so you're welcome to close this.

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

2 participants