LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2015, 05:05 AM   #1
153rd
Member
 
Registered: Mar 2015
Location: The Netherlands
Distribution: CentOS 7, Ubuntu 12.04, Linux-Mint 17.3
Posts: 46

Rep: Reputation: Disabled
Openembedded/yocto bitbake with gcc 4.8.2 crashes at do_compile elfutils


Hello guys,

I'm trying to run bitbake to get a linux image on an altera Cyclone 5 devboard(SoCrates). The end goal is to get a linux image that has the OpenCV library installed. I'm using the altera version of the yocto project.

Currently everything is running fairly well on ubuntu 12.04.
When I try to run this bitbake process on CentOS 7, I get the following error:

Error: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess]

cc1: all warnings being treated as errors


After some googling here and there, I kind of found the 'bug'.(new gcc has this new flag that older versions didn't have which causes a warning and an error with -wall).

So now I'm looking for the place where flags are passed to the gcc compiler:
I tried doing this in the bitbake.conf file in the meta -layer; TOOLCHAIN_OPTIONS, BUILD_CFLAGS and TARGET_CFLAGS are now empty.
In the manual they mention these flags are being sent to the compiler.

I also checked out the elfutils and gcc folders in yocto/meta/devtools/, but couldn't find anything relevant there (I used find/grep and the GUI, searching for the flags mentioned)


Changing the flags in the bitbake.conf file didn't help; do you guys happen to have any idea where the compiler flags are being set when bitbake executes the do_compile task for elfutils?

Thank you in advance.

cheers!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Yocto Project and OpenEmbedded align embedded Linux efforts LXer Syndicated Linux News 0 03-02-2011 10:11 PM
error while running bitbake saurin Linux - Software 1 05-16-2010 08:51 AM
[SOLVED] Problem with elfutils in RHEL 5.1 Rocktron Linux - Software 1 01-16-2010 10:44 AM
help! Gcc stopped working after installing elfutils 0.97 Gero Linux - Software 4 04-07-2005 06:39 AM
GCC 3.4.0 Compilation Crashes derryp Linux From Scratch 3 06-11-2004 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration