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

v4.8.2.10 not compiling with gfortran on linux #416

Closed
pcboy opened this issue May 28, 2024 · 1 comment
Closed

v4.8.2.10 not compiling with gfortran on linux #416

pcboy opened this issue May 28, 2024 · 1 comment

Comments

@pcboy
Copy link

pcboy commented May 28, 2024

4.8.2.10 does not link on linux (gfortran)

/nix/store/bgcaxhhxswzvmxjbbgvvaximm5hwghz1-binutils-2.41/bin/ld: CMakeFiles/dscsm048.dir/Utilities/UTILS.for.o: in function `opclear_':
UTILS.for:(.text+0x4729): undefined reference to `system_'
/nix/store/bgcaxhhxswzvmxjbbgvvaximm5hwghz1-binutils-2.41/bin/ld: CMakeFiles/dscsm048.dir/Utilities/UTILS.for.o: in function `opnames_':
UTILS.for:(.text+0x4f68): undefined reference to `system_'
collect2: error: ld returned 1 exit status
       > /nix/store/bgcaxhhxswzvmxjbbgvvaximm5hwghz1-binutils-2.41/bin/ld: CMakeFiles/dscsm048.dir/Utilities/UTILS.for.o: in function `opclear_':
       > UTILS.for:(.text+0x4729): undefined reference to `system_'
       > /nix/store/bgcaxhhxswzvmxjbbgvvaximm5hwghz1-binutils-2.41/bin/ld: CMakeFiles/dscsm048.dir/Utilities/UTILS.for.o: in function `opnames_':
       > UTILS.for:(.text+0x4f68): undefined reference to `system_'
       > collect2: error: ld returned 1 exit status

It's due two 2 functions in UTILS.for which seems to be windows specific. Using SYSTEM instead of EXECUTE_COMMAND_LINE

pcboy added a commit to pcboy/dssat-csm-os that referenced this issue May 29, 2024
@fabiooliveira72
Copy link
Contributor

@pcboy

Fixed!

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