Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » make error 127 with beaglebone angstrom release(What could error 127 mean?)
make error 127 with beaglebone angstrom release [message #1107348] Thu, 12 September 2013 09:18
Jacky Ryan is currently offline Jacky RyanFriend
Messages: 3
Registered: September 2013
Junior Member
Hi everyone,

I want to write a c program for my beaglebone (not black) which runs on Angstrom v2012-05, to send / receive CAN messages. I don't need a gui therefore I installed Eclipse CDT on Ubuntu 13.04 and want to cross compile a program which uses socketcan.

With the provided gcc-arm-linux-gnueabi installation from ubuntu I can compile a hello world program and it works fine, but I get errors when I want to use ioctl() because <sys/ioctl.h> is not found.

Now I compiled the angstrom - environment from git://github.com/Angstrom-distribution/setup-scripts.git as described in
datko.net/2013/05/06/cross-compiling-applications-for-the-beaglebone/

After some hours of compiling with oebb.sh I get many, many files and directories and am unsure which includes I've got to set in project properties of eclipse.

Program:
/*
 ============================================================================
 Name        : Test4_Eclipse.c
 Author      : dr
 Version     :
 Copyright   : Your copyright notice
 Description : Hello World in C, Ansi-style
 ============================================================================
 */

#include <stdio.h>
#include <stdlib.h>

int main(void) {
	puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */
	return EXIT_SUCCESS;
}


In PATH - variable I added
/home/daniel/Downloads/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/i686-linux/usr/bin/armv7a-vfp-neon-angstrom-linux-gnueabi
for the binaries.

In Project properties I set GCC C compiler and linker to
arm-angstrom-linux-gnueabi-gcc
and assembler to
arm-angstrom-linux-gnueabi-as

Compiler include path is
/home/daniel/Downloads/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/i686-linux/usr/include

and linker library path is
/home/daniel/Downloads/setup-scripts/build/tmp-angstrom_v2012_12-eglibc/sysroots/i686-linux/usr/lib

When I build the project I get the error

Description Resource Path Location Type
make: *** [src/Test4_Eclipse.o] Fehler 127 Test4_Eclipse C/C++ Problem

make and gcc - compiler seems to be ok:

make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.

arm-angstrom-linux-gnueabi-gcc --version
arm-angstrom-linux-gnueabi-gcc (Linaro GCC 4.7-2013.02-01) 4.7.3 20130205 (prerelease).

What would error 127 mean?
Can I get more details about error 127?

Thanks for your help,
Daniel
Previous Topic:Linker Errors in Hello World program
Next Topic:Problem Building Linking to Exe Files?
Goto Forum:
  


Current Time: Thu Apr 25 13:13:15 GMT 2024

Powered by FUDForum. Page generated in 0.02721 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top