Skip to content

Conversation

@GrantHecht
Copy link

@GrantHecht GrantHecht commented Jul 13, 2025

The current setup builds fine when built directly on my M1 MacBook Pro. However, I get a line-truncated error in c/bobyqa_c.f90 when building using BinaryBuilder.jl. This change just continues the list of arguments in the call to bobyqa to a new line to avoid this error.

@vcantarella
Copy link
Owner

Thank you @GrantHecht! Are you also making a pull request to the julia side? Glad to see that, thanks!

@vcantarella vcantarella merged commit e662a42 into vcantarella:main Jul 14, 2025
@GrantHecht
Copy link
Author

GrantHecht commented Jul 14, 2025

@vcantarella, I'm not sure yet. I believe we've updated v0.8.0 of prima in your fork, but it looks like there's been an ongoing discussion since Apr 4, 2024 here on how to update PRIMA.jl for the new v0.8.0 API and this discussion seems to have stalled...

That said, I've also updated the prior version of prima (with the C API currently used by PRIMA.jl) here on branch add_c_api_bobyqa_honour_x0_option and updated PRIMA.jl to work with this here. I have tested this on my MacBook and it seems to work fine, so you may be able to use my forks for now if you're trying to work in Julia.

I think ultimately, it would be best to get PRIMA.jl updated to work with the new v0.8.0 C API, but until this is figured out, I think it might be easiest/quickest to suggest also updating the old C API like I've done on my forks. I'm not sure how the prima/PRIMA.jl devs will want to handle this but I'm thinking it might be worth starting a new issue about this to get the ball rolling.

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.

2 participants