-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[WIP] msp430-elf crosscompiler #3336
Conversation
Travis Build #4775 Failed. Lint results
Port msp430-elf-binutils success on xcode9.4. Log |
Travis Build #4777 Passed. Lint results
Port msp430-elf-binutils success on xcode9.4. Log |
I tried following https://gist.github.com/0/631c9006a672458eaa48, but it seems that the specs files are missing:
They are apparently not installed by newlib? |
Replacement for older msp430 Closes: https://trac.macports.org/ticket/44009 Closes: https://trac.macports.org/ticket/44010 Closes: https://trac.macports.org/ticket/49323 Closes: https://trac.macports.org/ticket/50571 Closes: https://trac.macports.org/ticket/56109 Closes: https://trac.macports.org/ticket/57238 See: https://trac.macports.org/ticket/56887
Are we sure anyone wants to use these? |
Travis Build #4807 Passed. Lint results
Port msp430-elf-binutils success on xcode9.4. Log |
We have 7 tickets open with requests to update or fix them (ok, one is from me, which leaves 6 others) which does kind of send a signal that some people are eager to use these tools. I do occasionally use various cross-compilers myself as well, even if I don't currently have any hardware of this particular sort (@g5pw said I could borrow it temporarily from him to test the crosscompiler :) |
I want to use these (and the GDB port) and have the tools & hardware to test them. |
There are plenty of ways, but my suggestion would be to clone the full macports-ports repository and configure One simple option would be to copy and manually apply the patch: Alternatively you could fetch the changes via
which you can later delete (but in any case make sure that you switch back to master branch later). I hope I didn't mess up with instructions. Make sure you got the right contents, run |
I think there are some files missing on install, eg..
I suppressed the devices.csv one by pointing it at the Ti version I had from their tools (ie /Applications/ti/ccsv8/ccs_base/msp430/include_gcc/devices.csv). The code I am testing is https://www.instructables.com/id/Getting-started-with-TIs-MSP430-gcc-and-the-MSP430/ if you want to replicate (I have some of my own code but that example is nice and simple and publicly available) Edit: I checked the port build products and there is no crt0.o - I see newlib-2.4.0/libgloss/msp430/crt0.S, and can build it OK. If I use it, then I still complains about missing libcrt and libnosys. If I use -nostdlib it then complains about undefined references to WDTCTL etc.. Edit2: I just realised the linker script has all those defined so this works..
(Works == compiled, haven't tried real code as yet :) |
I use those and not having an up-to-date port is a bummer. Would love to have one! |
@mojca What do you want to do with this PR ? We should either merge or close it, not let it linger around. |
Agreed. No point in having it sit in the pull queue for a year if it isn't going to be pulled. |
We could also merge it and fix the remaining problem with some missing files later. I suspect this might need an extra bootstrapping phase, but I need some help/expertise/ideas. |
Maybe add port notes about remaining problem. |
@mojca It's up to you of course. If you want to merge it, do that. If you prefer closing, do that. |
I think we should merge this, and deprecate the msp430- ones. Me and @mojca will test with some boards to verify that this works properly. |
where do we now stand with this ? |
Hi, I add a ticket in the MacPorts forum and found out that the problem I had it's not new (https://trac.macports.org/ticket/69841?cversion=1&cnum_hist=3#comment:3). But I'm new in the Mac ecosystem and can't figure out what can I do to fix the problem while downloading msp430-gcc. Can someone help me out? |
Description
This is an attempt to bring the old cross-compilers (
msp430-gcc[-devel]
andmsp430-binutils[-devel]
) up to date, but I didn't actually test the functionality (I'm not actually sure how to test), and some stuff might be missing.I could potentially push the changes in
crossbinutils
andcrossgcc
earlier than those for the msp cross-compiler.What annoys me most and I would be grateful for some feedback/suggestions/brainstorming: I hate the way patching is done. The patches for
binutils
,gcc
,newlib
,gdb
all come together in a single.tar.bz2
file which basically contains four relatively big patch files.files/
, but at least forgcc
they are too massive to warrant this simplification.files/
, or maybe tried to fetch it from the website etc.bzcat
directly (out-of-the-box), the only problem is that the tarball contains patches for four different pieces of software and patching everything together fails.Yet another ugly aspect is that the same file with patches (in the way it's currently done) ends up in several different directories inside distfiles (
binutils
,gcc
,gdb
).What else is missing:
msp430*
ports obsolete (I would do some commit history edit magic).openmaintainer
(see also mspdebug: update to 0.25, switch to github #3339).msp430-elf
because the build instructions mention using--target=msp430-elf
. I don't actually know to what extent this distinction makes any difference, if any at all.msp430-gcc-support-files
).gdb
port is still missing (I suspect that all the old ports are broken on newer OSes, so that's not so critical yet, but it should be done). I started playing with acrossgdb
PortGroup, but there's still quite some stuff missing and I cannot get the includes forgettext
done right.*.specs
files from newlib are not installed:@g5pw @MarcusCalhoun-Lopez @raimue
Tickets
Closes: https://trac.macports.org/ticket/44009
Closes: https://trac.macports.org/ticket/44010
Closes: https://trac.macports.org/ticket/49323
Closes: https://trac.macports.org/ticket/50571
Closes: https://trac.macports.org/ticket/56109
Closes: https://trac.macports.org/ticket/57238
See: https://trac.macports.org/ticket/56887
Type(s)
Tested on
macOS 10.13.6 17G3025
Xcode 10.1 10B61
Verification
Have you
port lint
?sudo port test
?sudo port -vst install
?