EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: epics on beaglebone
From: Takashi OBINA <[email protected]>
To: [email protected]
Date: Mon, 24 Feb 2014 14:10:21 +0900
Hi Pete,

We are using BeableBone Black as a 4-port RS232 Server with EPICS,
which isrunning on the Angstrom Linux.

If there are no particular reason, I recommend to use EPICS version later than 3.14.12.3.
Native linux-arm builds are added after the version and we don't need to create new target like linux-armv7l.
We only needed to install some perl pakcages on the host.

Best Regards,
Takashi Obina

(2014/02/24 10:23), D Peter Siddons wrote:
OK, it seems I was not including CONFIG.gnuCommon anywhere. Making a copy of CONFIG.linux-x86.linux-x86 into CONFIG.linux-armv7l.linux-armv7l seemed to fix things. I was able to build and run the example app. I still need to back out some of my kludges but I'm happy now :)
THanks for the hints :)
Pete.

On 02/23/2014 05:15 PM, Mark Rivers wrote:

Or perhaps "ar" has been aliased to be "ar --C" or something? Make sure "ar" is not an alias.


*From:*D Peter Siddons [mailto:[email protected]]
*Sent:* Sunday, February 23, 2014 4:02 PM
*To:* Mark Rivers; Mooney, Tim M.; EPICS
*Subject:* Re: epics on beaglebone

Hi Mark,
  Right, as usual :) I put a CCC = g++ in one of the config files and now it compiles c++ files.

Next problem:

ar   libCom.a         bucketLib.o epicsRingPointer.o epicsRingBytes.o postfix.o calcPerform.o cvtFast.o resourceLib.o epic
sOnce.o epicsSingletonMutex.o dbmf.o ellLib.o envSubr.o envData.o errlog.o errSymLib.o errSymTbl.o fdmgr.o fdManager.o fre
eListLib.o gpHashLib.o iocsh.o registry.o libComRegister.o iocLog.o logClient.o macCore.o macEnv.o macUtil.o aToIPAddr.o a
djustment.o cantProceed.o epicsConvert.o epicsExit.o epicsStdlib.o epicsString.o truncateFile.o ipAddrToAsciiAsynchronous.
o epicsUnitTest.o epicsThread.o epicsMutex.o epicsEvent.o epicsTime.o epicsMessageQueue.o epicsMath.o epicsGeneralTime.o o
siClockTime.o osdSock.o osdSockAddrReuse.o osiSock.o systemCallIntMech.o epicsSocketConvertErrnoToString.o osdAssert.o osd
FindSymbol.o osdInterrupt.o osdPoolStatus.o osdSignal.o osdEnv.o epicsReadline.o epicsTempFile.o epicsStdio.o osdStdio.o o
sdThread.o osdMutex.o osdEvent.o osdTime.o osdProcess.o osdNetIntf.o osdMessageQueue.o devLibVME.o devLibVMEOSD.o taskwd.o
 epicsTimer.o timer.o timerQueue.o timerQueueActive.o timerQueueActiveMgr.o timerQueuePassive.o tsDefs.o
ar: illegal option -- C

What is wrong with the above?
Pete.

