public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [ECOS] Problem building redboot
@ 2010-04-15 20:24 Mikhail Matusov
  0 siblings, 0 replies; 6+ messages in thread
From: Mikhail Matusov @ 2010-04-15 20:24 UTC (permalink / raw)
  To: ecos-discuss

Should anyone be interested, it seems to be a bug in the Configuration Tool. 
If I run the same makefile from the shell (Tools/Shell) it works fine i.e. 
the environment variable is properly recognized and the include paths in the 
compiler call are correct. If I run it by Build/Library (F7) the environment 
variable appears to be empty.


/Mikhail 


-- 
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] 6+ messages in thread

* Re: [ECOS] Problem building redboot
@ 2010-04-14 22:24 Mikhail Matusov
  0 siblings, 0 replies; 6+ messages in thread
From: Mikhail Matusov @ 2010-04-14 22:24 UTC (permalink / raw)
  To: ecos-discuss

OK, I found a few configurations which build cleanly, so my toolchain is 
basically working.

I believe my problem has to do with how the HW_DESIGN environment variable 
is being exported and/or how it is interpreted. First, I moved the export 
sentence to the .bashrc file to make sure that the variable is available in 
all child processes. However, the make or compiler still doesn't see it...

Here is an excerpt from the hal_powerpc_virtex4.cdl showing where $HW_DESIGN 
is introduced

        cdl_option CYGBLD_GLOBAL_CFLAGS {
            display "Global compiler flags"
            flavor  data
            no_define
            default_value { 
"-I$HW_DESIGN -I$HW_DESIGN/ppc405_0/include -I$ECOS_EXTRA -DVIRTEX4 -msoft-float 
 -mcpu=405 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual 
 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc" 
 }
            description   "
                This option controls the global compiler flags which
                are used to compile all packages by
                default. Individual packages may define
                options which override these global flags."
        }

I can see that these CFLAGS are shown correctly under the Build/Options in 
the configuration tool, however when compiler is called the variable seems 
to be empty:

powerpc-eabi-gcc -finline-limit=7000 -I -I/ppc405_0/include -I -DVIRTEX4 -msoft-float 
 -mcpu=405 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual 
 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -I/opt/ML403-misc/ml403-minimal_install/include 
 -I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current -I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src 
 -I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/tests -I. -Wp,-MD,ppc_offsets.tmp 
 -o hal_mk_defs.tmp -S 
/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src/hal_mk_defs.c

Some of the compiler flags (e.g. fvtable-gc) seem to have disappeared as 
well...


Running bash from Tools/Shell I can see that it is set and visible:

bash-3.2$ echo $HW_DESIGN
/opt/ML403-redboot/bsp/

So, what's going on here?..


Thanks,
/Mikhail




-- 
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] 6+ messages in thread

* Re: [ECOS] Problem building redboot
  2010-04-13 12:23   ` Gary Thomas
  2010-04-13 15:57     ` Mikhail Matusov
@ 2010-04-13 19:34     ` Mikhail Matusov
  1 sibling, 0 replies; 6+ messages in thread
From: Mikhail Matusov @ 2010-04-13 19:34 UTC (permalink / raw)
  To: ecos-discuss

I tried building RedBoot for other targets to verify my toolchain, every 
time getting different errors, mostly some undefined macros. The last I 
tried was PowerPC simulator. Here is what I get in this case:

=======================
headers finished
cc1: warning: command line option "-Woverloaded-virtual" is valid for 
C++/ObjC++ but not for C
make -r -C hal/powerpc/arch/current 
/opt/ppc-sim/ppc-sim-redboot_install/include/cyg/hal/ppc_offsets.inc
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but 
not for C
make[1]: Entering directory 
`/opt/ppc-sim/ppc-sim-redboot_build/hal/powerpc/arch/current'
In file included from 
/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src/hal_mk_defs.c:58:
powerpc-eabi-gcc -finline-limit=7000 -Wall -Wpointer-arith -Wstrict-prototypes 
 -Wundef -Woverloaded-virtual -Wno-write-strings -mcpu=603 -msoft-float -g -O2 
 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -I/opt/ppc-sim/ppc-sim-redboot_install/include 
 -I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current -I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src 
 -I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/tests -I. -Wp,-MD,ppc_offsets.tmp 
 -o hal_mk_defs.tmp -S 
/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src/hal_mk_defs.c
/opt/ppc-sim/ppc-sim-redboot_install/include/cyg/hal/hal_intr.h:436:2: 
error: #error "You are not using and interrupt controller! dummy functions 
will be used"
make[1]: Leaving directory 
`/opt/ppc-sim/ppc-sim-redboot_build/hal/powerpc/arch/current'
make[1]: *** 
[/opt/ppc-sim/ppc-sim-redboot_install/include/cyg/hal/ppc_offsets.inc] Error 
1
make: Leaving directory `/opt/ppc-sim/ppc-sim-redboot_build'
make: *** [build] Error 2
=======================

So, I was wondering, is there a target that should give me a clean build to 
confirm that my toolchain is working before I dig deeper?

Thanks,
/Mikhail 


-- 
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] 6+ messages in thread

