[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem building RTEMS4.10



Hi,

As a work around, we commented below code in "bspstart.c" available at below location and the "make all" was successful.


\rtems-4.10.0\c\src\lib\libbsp\m68k\genmcf548x\startup

/* Switch on FPU in CACR shadow register if necessary */
  if ((Configuration_POSIX_API.number_of_initialization_threads > 0) ||
      ((Configuration_RTEMS_API.number_of_initialization_tasks > 0) &&
       (Configuration_RTEMS_API.User_initialization_tasks_table
        ->attribute_set & RTEMS_FLOATING_POINT) != 0)
      ) {
    _CPU_cacr_shadow &= ~MCF548X_CACR_DF;
  }

Thanks & Regards,

Viral Shah
Specialist(Software) - Product Engineering Services,
Patni Computer Systems Ltd,
IT1/IT2 Patni Knowledge Park (PKP),
Block C, 2nd Floor, Wing A (C2A),
Thane Belapur Road, Airoli,
Navi Mumbai 400 708.
Tel: +91 22 3917 2000 Ext 4203
Tel(Direct): +91 22 3917 4203
Patni Link Line: 9-625-4403

-----Original Message-----
From: rtems-users-bounces at rtems.org [mailto:rtems-users-bounces at rtems.org] On Behalf Of rtems-users-request at rtems.org
Sent: Monday, March 07, 2011 11:30 PM
To: rtems-users at rtems.org
Subject: rtems-users Digest, Vol 54, Issue 9

Send rtems-users mailing list submissions to
        rtems-users at rtems.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.rtems.org/mailman/listinfo/rtems-users
or, via email, send a message with subject or body 'help' to
        rtems-users-request at rtems.org

You can reach the person managing the list at
        rtems-users-owner at rtems.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rtems-users digest..."


Today's Topics:

   1. Re: rtems application tutorial (Luc ANTOLINOS)
   2. CPP setting in make/compilers/gcc-target-default.cfg has
      -Wp,$$? (Peter Dufault)
   3. Re: gdb+qemu+rtems: Problem #2 in offset computation
      (Joel Sherrill)
   4. Re: Problem building RTEMS4.10 (Sebastian Huber)
   5. Re: CPP setting in make/compilers/gcc-target-default.cfg has
      -Wp,$$? (Ralf Corsepius)
   6. Re: CPP setting in make/compilers/gcc-target-default.cfg has
      -Wp,$$? (Peter Dufault)
   7. Re: Problem building RTEMS4.10 (Joel Sherrill)


----------------------------------------------------------------------

Message: 1
Date: Mon, 7 Mar 2011 11:13:20 +0100
From: Luc ANTOLINOS <luciogistr at gmail.com>
To: Domenico Di Leo <domenico.dileo at unina.it>
Cc: rtems-users at rtems.com
Subject: Re: rtems application tutorial
Message-ID:
        <AANLkTimaS4sQG114wWBUmcrrv6s2s0kxZN4Htwk2HbmD at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On 7 March 2011 09:03, Domenico Di Leo <domenico.dileo at unina.it> wrote:
> Hi,
> can you point me out any tutorial on how to write and execute an application
> from the scratch for RTEMS.
> I already checked the ?Application C user guide, it is a good reference, but
> it doesn't
> help me to understand how to compile the application (what compiler should I
> use? ?is there any specific rule for the Makefile?)

http://www.rtems.org/ftp/pub/rtems/4.10.0/examples-v2-4.10.0.tar.bz2

You will find a simple hello world and a simple Makefile. Not a
tutorial but enough to understand all you need.
But before to launch executables, you have to determine on which kind
of target you want to run, etc. Compilers and BSP are target
specifics.

--
Luc



------------------------------

Message: 2
Date: Mon, 7 Mar 2011 06:57:28 -0500
From: Peter Dufault <dufault at hda.com>
To: "rtems-users at rtems.org List" <rtems-users at rtems.org>
Subject: CPP setting in make/compilers/gcc-target-default.cfg has
        -Wp,$$?
Message-ID: <19706997-DA38-4AEC-959C-AD0D7FFB4000 at hda.com>
Content-Type: text/plain; charset=us-ascii

With this:
# CPP command to write file to standard output
CPP=$(CC) -E -w -Wp,-$$

I'm having problems in a configure script:

configure:4305: powerpc-rtems4.11-gcc -E -w -Wp,-$  conftest.c
cc1: error: unrecognized command line option "-$"

Anyone know what's up?

Peter
-----------------
Peter Dufault
HD Associates, Inc.      Software and System Engineering



------------------------------

Message: 3
Date: Mon, 7 Mar 2011 06:14:38 -0600
From: Joel Sherrill <joel.sherrill at OARcorp.com>
To: Domenico Di Leo <domenico.dileo at unina.it>, "rtems-users at rtems.com"
        <rtems-users at rtems.com>
Subject: Re: gdb+qemu+rtems: Problem #2 in offset computation
Message-ID: <0l61totmavtg92xlwtbiogyp.1299499833786 at email.android.com>
Content-Type: text/plain; charset="utf-8"

There are (were) five reasons the timer calibation could fail on pc386. It did appear to happen in qemu and not on real hardware and in qemu inside a vm more than just qemu. It is something to do with the simulated timer jumping.  I doubt changing the amount of memory helps. It is rather random. Run again and it may not happen.

FWIW I committed a fix to the head where if it hits this situation, it will retry five times before locking up. Should help. Maybe I should apply this to the release branches.

--joel

Domenico Di Leo <domenico.dileo at unina.it> wrote:

>Hi
>I have experienced the same problem.
>My solution was really simple, since I started RTMES with qemu (on a
>Fedora virtual machine)
>with the command qemu -m 128  -boot a ...
>I removed the "m" flag -> qemu -boot a ...  and it worked :)
>Hope this helps other users.
>D.
>
>--
>Domenico Di Leo, PhD student, Universit? degli Studi di Napoli Federico II
>Ph:     +39 081 676770
>Fax:    +39 081 676574
>Web: http://wpage.unina.it/domenico.dileo (WP)
>
>_______________________________________________
>rtems-users mailing list
>rtems-users at rtems.org
>http://www.rtems.org/mailman/listinfo/rtems-users



------------------------------

Message: 4
Date: Mon, 07 Mar 2011 13:39:57 +0100
From: Sebastian Huber <sebastian.huber at embedded-brains.de>
To: rtems-users at rtems.org
Subject: Re: Problem building RTEMS4.10
Message-ID: <4D74D21D.5080608 at embedded-brains.de>
Content-Type: text/plain; charset=ISO-8859-1

On 03/07/2011 10:20 AM, Shah, Viral wrote:
> *ction). *Has anyone faced similar problem? Can someone tell me what
> causes to give this error?

This is a bug in the BSP.  We will have to investigate this further.

--
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine gesch?ftliche Mitteilung im Sinne des EHUG.


------------------------------

Message: 5
Date: Mon, 07 Mar 2011 13:44:38 +0100
From: Ralf Corsepius <ralf.corsepius at rtems.org>
To: Peter Dufault <dufault at hda.com>
Cc: "rtems-users at rtems.org List" <rtems-users at rtems.org>
Subject: Re: CPP setting in make/compilers/gcc-target-default.cfg has
        -Wp,$$?
Message-ID: <4D74D336.30202 at rtems.org>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 03/07/2011 12:57 PM, Peter Dufault wrote:
> With this:
> # CPP command to write file to standard output
> CPP=$(CC) -E -w -Wp,-$$
>
> I'm having problems in a configure script:
>
> configure:4305: powerpc-rtems4.11-gcc -E -w -Wp,-$  conftest.c
> cc1: error: unrecognized command line option "-$"
>
> Anyone know what's up?

gcc-target-default.cfg is junk. Don't use it.

Ralf


------------------------------

Message: 6
Date: Mon, 7 Mar 2011 09:04:18 -0500
From: Peter Dufault <dufault at hda.com>
To: Ralf Corsepius <ralf.corsepius at rtems.org>
Cc: "rtems-users at rtems.org List" <rtems-users at rtems.org>
Subject: Re: CPP setting in make/compilers/gcc-target-default.cfg has
        -Wp,$$?
Message-ID: <727F0EF3-948D-4E8E-BDB3-D4766438497A at hda.com>
Content-Type: text/plain; charset=us-ascii


On Mar 7, 2011, at 7:44 , Ralf Corsepius wrote:

> gcc-target-default.cfg is junk. Don't use it.

It's included by leaf.cfg which is included in the demos, unless I'm very confused.

In a network-demo Makefile:
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
include $(RTEMS_CUSTOM)
include $(PROJECT_ROOT)/make/leaf.cfg

In leaf.cfg:
# Pull in the desired "target" compiler
# Programs built on the host use automake generated rules.
# This will not change $(ARCH) -- binaries will still be place as per target
include ${CONFIG.CC}

Adding an echo to the network-demo Makefile:
[dufault at finny12 rtems_main]$ make echo_config_cc
CONFIG.CC=/opt/rtems-4.11/make/compilers/gcc-target-default.cfg
[dufault at finny12 rtems_main]$

Peter
-----------------
Peter Dufault
HD Associates, Inc.      Software and System Engineering




------------------------------

Message: 7
Date: Mon, 7 Mar 2011 08:13:04 -0600
From: Joel Sherrill <joel.sherrill at OARcorp.com>
To: Sebastian Huber <sebastian.huber at embedded-brains.de>
Cc: "rtems-users at rtems.org" <rtems-users at rtems.org>
Subject: Re: Problem building RTEMS4.10
Message-ID: <4D74E7F0.1020702 at oarcorp.com>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed

On 03/07/2011 06:39 AM, Sebastian Huber wrote:
> On 03/07/2011 10:20 AM, Shah, Viral wrote:
>> *ction). *Has anyone faced similar problem? Can someone tell me what
>> causes to give this error?
> This is a bug in the BSP.  We will have to investigate this further.
>
If you configure without the --disable-posix,
it will get around this.

Also you can use --enable-rtemsbsp=XXX to configure
a specific BSP

--
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985




------------------------------

_______________________________________________
rtems-users mailing list
rtems-users at rtems.org
http://www.rtems.org/mailman/listinfo/rtems-users


End of rtems-users Digest, Vol 54, Issue 9
******************************************

Information contained and transmitted by this e-mail is confidential and proprietary to Patni Computer Systems Ltd and its affiliates (hitherto referred as Patni Computers) and is intended for use only by the recipient. If you are not the intended recipient , you are hereby notified that any dissemination, distribution,  copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or netadmin at patni.com. Patni Computers does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of Patni Computers. Patni Computers is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While Patni Computers has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about Patni Computers please visit www.patni.com.