Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

cflags gcc / -fno-strict-aliasing

  • 03-08-2010 11:48AM
    #1
    Moderators, Science, Health & Environment Moderators, Social & Fun Moderators, Society & Culture Moderators Posts: 60,119 Mod ✭✭✭✭


    Hello I am trying to run some code, I know it works. However these warnings/errors are being thrown:
    [root@XPS BlinkToRadio]# make micaz install mib510,/dev/ttyUSB0
    mkdir -p build/micaz
        compiling BlinkToRadioAppC to a micaz binary
    ncc -o build/micaz/main.exe  -Os -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 -DIDENT_APPNAME=\"BlinkToRadioApp\" -DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"XPS\" -DIDENT_USERHASH=0x0e919144L -DIDENT_TIMESTAMP=0x4c57f411L -DIDENT_UIDHASH=0x80c2d5c6L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/micaz/wiring-check.xml BlinkToRadioAppC.nc -lm 
    /opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
    /opt/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc: In function 'VirtualizeTimerC$0$fireTimers':
    /usr/lib/ncc/nesc_nx.h:272: warning: dereferencing pointer 'btrpkt' does break strict-aliasing rules
    /usr/lib/ncc/nesc_nx.h:272: warning: dereferencing pointer 'btrpkt' does break strict-aliasing rules
    BlinkToRadioC.nc:45: note: initialized from here
    /usr/lib/ncc/nesc_nx.h:283: warning: dereferencing pointer 'header' does break strict-aliasing rules
    /opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:100: note: initialized from here
    /usr/lib/ncc/nesc_nx.h:253: warning: dereferencing pointer 'header' does break strict-aliasing rules
    /opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:100: note: initialized from here
    /usr/lib/ncc/nesc_nx.h:253: warning: dereferencing pointer 'result' does break strict-aliasing rules
    /opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:100: note: initialized from here
    /usr/lib/ncc/nesc_nx.h:248: warning: dereferencing pointer 'header' does break strict-aliasing rules
    /opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:100: note: initialized from here
    /usr/lib/ncc/nesc_nx.h:278: warning: dereferencing pointer 'header' does break strict-aliasing rules
    /opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:100: note: initialized from here
    /usr/lib/gcc/avr/4.4.2/../../../../avr/bin/ld: BFD 2.17 internal error, aborting at reloc.c line 445 in bfd_get_reloc_size
    
    /usr/lib/gcc/avr/4.4.2/../../../../avr/bin/ld: Please report this bug.
    
    make: *** [exe0] Error 1
    

    I was wondering did anybody know how to turn off strict aliasing or know what the avr errors being thrown at the bottom are?

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 85 ✭✭rfrederick


    Hmm, dunno where to start to troubleshoot. I've honestly never built any applications for embedded systems. Have you tried another build environment? Or, I guess, what is the environment you're building the embedded application/component in?


  • Moderators, Science, Health & Environment Moderators, Social & Fun Moderators, Society & Culture Moderators Posts: 60,119 Mod ✭✭✭✭Tar.Aldarion


    Hello, thanks for the reply. It's done now. I just deleted Fedora in anger(ha), tired of it's constant errors. Installed Ubuntu and everything works fine now.


  • Registered Users, Registered Users 2 Posts: 85 ✭✭rfrederick


    Heh, I was wondering if it was a distro-specific build problem. Good to know you have it going.


  • Moderators, Science, Health & Environment Moderators, Social & Fun Moderators, Society & Culture Moderators Posts: 60,119 Mod ✭✭✭✭Tar.Aldarion


    Thanks, no idea why it was doing that, probably some little version of something. Was at it sooooo long. Ubuntu 10.04 working like a dream


  • Registered Users, Registered Users 2 Posts: 85 ✭✭rfrederick


    Fedora seems to be a bit more bleeding-edge (and subsequently a bit more incompatible with things) than Ubuntu, even though Ubuntu is derived from snapshots of Debian Sid (their unstable version).


  • Advertisement
  • Moderators, Science, Health & Environment Moderators, Social & Fun Moderators, Society & Culture Moderators Posts: 60,119 Mod ✭✭✭✭Tar.Aldarion


    Believe me, the million errors I got, it can keep it's bleeding edge...grand unless I have to work on it.


Advertisement