* Re: [ECOS] Problem building redboot
  2010-04-13 12:23   ` Gary Thomas
@ 2010-04-13 15:57     ` Mikhail Matusov
  2010-04-13 19:34     ` Mikhail Matusov
  1 sibling, 0 replies; 6+ messages in thread
From: Mikhail Matusov @ 2010-04-13 15:57 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

Gary,

Thanks for your help.

> * What target?

The target is a Xilinx ML403 Virtex4 target added with a patch. Perhaps this 
is the root of the problem... The patch was created against much older eCos 
sources.

> * What host/build platform?

Windows XP, cygwin 1.7.3

> * How did you configure the build?

Basically I follow the instructions in COMPILING REDBOOT  chapter in 
ecos-ML403-miniHOWTO.txt found here:
http://typo3.cs.uni-paderborn.de/fileadmin/Informatik/AG-Platzner/Research/ReconOS/eCos-ML403/ecos-ML403-miniHOWTO.txt

$ export HW_DESIGN=/opt/ML403-redboot/bsp/
$ cd /opt/ecos/ecos-anoncvs
$ /opt/ecos/ecos-3.0/tools/bin/configtool

And then I do exactly what is said in the guide... except for I couldn't 
edit target.ld script as it's not there, but I left this problem for 
later...

> * What are the errors?

The errors is that the compiler can't find a header file in BSP. For some 
reason the $HW_DESIGN variable is omitted in the compiler call:
-I/ppc405_0/include should be -I$HW_DESIGN/ppc405_0/include

================
make -r -C hal/powerpc/arch/current 
/opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/ppc_offsets.inc
make[1]: Entering directory 
`/opt/ML403-redboot/ml403-redboot_build/hal/powerpc/arch/current'
powerpc-eabi-gcc -finline-limit=7000 -I -I/ppc405_0/include -I -DVIRTEX4 -msoft-float 
 -mcpu=405 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual 
 -g -O2

-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions   -I/opt/ML403-redboot/ml403-redboot_install/include 
 -I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current

-I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src -I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/tests 
 -I. -Wp,-MD,ppc_offsets.tmp -o

hal_mk_defs.tmp -S 
/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src/hal_mk_defs.c
cc1: warning: command line option "-Woverloaded-virtual" is valid for 
C++/ObjC++ but not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but 
not for C
make[1]: Leaving directory 
`/opt/ML403-redboot/ml403-redboot_build/hal/powerpc/arch/current'
In file included from 
/opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/var_intr.h:58,
make: Leaving directory `/opt/ML403-redboot/ml403-redboot_build'
                 from 
/opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/hal_intr.h:68,
                 from 
/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src/hal_mk_defs.c:58:
/opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/plf_intr.h:64:25: 
error: xparameters.h: No such file or directory
/opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/plf_intr.h:65:37: 
error: xparameters_translation.h: No such file or directory
/opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/plf_intr.h:66:21: 
error: xintc_l.h: No such file or directory
.....etc....
================


Thanks,
/Mikhail


-- 
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] 6+ messages in thread

* Re: [ECOS] Problem building redboot
  2010-04-13  0:03 ` [ECOS] Problem building redboot Mikhail Matusov
@ 2010-04-13 12:23   ` Gary Thomas
  2010-04-13 15:57     ` Mikhail Matusov
  2010-04-13 19:34     ` Mikhail Matusov
  0 siblings, 2 replies; 6+ messages in thread
From: Gary Thomas @ 2010-04-13 12:23 UTC (permalink / raw)
  To: Mikhail Matusov; +Cc: ecos-discuss

On 04/12/2010 06:00 PM, Mikhail Matusov wrote:
> Dear experts,

"experts" possibly, "mind readers" hardly

>
> I am trying to build RedBoot with the GUI configtool and I am
> experiencing some problems with the include paths. I can't figure out
> why the paths are wrong when the compiler is called and I don't know
> where some of the flags come from as well... The makefile pointed by the
> make seems correct, however it seems that there is another source for
> all these settings, which I haven't been able to track down so far...
>
> I am working with the toolchain from ecos-3.0 and the latest anonymous
> cvs checkout.

Without some details, we can't help much...

* What target?
* What host/build platform?
* How did you configure the build?
* What are the errors?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
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] 6+ messages in thread

* [ECOS] Problem building redboot
  2010-04-12  4:28 [ECOS] eCos Newbie stuck Aziz Bodal
@ 2010-04-13  0:03 ` Mikhail Matusov
  2010-04-13 12:23   ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Mikhail Matusov @ 2010-04-13  0:03 UTC (permalink / raw)
  To: ecos-discuss

Dear experts,


I am trying to build RedBoot with the GUI configtool and I am experiencing 
some problems with the include paths. I can't figure out why the paths are 
wrong when the compiler is called and I don't know where some of the flags 
come from as well... The makefile pointed by the make seems correct, however 
it seems that there is another source for all these settings, which I 
haven't been able to track down so far...

I am working with the toolchain from ecos-3.0 and the latest anonymous cvs 
checkout.


Thanks,
/Mikhail 


-- 
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] 6+ messages in thread

end of thread, other threads:[~2010-04-15 20:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-15 20:24 [ECOS] Problem building redboot Mikhail Matusov
  -- strict thread matches above, loose matches on Subject: below --
2010-04-14 22:24 Mikhail Matusov
2010-04-12  4:28 [ECOS] eCos Newbie stuck Aziz Bodal
2010-04-13  0:03 ` [ECOS] Problem building redboot Mikhail Matusov
2010-04-13 12:23   ` Gary Thomas
2010-04-13 15:57     ` Mikhail Matusov
2010-04-13 19:34     ` Mikhail Matusov

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).