• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » ARM® Processors » Sitara™ ARM® » AM3x Sitara ARM Processors Forum » Arago-project compile failure on ENOIOCTLCMD for AM335x EVM
Share
Sitara™ ARM®
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Arago-project compile failure on ENOIOCTLCMD for AM335x EVM

Arago-project compile failure on ENOIOCTLCMD for AM335x EVM

This question is answered
Benjamin Fitzpatrick
Posted by Benjamin Fitzpatrick
on Aug 07 2012 09:43 AM
Intellectual290 points

I am trying to compile the arago-project build that a TI engineer recommended to us. I am running on Ubuntu 10.04 LTS as recommended, and I downloaded the CodeSourcery Lite Toolchain (from Mentor Graphics) from 2011.03, the last G++ toolchain available.

When it tries to compile SysVInit, I get the message "error: 'ENOIOCTLCMD' undeclared". I have found a couple other instances of people having this issue on the internet, but nobody was able to answer their question. Why am I getting an undefined variable in source I haven't modifed, and what am I doing wrong?

AM335x Toolchain EVM arago
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Chase Maupin
    Posted by Chase Maupin
    on Aug 07 2012 10:26 AM
    Expert4890 points

    Benjamin,

    That CodeSourcery toolchain is not one I have ever used or which is used by Arago.  I would recommend you use the Arago toolchain from within the AM335x SDK.  In that case you need to add the toolchain in <SDK Install Dir>/linux-devkit/bin to your PATH, and make sure that your arago/conf/local.conf file sets TOOLCHAIN_BRAND to "arago".

    If you are looking for the exact meta data that matches the SDK build you would need to use the following git commands to checkout the AMSDK trees (with the proper naming) and then checkout the tags corresponding to your SDK.

    git clone git://arago-project.org/git/projects/arago-amsdk.git arago

    git clone git://arago-project.org/git/projects/arago-oe-amsdk.git arago-oe-dev

    In each checked out repo to a "git checkout amsdk-05.05.00.00-release" to get the tag corresponding to the 05.05.00.00 release.  You can use "git tag" to see the tags for all other releases.

    Chase

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Benjamin Fitzpatrick
    Posted by Benjamin Fitzpatrick
    on Aug 08 2012 09:23 AM
    Intellectual290 points

    Chase,

    Thanks for your quick reply, unfortunately it took a bit for me to put this together.

    I was following the instructions at http://arago-project.org/wiki/index.php/Setting_Up_Build_Environment, the only difference being that I used the most recent toolchain instead of the listed 2009q1-203 (listed here: http://arago-project.org/wiki/index.php/Getting_CodeSourcery_Toolchain), because I figured that forward toolchains would be compatible.

    Since that's not guaranteed, I went ahead and copied the toolchain from the 05.05 SDK, and checked out the versions you suggested. Trying to compile the head led to some interesting error messages, so I did the checkout to the branch for the 05.05 release and tried that - it still does not seem to work. I get an error where alsa-utils fails to compile because the library -lsamplerate is not found. I found an issue in PSP 04.06 where building ALSA as a module wasn't supported, but that doesn't appear to be the same thing.

    Any idea why the 'official' tag wouldn't compile?

    am335x arago sdk
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chase Maupin
    Posted by Chase Maupin
    on Aug 08 2012 09:53 AM
    Expert4890 points

    Benjamin,


    A couple of things:

    1. Please remove your arago-tmp and try rebuilding.  Do not build from the head of the trees I gave you as the head is not meant to be used, instead use the branches

    2. Please provide the details of how you did you setup.

    3. Please provide the error message you are seeing and what command you are trying to run.

    Chase

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Benjamin Fitzpatrick
    Posted by Benjamin Fitzpatrick
    on Aug 08 2012 10:28 AM
    Intellectual290 points

    Chase,

    Thanks again for you quick reply. To do the setup, I checked out the arago, arago-bitbake, and arago-oe-dev projects as listed in the setup guide here (http://arago-project.org/wiki/index.php/Setting_Up_Build_Environment). I tried building these using the method given in the guide, building arago-base-image first.

    Based on your post above, I removed arago and arago-oe-dev and replaced them with the repositories you suggested, on the branches you suggested. I also removed arago-tmp at this time to get a clean build. Then I modified arago/setenv to point to the toolchain in the SDK, and modified arago/conf/local.conf to change the toolchain brand to 'arago' rather than 'csl'. I left everything else at the defaults.

    Finally I re-ran 'bitbake arago-base-image' after sourcing my new arago/setenv. This is when I encountered the alsa-utils problem. Based on your post above, I removed arago-tmp and rebuilt just now. Unfortunately, it still has the issue. Should I not be building arago-base-image?

    -Ben

    arago am335x
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chase Maupin
    Posted by Chase Maupin
    on Aug 13 2012 10:39 AM
    Expert4890 points

    Benjamin,

    Two things:

    1. Can you post a log of your build and the failure?

    2. Did you specify a MACHINE type when building?  i.e. if building for AM335x you need to do "MACHINE=am335x-evm bitbake arago-base-image"

    Chase

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Benjamin Fitzpatrick
    Posted by Benjamin Fitzpatrick
    on Aug 13 2012 15:29 PM
    Intellectual290 points

    Hi Chase,

    Attached is the build log. 0066.build.log

    A few things to note. The log is in Unix format, of course. Also, I was using the multi-core build, so many things are not in order. I had not previously been specifying a MACHINE type on the command line (this is not required for the arago-base-image step in the wiki entry on setting up a build system, and I haven't so far found an alternate guide provided by TI), but this build did specify a MACHINE type and the result was the same.

    Despite using &> build.log, an entry of "*** %n in writeable segment ***" was printed on the command line - I don't think this happened during the failed build step, however. It seemed to happen much earlier in the process, while compiling m4.

    In case the multi-core build is the issue, I have disabled that, removed the temporary files and am rebuilding, but this will take quite a while to complete and I wanted you to get the log ASAP in case it helps.

    -Ben

    am335x-evm
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Benjamin Fitzpatrick
    Posted by Benjamin Fitzpatrick
    on Aug 14 2012 07:40 AM
    Intellectual290 points

    Turning off multi-core does not seem to solve the issue. I get the same failure on -lsamplerate in alsa-utils.

    arago am335x am335x-evm
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chase Maupin
    Posted by Chase Maupin
    on Aug 14 2012 08:02 AM
    Verified Answer
    Verified by Benjamin Fitzpatrick
    Expert4890 points

    Ben,

    Looks like the alsa-utils recipe is missing a dependency on the libsamplerate0 package which prevents it from finding the library in the staging directory.  Try adding "libsamplerate0" to the DEPENDS entry of the arago-oe-dev/recipes/alsa/alsa-utils_1.0.24.2.bb recipe.  i.e.

    DEPENDS = "alsa-lib ncurses libsamplerate0"

    Chase

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Benjamin Fitzpatrick
    Posted by Benjamin Fitzpatrick
    on Aug 14 2012 08:26 AM
    Intellectual290 points

    Chase,

    That appears to have done it. I successfully completed the build for the base image.

    Thanks,

    Ben

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Michael Kagalenko
    Posted by Michael Kagalenko
    on Sep 18 2012 10:08 AM
    Prodigy90 points

    >

    Chase Maupin
    In each checked out repo to a "git checkout amsdk-05.05.00.00-release"

    What tag will give me the previous version of TI SDK PSP  -  AM35x-OMAP35x-LINUX-PSP-04.02.00.07?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use