Skip to content

Fix dependencies in manual Makefile #294

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

Merged
merged 3 commits into from
Jan 18, 2021

Conversation

awvwgk
Copy link
Member

@awvwgk awvwgk commented Jan 8, 2021

This PR fixes the manual Makefile by including the correct dependencies. The manual Makefile build could fail in full parallel builds due to missing dependencies.

To test this use a slow computer and let make create as many build jobs as allowed by the dependency network with:

make -f Makefile.manual FYPPFLAGS=-DMAXRANK=4 -j

This error might be hard to catch in a sequential CI build due to the correct ordering of the source files in SRC variable.

- also build in parallel using the manual makefile
@awvwgk
Copy link
Member Author

awvwgk commented Jan 8, 2021

Still fails occasionally for stdlib_quadrature_trapzd.o even if the dependency on stdlib_quadrature.o is explicitly specified in the Makefile. Typos in make are just annoying.

@awvwgk awvwgk mentioned this pull request Jan 8, 2021
Copy link
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for this improvement!

Copy link
Member

@milancurcic milancurcic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it and it works. I will go ahead and merge. Thanks @awvwgk!

@milancurcic milancurcic merged commit c696dcb into fortran-lang:master Jan 18, 2021
@awvwgk awvwgk deleted the fix-makefile branch January 18, 2021 20:41
milancurcic added a commit that referenced this pull request Jan 18, 2021
Fix some issues with Makefiles mentioned in #294
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

Successfully merging this pull request may close these issues.

3 participants