How to update cross gcc and binutils ports

Ryan Carsten Schmidt ryandesign at macports.org
Mon Oct 21 22:15:48 UTC 2024


Hi, does anybody know how to update the cross gcc and binutils ports?

We have a report that i386-elf-gcc @12.2.0 doesn't build:

https://trac.macports.org/ticket/71137

I think the same problem affects x86_64-elf-gcc.

According to an upstream bug report the problem should be fixed in a newer version so I wanted to try first updating to 12.4.0 (the latest version of 12.x) and maybe later to 14.2.0 (the latest version).

These ports use the crossgcc portgroup. I discovered that I need to add the checksums for 12.4.0 to the crossgcc portgroup in addition to updating the version number in the crossgcc.setup line in the ports.

There is also a crossgcc.setup_libc line. How do I know whether I should update this line and to what version? Is it always appropriate to update to the latest version or do I need to find the right version that matches the version of gcc, and if so how?

These gcc ports depend on corresponding binutils ports i386-elf-binutils and x86_64-elf-binutils. How do I know whether I should update those ports and to what version? Is there a right version for each version of gcc?




More information about the macports-dev mailing list