On 02/23/2014 03:14 PM, Mark Rivers wrote:

    Hi Pete,

    I think the difference is that it worked to compile a .c file, it
    fails to compile a .cpp file.

    I suspect the configuration of the command to use for C++
    compiling in base/configure/os/YOUR_ARCH is incorrect.

    Mark

    *From:*[email protected]
    <mailto:[email protected]>
    [mailto:[email protected]] *On Behalf Of *D Peter Siddons
    *Sent:* Sunday, February 23, 2014 2:11 PM
    *To:* Mooney, Tim M.; EPICS
    *Subject:* Re: epics on beaglebone

    Hi Tim,
      Here's some support for my theory. Another snippet shows that
    occasionally it doesn't get truncated. First one is, second one isn't.

    c  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
    -D_XOPEN_SOURCE=500           -D_ARM_NWFP_  -DUNIX -D_BSD_SOURCE
    -Dlinux  -D_R
    EENTRANT                 -I. -I../O.Common -I.
    -I../../../src/libCom/osi/os/Linux
    -I../../../src/libCom/osi/os/posix -I../../
    ../src/libCom/osi/os/default -I.. -I../../../src/libCom/bucketLib
    -I../../../src/libCom/ring -I../../../src/libCom/calc -I../
    ../../src/libCom/cvtFast -I../../../src/libCom/cppStd
    -I../../../src/libCom/cxxTemplates -I../../../src/libCom/dbmf
    -I../../.
    ./src/libCom/ellLib -I../../../src/libCom/env
    -I../../../src/libCom/error -I../../../src/libCom/fdmgr
    -I../../../src/libCom/f
    reeList -I../../../src/libCom/gpHash -I../../../src/libCom/iocsh
    -I../../../src/libCom/logClient -I../../../src/libCom/macLib
     -I../../../src/libCom/misc -I../../../src/libCom/osi
    -I../../../src/libCom/taskwd -I../../../src/libCom/timer
    -I../../../src
    /libCom/tsDefs -I../../../include/os/Linux -I../../../include
    ../../../src/libCom/osi/os/posix/osdTime.cpp
    make[3]: c: Command not found
    make[3]: [osdTime.o] Error 127 (ignored)

    cc -c  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
    -D_XOPEN_SOURCE=500           -D_ARM_NWFP_  -DUNIX -D_BSD_SOURCE
    -Dlinux
    -D_REENTRANT                 -I. -I../O.Common -I.
    -I../../../src/libCom/osi/os/Linux
    -I../../../src/libCom/osi/os/posix -I..
    /../../src/libCom/osi/os/default -I..
    -I../../../src/libCom/bucketLib -I../../../src/libCom/ring
    -I../../../src/libCom/calc -
    I../../../src/libCom/cvtFast -I../../../src/libCom/cppStd
    -I../../../src/libCom/cxxTemplates -I../../../src/libCom/dbmf -I../
    ../../src/libCom/ellLib -I../../../src/libCom/env
    -I../../../src/libCom/error -I../../../src/libCom/fdmgr
    -I../../../src/libC
    om/freeList -I../../../src/libCom/gpHash
    -I../../../src/libCom/iocsh -I../../../src/libCom/logClient
    -I../../../src/libCom/ma
    cLib -I../../../src/libCom/misc -I../../../src/libCom/osi
    -I../../../src/libCom/taskwd -I../../../src/libCom/timer -I../../..
    /src/libCom/tsDefs -I../../../include/os/Linux -I../../../include
    ../../../src/libCom/osi/os/default/osdNetIntf.c

    On 02/23/2014 01:33 PM, Mooney, Tim M. wrote:

        Hi Pete,

        I don't know anything about Beaglebone, but this just looks
        wrong.

        Is the C compiler executable on Beaglebone really named "c",
        and not, say, "cc" or "gcc"?

        Tim

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

        *From:*[email protected]
        <mailto:[email protected]>
        [[email protected]
        <mailto:[email protected]>] on behalf of D Peter
        Siddons [[email protected] <mailto:[email protected]>]
        *Sent:* Sunday, February 23, 2014 11:45 AM
        *To:* EPICS
        *Subject:* epics on beaglebone

        I want to install EPICS on a Beaglebone board. I simply copied
        the working install of 3.14.12.2 from my laptop to the
        Beaglebone, added configs for linux-armv7l, did a make clean
        uninstall and make. I think there must be some buffer issues
        with either bash or make, since the compile statements are
        truncated: see the attached screenshot. Anyone else installed
        EPICS on Beaglebone? SOme versions info below.
        THanks,
        Pete.

        /usr/local/epics# uname -a
        Linux beaglebone 3.2.28 #1 Tue Sep 11 13:08:30 CEST 2012
        armv7l GNU/Linux

        /usr/local/epics# gcc -v
        Using built-in specs.
        COLLECT_GCC=gcc
        COLLECT_LTO_WRAPPER=/usr/libexec/gcc/arm-angstrom-linux-gnueabi/4.5.4/lto-wrapper
        Target: arm-angstrom-linux-gnueabi
        Configured with:
        /home/koen/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work-shared/gcc-4.5-r49+svnr1849t
        Thread model: posix
        gcc version 4.5.4 20120305 (prerelease) (GCC)

        /usr/local/epics# make -v
        GNU Make 3.82
        Built for arm-angstrom-linux-gnueabi
        Copyright (C) 2010  Free Software Foundation, Inc.
        License GPLv3+: GNU GPL version 3 or later
        <http://gnu.org/licenses/gpl.html>
        <http://gnu.org/licenses/gpl.html>
        This is free software: you are free to change and redistribute it.
        There is NO WARRANTY, to the extent permitted by law.



        -------- Original Message --------

        *Subject: *



        beagle screenshot

        *Date: *



        Sun, 23 Feb 2014 12:36:46 -0500

        *From: *



        Siddons, David <[email protected]> <mailto:[email protected]>

        *To: *



        Siddons, David <[email protected]> <mailto:[email protected]>




        --
        D. Peter Siddons

        Detector Development Group Leader

        Bldg. 535B

        Photon Sciences Directorate,

        Brookhaven National Laboratory

        Upton, NY 11973


        email:[email protected]  <mailto:[email protected]>

        Phone: (631) 344-2738




    --
    D. Peter Siddons

    Detector Development Group Leader

    Bldg. 535B

    Photon Sciences Directorate,

    Brookhaven National Laboratory

    Upton, NY 11973


    email:[email protected]  <mailto:[email protected]>

    Phone: (631) 344-2738



--
D. Peter Siddons
Detector Development Group Leader
Bldg. 535B
Photon Sciences Directorate,
Brookhaven National Laboratory
Upton, NY 11973
email:[email protected]  <mailto:[email protected]>
Phone: (631) 344-2738



--
Takashi OBINA ([email protected])
  Phone 029-864-5200 -> 4526;  Fax: 029-864-2801


Replies:
Re: epics on beaglebone D Peter Siddons
References:
epics on beaglebone D Peter Siddons
RE: epics on beaglebone Mooney, Tim M.
Re: epics on beaglebone D Peter Siddons
RE: epics on beaglebone Mark Rivers
Re: epics on beaglebone D Peter Siddons
RE: epics on beaglebone Mark Rivers
Re: epics on beaglebone D Peter Siddons

Navigate by Date:
Prev: Re: epics on beaglebone D Peter Siddons
Next: Re: Waveform record I/O interrupt. asyn Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: epics on beaglebone D Peter Siddons
Next: Re: epics on beaglebone D Peter Siddons
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·