Go to Post "It doesn't matter what you think happened, what the Ref calls (or doesn't) is what happened. The judgement of the Ref is part of the game, live with it or don't play." - ChrisH [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2016, 18:53
vigneshv vigneshv is offline
Registered User
FRC #2489
 
Join Date: Jan 2014
Location: United States
Posts: 53
vigneshv is on a distinguished road
Toolchain Installation on Mac OS X

Hi,
I was attempting to install the FRC 2016 Toolchain on Mac OS X, and, though it seemed to install correctly, when I attempt to compile any code, it gives me the following error:

Code:
wpilib/cpp/current/include/Base.h:65:18: fatal error: atomic: No such file or directory
 #include <atomic>
                  ^
However, sometimes the error points to "#include <iostream>" rather than atomic. Does anyone know of a fix to this problem?
  #2   Spotlight this post!  
Unread 11-02-2016, 23:49
kylelanman's Avatar
kylelanman kylelanman is offline
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 189
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
Re: Toolchain Installation on Mac OS X

Have you previously used Homebrew (e.g. brew install [package]) or installed gcc in some other manner?

One of the students on our team was able to install the 2016 tool chain and get it working with out any problems. When I tried I ran into the same problem you are having. I use Homebrew and the thing that seems suspicious is that the project is referencing some Homebrew include paths. I spent a couple of hours messing around with it and then gave up.
__________________
"May the coms be with you"

Is this a "programming error" or a "programmer error"?

  #3   Spotlight this post!  
Unread 14-02-2016, 00:20
vigneshv vigneshv is offline
Registered User
FRC #2489
 
Join Date: Jan 2014
Location: United States
Posts: 53
vigneshv is on a distinguished road
Re: Toolchain Installation on Mac OS X

Quote:
Originally Posted by kylelanman View Post
Have you previously used Homebrew (e.g. brew install [package]) or installed gcc in some other manner?

One of the students on our team was able to install the 2016 tool chain and get it working with out any problems. When I tried I ran into the same problem you are having. I use Homebrew and the thing that seems suspicious is that the project is referencing some Homebrew include paths. I spent a couple of hours messing around with it and then gave up.
Yes, I use homebrew pretty frequently, and I probably have messed with gcc, but I don't know for sure.

UPDATE:
I fixed it! It turns out that it was a problem with homebrew's gcc, as you suggested. I ran a
Code:
 brew uninstall gcc
and deleted all the FRC Toolchain related libraries and files (the ~/wpilib directory, and all the frc related files and folders under /usr/local). I then reinstalled the FRC Toolchain, and now the files build without errors. I was not able to get it to work until reinstalling the Toolchain, however, so I'm not exactly sure what the problem is. Maybe it chooses the gcc it wants to use at install time?

Note: uninstalling the homebrew gcc gave me this error, confirming the FRC toolchains had used it:

Code:
Error: Permission denied - /usr/local/Cellar/gcc/4.9.2_1/lib/gcc/arm-frc-linux-gnueabi/4.9.3/crt
begin.o
I had to run a
Code:
sudo brew uninstall --force gcc
to get it to uninstall.

Last edited by vigneshv : 14-02-2016 at 00:32.
  #4   Spotlight this post!  
Unread 17-02-2016, 00:52
kylelanman's Avatar
kylelanman kylelanman is offline
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 189
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
Re: Toolchain Installation on Mac OS X

Quote:
Originally Posted by vigneshv View Post
I had to run a
Code:
sudo brew uninstall --force gcc
to get it to uninstall.
This worked great. Thanks for passing it on.
__________________
"May the coms be with you"

Is this a "programming error" or a "programmer error"?

Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:43.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi