Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Error building AT91 GNU sample project - "struct _reent"
PostPosted: Fri Jan 23, 2009 2:24 am 
Offline

Joined: Fri Jan 23, 2009 2:10 am
Posts: 4
Hi AT91,

I am trying to build an AT91 GNU sample project, "getting-started-project-at91sam7x-ek". Here is the problem code.

Code:
//------------------------------------------------------------------------------
//         Global Variables
//------------------------------------------------------------------------------

// Required for proper compilation.
struct _reent r = {0, (FILE *) 0, (FILE *) 1, (FILE *) 0};
struct _reent *_impure_ptr = &r;


The code is in ../at91lib/utility/stdio.c:64, however "struct _reent" is not defined in this source or any included headers, resulting in "error: variable 'r' has initializer but incomplete type". I am using the latest CodeSourcery G++ Lite toolchain on Linux. Searching Google doesn't provide any useful clues, please can you help me?

Best regards,

weartronics


Top
 Profile  
 
 Post subject: Re: Error building AT91 GNU sample project - "struct _reent"
PostPosted: Sat Jan 24, 2009 3:23 am 
Offline

Joined: Fri Jan 23, 2009 2:10 am
Posts: 4
I have not resolved this problem, but a workaround appears to be to use the GNUARM toolchain.


Top
 Profile  
 
 Post subject: Re: Error building AT91 GNU sample project - "struct _reent"
PostPosted: Wed Dec 16, 2009 9:11 am 
Offline

Joined: Mon Dec 12, 2005 10:36 am
Posts: 1
hi,

This error is linux gcc tools

try windows gcc tools

ok?

bye~~


Top
 Profile  
 
 Post subject: Re: Error building AT91 GNU sample project - "struct _reent"
PostPosted: Tue May 04, 2010 11:42 am 
Offline

Joined: Tue May 04, 2010 11:11 am
Posts: 1
I have the same Problem. Is their still no solution ???


Top
 Profile  
 
 Post subject: Re: Error building AT91 GNU sample project - "struct _reent"
PostPosted: Thu May 06, 2010 2:27 pm 
Offline

Joined: Thu Jul 23, 2009 9:17 am
Posts: 18
The new bootstrap for the at91sam9g20 has the same problem. Seems that it can only be built with the CodeSourcery toolchain. Not very nice.
I have a toolchain under linux (using buildroot). Building the old bootstrap there is no problem, but the new one has this problem.
I really don't want to use CodeSourcery just for one bootstrap.


Top
 Profile  
 
 Post subject: Re: Error building AT91 GNU sample project - "struct _reent"
PostPosted: Tue May 11, 2010 12:50 pm 
Offline

Joined: Thu Jul 23, 2009 9:17 am
Posts: 18
I asked the Atmel support and just got this link as an answer: http://support.atmel.no/bin/customer?=& ... try&id=898
It seems to be not possible to use something else than the CodeSourcery Toolchain.
Not nice, but there is no other solution.


Top
 Profile  
 
 Post subject: Re: Error building AT91 GNU sample project - "struct _reent"
PostPosted: Tue Aug 10, 2010 9:00 am 
Offline

Joined: Tue Aug 10, 2010 8:43 am
Posts: 1
It looks like you have to use exactly the right version of compiler: To get sam-ba applets to compile under linux I had to use Sourcery G++ Lite 2008q3-39 for ARM EABI from http://www.codesourcery.com/sgpp/lite/a ... release567 Anything newer or older gave (different) errors.


Top
 Profile  
 
 Post subject: Re: Error building AT91 GNU sample project - "struct _reent"
PostPosted: Thu Mar 24, 2011 10:17 pm 
Offline

Joined: Sun Jan 23, 2011 7:18 pm
Posts: 12
Yep, this version works. Thanks a lot, I appreciate it.


[quote="andi"]It looks like you have to use exactly the right version of compiler: To get sam-ba applets to compile under linux I had to use Sourcery G++ Lite 2008q3-39 for ARM EABI from http://www.codesourcery.com/sgpp/lite/a ... release567 Anything newer or older gave (different) errors.[/quote]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: