public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Building Redboot for Arm  processors and gcc4.0
@ 2005-06-29  1:36 stewart hamilton
  2005-06-29  6:33 ` [ECOS] " Jani Monoses
  0 siblings, 1 reply; 4+ messages in thread
From: stewart hamilton @ 2005-06-29  1:36 UTC (permalink / raw)
  To: ecos-discuss

Hi All,


Downloaded  the latest snapshots from

http://www.ecoscentric.com/devzone/snapshots.shtml

and down loaded  the  latest version of the configuration tool from

http://www.ecoscentric.com/devzone/configtool.shtml


My target is Atmel EB55.

I am able to build the default configuration.

But when I try  and build Redboot. I get an  error  due to the #error  at 
line 80  in
....\packages\hal\arm\arch\current\src\redboot_linux_exec.c


I was  under the impression that this problem had been fixed in releases 
after ecos 2.0...
see   thread  "Error building standard 
templates"   http://sourceware.org/ml/ecos-discuss/2005-05/msg00040.html



Also has  anybody tried building and using the ecos when compiled with 
gcc4.0.0  Particularly  with regard to ARM processors?
I am aware of the need to remove the -mno-short-load-words in the gcc 
options  etc.

I prefer to run with the latest stable release of gcc. So  wondering if 
anybody  has had any runtime issues.


Regards

Stewart


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ECOS]  Re: Building Redboot for Arm  processors and gcc4.0
  2005-06-29  1:36 [ECOS] Building Redboot for Arm processors and gcc4.0 stewart hamilton
@ 2005-06-29  6:33 ` Jani Monoses
  2005-06-29  8:21   ` John Eigelaar
  0 siblings, 1 reply; 4+ messages in thread
From: Jani Monoses @ 2005-06-29  6:33 UTC (permalink / raw)
  To: ecos-discuss

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

> 
> But when I try  and build Redboot. I get an  error  due to the #error  
> at line 80  in
> ....\packages\hal\arm\arch\current\src\redboot_linux_exec.c
> 
> 
> I was  under the impression that this problem had been fixed in releases 
> after ecos 2.0...
> see   thread  "Error building standard templates"   
> http://sourceware.org/ml/ecos-discuss/2005-05/msg00040.html
it's fixed in the redboot_ROM.ecm of your target so you need to either import that or 
modify the ecc by hand. I don't like linux_exec being enabled by default either.

> 
> 
> Also has  anybody tried building and using the ecos when compiled with 
> gcc4.0.0  Particularly  with regard to ARM processors?
> I am aware of the need to remove the -mno-short-load-words in the gcc 
> options  etc.

I think all I had to do is what's in the attahced patch, besides what you mention.
Most are warning fixes only those in redboot are errors IIRC.

> I prefer to run with the latest stable release of gcc. So  wondering if 
> anybody  has had any runtime issues.
I did not see anything particular.
Jani

[-- Attachment #2: ,l.diff --]
[-- Type: text/x-patch, Size: 3603 bytes --]

diff -Nur -x 'cscope*' -x CVS cvs/packages/infra/current/include/cyg_ass.h contrib/packages/infra/current/include/cyg_ass.h
--- cvs/packages/infra/current/include/cyg_ass.h	2004-04-13 17:39:00.000000000 +0300
+++ contrib/packages/infra/current/include/cyg_ass.h	2005-05-19 15:27:50.000000000 +0300
@@ -157,7 +157,7 @@
 // regions.
 
 externC cyg_bool cyg_check_data_ptr(const void *ptr);
-externC cyg_bool cyg_check_func_ptr(const void (*ptr)(void));
+externC cyg_bool cyg_check_func_ptr(void (*ptr)(void));
 
 #ifdef CYGDBG_USE_ASSERTS
 
diff -Nur -x 'cscope*' -x CVS cvs/packages/io/i2c/current/src/i2c.cxx contrib/packages/io/i2c/current/src/i2c.cxx
--- cvs/packages/io/i2c/current/src/i2c.cxx	2005-05-17 17:38:15.000000000 +0300
+++ contrib/packages/io/i2c/current/src/i2c.cxx	2005-05-20 13:02:23.000000000 +0300
@@ -97,7 +97,7 @@
 #ifdef CYGDBG_USE_ASSERTS
         bus->i2c_current_device = (const cyg_i2c_device*) 0;
 #endif        
-        if ((void (*)(const cyg_i2c_bus*))0 != bus->i2c_init_fn) {
+        if ((void (*)(cyg_i2c_bus*))0 != bus->i2c_init_fn) {
             (*bus->i2c_init_fn)(bus);
         }
     }
diff -Nur -x 'cscope*' -x CVS cvs/packages/isoinfra/current/include/unistd.h contrib/packages/isoinfra/current/include/unistd.h
--- cvs/packages/isoinfra/current/include/unistd.h	2004-04-13 17:39:00.000000000 +0300
+++ contrib/packages/isoinfra/current/include/unistd.h	2005-06-29 09:30:39.270840352 +0300
@@ -260,10 +260,10 @@
 extern long 	sysconf(int name);
 
 extern int 	vfork(void);
-extern int 	execl(char *path,...);
+extern int 	execl(char *path, char *arg, ...);
 extern int 	execv(char *path,char **argv);
-extern int 	execle(char *path,...);
-extern int 	execlp(char *file,...);
+extern int 	execle(char *path, char *arg, ...);
+extern int 	execlp(char *file, char *arg, ...);
 extern int 	execvp(char *file, char **argv);
 extern int 	execve(char *name, char **argv, char **envv);
 extern void 	_exit(int code);
diff -Nur -x 'cscope*' -x CVS cvs/packages/language/c/libc/string/current/src/strcmp.cxx contrib/packages/language/c/libc/string/current/src/strcmp.cxx
--- cvs/packages/language/c/libc/string/current/src/strcmp.cxx	2004-04-13 17:39:00.000000000 +0300
+++ contrib/packages/language/c/libc/string/current/src/strcmp.cxx	2005-06-29 09:31:13.795591792 +0300
@@ -83,8 +83,6 @@
 
     int retval;
 
-    CYG_UNUSED_PARAM( int, retval ); // in case tracing is off
-
 #if defined(CYGIMP_LIBC_STRING_PREFER_SMALL_TO_FAST) || defined(__OPTIMIZE_SIZE__)
     while (*s1 != '\0' && *s1 == *s2)
     {
diff -Nur -x 'cscope*' -x CVS cvs/packages/redboot/current/src/main.c contrib/packages/redboot/current/src/main.c
--- cvs/packages/redboot/current/src/main.c	2005-06-09 12:47:31.000000000 +0300
+++ contrib/packages/redboot/current/src/main.c	2005-06-29 09:17:48.000000000 +0300
@@ -394,7 +394,7 @@
                 CYGACC_CALL_IF_SET_CONSOLE_COMM(cur);
 
                 // set up a temporary context that will take us to the trampoline
-                HAL_THREAD_INIT_CONTEXT((CYG_ADDRWORD)workspace_end,
+                HAL_THREAD_INIT_CONTEXT(workspace_end,
                                         breakpoint, trampoline,0);
 
                 // switch context to trampoline (get GDB stubs started)
@@ -594,7 +594,7 @@
     HAL_ICACHE_INVALIDATE_ALL();
     HAL_DCACHE_INVALIDATE_ALL();
     // set up a temporary context that will take us to the trampoline
-    HAL_THREAD_INIT_CONTEXT((CYG_ADDRWORD)workspace_end, 
+    HAL_THREAD_INIT_CONTEXT(workspace_end, 
                             entry, trampoline, 0);
 
     // switch context to trampoline


[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ECOS]  Re: Building Redboot for Arm  processors and gcc4.0
  2005-06-29  6:33 ` [ECOS] " Jani Monoses
@ 2005-06-29  8:21   ` John Eigelaar
  2005-06-29  8:33     ` Jani Monoses
  0 siblings, 1 reply; 4+ messages in thread
From: John Eigelaar @ 2005-06-29  8:21 UTC (permalink / raw)
  To: ecos-discuss

On Wed, 29 Jun 2005 09:32:53 +0300, Jani Monoses wrote:


>> Also has  anybody tried building and using the ecos when compiled with 
>> gcc4.0.0  Particularly  with regard to ARM processors?
>> I am aware of the need to remove the -mno-short-load-words in the gcc 
>> options  etc.
> 
> I think all I had to do is what's in the attahced patch, besides what you mention.
> Most are warning fixes only those in redboot are errors IIRC.
> 
>> I prefer to run with the latest stable release of gcc. So  wondering if 
>> anybody  has had any runtime issues.
> I did not see anything particular.
Does this mean that ecos for ARM builds OK with gcc4.0 ?



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ECOS]  Re: Building Redboot for Arm  processors and gcc4.0
  2005-06-29  8:21   ` John Eigelaar
@ 2005-06-29  8:33     ` Jani Monoses
  0 siblings, 0 replies; 4+ messages in thread
From: Jani Monoses @ 2005-06-29  8:33 UTC (permalink / raw)
  To: ecos-discuss

John Eigelaar wrote:

> Does this mean that ecos for ARM builds OK with gcc4.0 ?
It builds ok with those patches, yes.


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-06-29  8:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-29  1:36 [ECOS] Building Redboot for Arm processors and gcc4.0 stewart hamilton
2005-06-29  6:33 ` [ECOS] " Jani Monoses
2005-06-29  8:21   ` John Eigelaar
2005-06-29  8:33     ` Jani Monoses

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).