Setting up C++ compiler toolchain
Moderator: BigEvilCorporation
-
- Interested
- Posts: 30
- Joined: Mon May 06, 2013 2:27 am
- Location: Vermont, USA
Setting up C++ compiler toolchain
HI! I've been trying fruitlessly to compile GCC with C++ and Objective-C support using Chilly WIlly's excellent tutorial using MinGW and MSYS, but cannot seem to get some parts to compile, specifically binutils and mpfr.
Does anyone have a compiled binary for m68k-elf-c++.exe?
Thanks!
Does anyone have a compiled binary for m68k-elf-c++.exe?
Thanks!
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
Re: Setting up C++ compiler toolchain
Hi!TechnoZealot wrote:HI! I've been trying fruitlessly to compile GCC with C++ and Objective-C support using Chilly WIlly's excellent tutorial using MinGW and MSYS, but cannot seem to get some parts to compile, specifically binutils and mpfr.
Does anyone have a compiled binary for m68k-elf-c++.exe?
Thanks!
Do you mean from this thread? (viewtopic.php?t=1045) Or another?
djcc
Last edited by djcouchycouch on Fri Dec 20, 2013 6:21 pm, edited 1 time in total.
-
- Interested
- Posts: 30
- Joined: Mon May 06, 2013 2:27 am
- Location: Vermont, USA
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
I tried building for Windows a while ago. Have you seen my post in the thread?
viewtopic.php?p=18727#18727
There was a step that wasn't clear in the original instructions.
I remember having trouble figuring out where which folder went where.
viewtopic.php?p=18727#18727
There was a step that wasn't clear in the original instructions.
I remember having trouble figuring out where which folder went where.
-
- Interested
- Posts: 30
- Joined: Mon May 06, 2013 2:27 am
- Location: Vermont, USA
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
You should try the exact versions in Chilly's instructions, just to be safe.TechnoZealot wrote:I think the only difference for me was that I used the most recent version of MinGW/MSYS and I am [regrettably] running Win8.
I don't think my MSYS setup even has an /opt directory to copy though .ld files to.
-
- Interested
- Posts: 30
- Joined: Mon May 06, 2013 2:27 am
- Location: Vermont, USA
Is there a place where I can get a precompiled binary of this? I am having a lot more trouble than I think I should be.
Last edited by TechnoZealot on Fri Dec 20, 2013 7:49 pm, edited 1 time in total.
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
-
- Interested
- Posts: 30
- Joined: Mon May 06, 2013 2:27 am
- Location: Vermont, USA
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
-
- Interested
- Posts: 30
- Joined: Mon May 06, 2013 2:27 am
- Location: Vermont, USA
-
- Interested
- Posts: 30
- Joined: Mon May 06, 2013 2:27 am
- Location: Vermont, USA
Keep getting this error:
../../binutils-2.21/bfd/bfdio.c: In function 'memory_bstat':
../../binutils-2.21/bfd/bfdio.c:580:30: error: argument to 'sizeof' in 'memset'
call is the same expression as the destination; did you mean to dereference it?
[-Werror=sizeof-pointer-memaccess]
memset (statbuf, 0, sizeof (statbuf));
^
cc1.exe: all warnings being treated as errors
make[5]: *** [bfdio.lo] Error 1
make[5]: Leaving directory `/drive/b/build-binutils-m68k-elf-2.21/bfd'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/drive/b/build-binutils-m68k-elf-2.21/bfd'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/drive/b/build-binutils-m68k-elf-2.21/bfd'
make[2]: *** [all-bfd] Error 2
make[2]: Leaving directory `/drive/b/build-binutils-m68k-elf-2.21'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/drive/b/build-binutils-m68k-elf-2.21'
make: *** [build-m68k-binutils] Error 2
../../binutils-2.21/bfd/bfdio.c: In function 'memory_bstat':
../../binutils-2.21/bfd/bfdio.c:580:30: error: argument to 'sizeof' in 'memset'
call is the same expression as the destination; did you mean to dereference it?
[-Werror=sizeof-pointer-memaccess]
memset (statbuf, 0, sizeof (statbuf));
^
cc1.exe: all warnings being treated as errors
make[5]: *** [bfdio.lo] Error 1
make[5]: Leaving directory `/drive/b/build-binutils-m68k-elf-2.21/bfd'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/drive/b/build-binutils-m68k-elf-2.21/bfd'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/drive/b/build-binutils-m68k-elf-2.21/bfd'
make[2]: *** [all-bfd] Error 2
make[2]: Leaving directory `/drive/b/build-binutils-m68k-elf-2.21'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/drive/b/build-binutils-m68k-elf-2.21'
make: *** [build-m68k-binutils] Error 2
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
-
- Interested
- Posts: 30
- Joined: Mon May 06, 2013 2:27 am
- Location: Vermont, USA
-
- Interested
- Posts: 30
- Joined: Mon May 06, 2013 2:27 am
- Location: Vermont, USA