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!


Similar Content



Iptables Tcp Flags Scripts

I was checking out this link:
http://www.k-state.edu/its/security/...pt_Handout.pdf


There's a line that says:
Code:
iptables -A Log-N-Drop -p tcp -m tcp --tcp-flags FIN,ACK FIN -j LOG --log-prefix "Denied FIN SCAN: "

This is part of the Log-N-Drop chain that is made up of several similar statements.

First of all, I'd like to know what's the difference between --tcp-flags FIN FIN and --tcp-flags FIN,ACK FIN?

Then, there's this:
Code:
iptables -A Log-N-Drop -p tcp -m tcp --tcp-flags ALL NONE -j DROP

Which says that all tcp packets form the Log-N-Drop chain that have NO tcp flags set should be dropped.

Of course, there's a bigger context there in the link, but I'd like to take it step by step. How should I interpret this last iptables line? Why should it be necessary? I guess, in this case, it should make sense to drop all packets that have no flags set, right, 'cause they would be invalid? Any valid tcp flag should have at least one flag set, or am I wrong?

The fuller the feedback, the better

Telnet / Postfix Connection Refused Question For CENTOS 6.4

Good Morning! I am supporting the coffee and Doritos industry with my frustration with this problem. I have been battling it for two months. I have several Red Hat books, the official Red Hat study guide, and have searched the forums for weeks with no avail. I was wondering if you have ever had this?

I am trying to "telnet server.example.com 25" or telnet in general. Both servers are running on a KVM on the 192.168.122.0/24 network.


[root@server ~]# telnet server.example.com
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying 192.168.122.191...
telnet: connect to address 192.168.122.191: Connection refused

I can ssh, run NFS, and also run internal postfix e-mails.

IPTABLES IS TURNED OFF ON BOTH CLIENTS

Postfix and Telnet is configured on both clients, with both listening:

[root@server ~]# netstat -tulpn |grep :25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1802/

When I Telnet from client named 'Server' to client named 'ISCSI', tpcdump on client 'ISCSI' gives the following:

19:01:23.579330 STP 802.1d, Config, Flags [none], bridge-id 8000.52:54:00:2e:85:0e.8003, length 43
19:01:23.632750 IP server.57477 > iscsi.example.com.telnet: Flags [S], seq 2403459934, win 14600, options [mss 1460,sackOK,TS val 2679191 ecr 0,nop,wscale 6], length 0
19:01:23.632882 IP iscsi.example.com.telnet > server.57477: Flags [R.], seq 0, ack 2403459935, win 0, length 0
19:01:24.428091 IP server.57478 > iscsi.example.com.telnet: Flags [S], seq 942066757, win 14600, options [mss 1460,sackOK,TS val 2679990 ecr 0,nop,wscale 6], length 0
19:01:24.428163 IP iscsi.example.com.telnet > server.57478: Flags [R.], seq 0, ack 942066758, win 0, length 0
19:01:25.006222 IP server.57479 > iscsi.example.com.telnet: Flags [S], seq 2689610466, win 14600, options [mss 1460,sackOK,TS val 2680564 ecr 0,nop,wscale 6], length 0

Want To Get Fedora 17 Online.

I'm running VMWare for school. I need to get Fedora 17 to access the internet through the VM for just two assignments and then I can ignore the existence of Linux until I attempt the NOS120 class again. I have been able to get CentOS and every version of Windows online without an issue.

I've tried NAT, I've tried Bridged, I even pushed the Lan Segment, Host Only, and Custom radio buttons just for fun. I know the protocol here is to post a wiki link to a 500 page thread about the essence of the Linux experience. I even opened those and tried to follow along. Then I would try to do the same thing and nothing matched.

If anyone can tell me how to open Konsole on Centos that would be great as well. It might get me one step further. Also, if you guys ever try to work on your own cars and come to a forum that I frequent I promise not to tell you to read the Factory Service Manual instead of just telling you how to unscrew the oil cap. I promise. Especially if you have a Honda or Acura. I will even tell you all of the steps to reset your Maintenance indicator light.

Here is my ifconfig info:
eth0: flags=4099<UP,Broadcast,Multicast> mtu 1500
ether 00:0c:29:f7:d1:c8 txqueuelen 1000 (Ethernet)
RX
RX
TX
TX
device interrupt 19 base 0x2000

lo:flags=73<Up, Loopback, Running> mtu 16436
inet 127.0.0.1 netmask 255.0.0.0
look txquelen 0 (Local Loopback)
RX Packets 80 bytes 6744 (6.5 Kib)
RX erros 0
TX packets 80 bytes 6744
TX errors.

Something's Wrong With GRUB

Ubuntu 12.04

I installed updates, which included a new kernel. I went to remove one of the older kernels and got:

Code:
jnojr@DEV:~$ sudo apt-get purge linux-image-3.13.0-46-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.13.0-46-generic gir1.2-ubuntuoneui-3.0 wireless-regdb iw
  linux-headers-3.13.0-46 crda linux-headers-3.5.0-23-generic lesstif2
  linux-headers-3.5.0-23 libubuntuoneui-3.0-1 thunderbird-globalmenu
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-3.13.0-46-generic*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 197 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 340656 files and directories currently installed.)
Removing linux-image-3.13.0-46-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-46-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.13.0-51-generic
Found initrd image: /boot/initrd.img-3.13.0-51-generic
Found linux image: /boot/vmlinuz-3.13.0-49-generic
Found initrd image: /boot/initrd.img-3.13.0-49-generic
Found linux image: /boot/vmlinuz-3.13.0-48-generic
Found initrd image: /boot/initrd.img-3.13.0-48-generic
Found Windows Vista (loader) on /dev/sda1
Found CentOS release 6.6 (Final) on /dev/sdb1
Found linux image: /boot/vmlinuz-3.13.0-51-generic
Found initrd image: /boot/initrd.img-3.13.0-51-generic
Found linux image: /boot/vmlinuz-3.13.0-49-generic
Found initrd image: /boot/initrd.img-3.13.0-49-generic
Found linux image: /boot/vmlinuz-3.13.0-48-generic
Found initrd image: /boot/initrd.img-3.13.0-48-generic
Found Windows Vista (loader) on /dev/sda1
Found CentOS release 6.6 (Final) on /dev/sdb1
Found memtest86+ image: /boot/memtest86+.bin
error: syntax error.
error: Incorrect command.
error: syntax error.
error: Incorrect command.
error: syntax error.
error: line no: 146
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done
Purging configuration files for linux-image-3.13.0-46-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic

I have no idea how I'd "ensure there are no errors" in the /etc/grub related files... I have no idea what's supposed to be there. Looking at the line it's complaining about in /boot/grub/grub.cfg.new doesn't tell me anything. How do i find out what it's unhappy about?

Make[1]: O: Command Not Found

Hi.

Running Suse 10.1 on an x86_64 machine. Trying to install a program and having some difficulty. The program is codeco 3.3. It's a format conversion program used for converting seismic waveforms such that they can be analysed by different analysis packages.

http://www.seismo.ethz.ch/products/s...3/codeco3.html

My debugging skills aren't up to much and I'm hoping someone might be able to help me out with the error. The steps involved in the installation of the package a

1. Download, gunzip and untar.

2. make config
> jp@linux:/usr/local/codeco> make config
(cd src; ./conf.csh)
found system Linux
found compiler

...this is ok, but

3. make
>jp@linux:/usr/local/codeco> make
(cd src; make)
make[1]: Entering directory `/usr/local/codeco/src'
o ../bin/codeco codecomain.f gse_io.f codecoutil.f compdecomp.f sacsub.f sac_io.f mseed_io.f css_io. today.f utmepo.f epoutm.f
make[1]: o: Command not found
make[1]: [codeco] Error 127 (ignored)
make[1]: Leaving directory `/usr/local/codeco/src'

The src code itself is written in fortran and I'm using the Intel fortran compiler version 9.0.031.

I'm at a loss as to the meaning of the above error...my knowledge of linux and software installation still not very good!

Thanks

Preempt_rt Install Over Ubuntu 14.04

Hi everyone (i hope this is the right section)

Im trying to install the RT patch preempt_rt 3.18.9 im running Ubuntu 14.04 with kernel v 3.16

i installed the rt patch "patch-3.18.9-rt5.patch" and also a new kernel "3.18.9" i patched the patch file with

patch -p1 < patch-3.18.9.patch

but there is somthing i don't know about linking folders of old kernel and new kernel, i searched about it and found

rm -rf linux && ln -s /usr/src/linux-3.18.9 linux && cd /usr/src/linux

then

make oldconfig

then

make menuconfig

i selected Full preemptive kernel then

make

then this error

cc1: some warnings being treated as errors make[2]: * [kernel/locking/locktorture.o] Error 1 make[1]: * [kernel/locking] Error 2 make: *** [kernel] Error 2


So..... Any help?? can someone walk me through this

or any other real time patch, Thanx.. plzzzzzz

Need To Install The N53 PCI Network Card From Asus Without Installing Anything Before

Hi

I am new to kali linux and have got a fresh install with all the current updates (without any new repositories). I am really interested in aircrack and wifi exploitation. But before i can do any of that i need to install my second network adapter, the asus n53 pcie. I am able to type this because my motherboard came with its own intergrated wifi adapter, the aetheros (something). That was working out of the box as soon as kali linux was installed, however i need a proper network adapter (the n53) to make use of my 3rd party long range antenna (it can pick up networks over 600m away ).

I am attempting to install my asus n53 pcie network adapter but have had no success at all, most likely because i have no idea what to do once i have extracted the driver. Currently it is sitting in my home folder. It has a few folders and files in it, with these being the folders

(chips, common, include, os, rate_ctrl, sta and tools)

and these being the files

(iwpriv_usage.txt, makefile, readme_sta_pci, rt2860STA.dat, rt2860staCarddat, sta_ate_iwpriv_usage.txt.)

In the readme file it says this in the instructions:

1> $tar -xvzf DPB_RT2860_Linux_STA_x.x.x.x.tgz
go to "./DPB_RT2860_Linux_STA_x.x.x.x" directory.

2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.

3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager or wpa_supplicant wext functions
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
=> #>cd wpa_supplicant-0.5.7
=> #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d

4> $make
# compile driver source code
# To fix "error: too few arguments to function ”„iwe_stream_add_event"
=> $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c

5> $cp RT2860STA.dat /etc/Wireless/RT2860STA/RT2860STA.dat

6> load driver
#[kernel 2.4]
# $/sbin/insmod rt2860sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up

#[kernel 2.6]
# $/sbin/insmod rt2860sta.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up

7> unload driver
$/sbin/ifconfig ra0 down
$/sbin/rmmod rt2860sta

And this to me looks like another language. I would GREATLY APPRECIATE IT if someone could give me step by step instructions on how to install this, without skipping on anything. I will even pay 10000 dogecoin if someone helps me! I have been searching youtube tutorials for 3 hours (lol) for it and havent found anything. Please help me!

Thanks

SIOCADDRT Error And Two Gateway For Same Destination When I Use Pptp?

Before I use Code:
pppd call

Code:
$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    1024   0        0 wlp8s0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlp8s0

And then I call the code
server: 50.117.*.*
Code:
	sudo pppd call shayu13
	sudo route add -net 0.0.0.0 dev ppp0

I get the error :
Quote:
SIOCADDRT: Network is down
I must change the code by adding the sleep code.
Code:
	sudo pppd call shayu13
	sleep 15
	sudo route add -net 0.0.0.0 dev ppp0

Why? Thanks

And when I look the route tables:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
0.0.0.0         192.168.1.1     0.0.0.0         UG    1024   0        0 wlp8s0
50.117.**.**  192.168.1.1     255.255.255.255 UGH   0      0        0 wlp8s0
172.16.**.**     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlp8s0

It seems that 0.0.0.0 has two gateway. Is that OK? Thanks

C Compiler Cannot Create Executables

Hello everyone,

I recently installed AntiX debian Linux on an old IBM thinkpad T42. I have been trying to install some software using tar files but I kept getting the error the the C compiler cannot create executables. Can anyone help me out. Here is an example of the error. I do not know if the config.log details will help but i will post them if it will help.

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ar... ar
checking for gcc... gcc
checking whether the C compiler works... no
configu error: in `/home/grimlock/Desktop/tor-0.2.4.27':
configu error: C compiler cannot create executables
See `config.log' for more details

Inet.conf Never Start The Ftp Daemon

Hi,

i am trying the run a ftp daemon on my board (sbc6000x) but it seems that the ftpd service is never started by inetd.conf.

My inetd.conf is :

Code:
#<service_name>	<sock_type>	<proto>	<flags> <user> 	<server_path> 	<args> 

ftp			stream		tcp		nowait	root	/usr/bin/ftpd ftpd -w
telnet			stream		tcp		nowait	root    /usr/sbin/telnetd

Telnet don't run too but this is because i am missing some folders and i can launch it manually after creating the folders without issue, but maybe the fact that it can't run telnet because of the missing folders make it stop trying the ftp daemon ?

I check with the command "ps", the processus is not running hidden anywhere.