<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>142263</bug_id>
          
          <creation_ts>2006-07-31 03:32 0000</creation_ts>
          <short_desc>dev-tinyos/nesc-1.2.6-r1  fails to build basic applications</short_desc>
          <delta_ts>2006-08-10 13:27:12 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1508495&amp;group_id=56288&amp;atid=480036</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>aurelien.francillon@inrialpes.fr</reporter>
          <assigned_to>sanchan@gentoo.org</assigned_to>
          <cc>dev-embedded@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>aurelien.francillon@inrialpes.fr</who>
            <bug_when>2006-07-31 03:32:31 0000</bug_when>
            <thetext>Hi, 
It seems that nesc 1.2.6-r1 is somewhat broken (or incompatible with tinyos-1.x/ncc-1.4). I can&apos;t build trivial applications using it
while with 1.2.4-r1 or 1.2.5-r1 everything is ok.
Changing to avr-gcc-3.4.5 intead of avr-gcc-4.0.2 does not changes anything.

The bug is referenced on nesc bug tracking page on sourceforge and closed as 
&quot;This appears to be gone in 1.2.7a (possibly earlier). I
certainly can&apos;t reproduce it any more.&quot; 
No patch seems to be available ...
I would suggest to mask &quot;-*&quot; this version ?

---- error ----

tinyos/apps/Blink:  make micaz                                                                   
mkdir -p build/micaz
    compiling Blink to a micaz binary
ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow -DDEF_TOS_AM_GROUP=125 -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -DCC1K_DEFAULT_FREQ=RADIO_916BAND_CHANNEL_00 -DRADIO_XMIT_POWER=0xFF -DCC2420_TXPOWER=TXPOWER_MAX -DCC2420_DEF_CHANNEL=26 -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\&quot;Blink\&quot; -DIDENT_USER_ID=\&quot;francill\&quot; -DIDENT_HOSTNAME=\&quot;vanua\&quot; -DIDENT_USER_HASH=0x948da2eeL -DIDENT_UNIX_TIME=0x44cdd319L -DIDENT_UID_HASH=0x45e6b8efL -I/home/francill/work/sensors/tinyos/cvs/tinyos-1.x/tos/lib/CC2420Radio Blink.nc -lm
/usr/lib/ncc/nesc_nx.h:290: function `__nesc_htonbf_int8&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:290: function `__nesc_ntohbf_int8&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:291: function `__nesc_htonbf_int16&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:291: function `__nesc_ntohbf_int16&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:292: function `__nesc_htonbf_int32&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:292: function `__nesc_ntohbf_int32&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:293: function `__nesc_htonbf_int64&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:293: function `__nesc_ntohbf_int64&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:294: function `__nesc_htonbf_uint8&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:294: function `__nesc_ntohbf_uint8&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:295: function `__nesc_htonbf_uint16&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:295: function `__nesc_ntohbf_uint16&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:296: function `__nesc_htonbf_uint32&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:296: function `__nesc_ntohbf_uint32&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:297: function `__nesc_htonbf_uint64&apos; does not have the right signature
/usr/lib/ncc/nesc_nx.h:297: function `__nesc_ntohbf_uint64&apos; does not have the right signature
make: *** [exe0] Erreur 1



$ ncc --version                                                                     
ncc: 1.2alpha5
nescc: 1.2.6
avr-gcc: avr-gcc (GCC) 4.0.2 (Gentoo 4.0.2-r3, pie-8.7.8)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sanchan@gentoo.org</who>
            <bug_when>2006-08-09 11:29:45 0000</bug_when>
            <thetext>I&apos;m going to mask this while I&apos;m working on 1.2.7a. Then I&apos;ll remove 1.2.6.
I&apos;m not much present this month, majorly due to phone line breackage after thunderstorms last weeks. I&apos;ll try to mask this immediately, but for 1.2.7a you&apos;ll have to wait some days.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sanchan@gentoo.org</who>
            <bug_when>2006-08-09 12:42:45 0000</bug_when>
            <thetext>I assume that tinyos-1.x/ncc-1.4  stands for dev-tinyos/ncc-1.1.14. Is there any reason for using 1.1.14 instead of 1.1.15?
1.2.7a in portage. I&apos;have tested the ebuild and nesc compiling with target pc. Reopen the bug if the problem persists.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aurelien.francillon@inrialpes.fr</who>
            <bug_when>2006-08-09 14:01:02 0000</bug_when>
            <thetext>Hi, 
yes it works fine here on amd64 and x86 tested on micaz, with a simple program  
Few comments/suggestions :
- Just found that it misses a dependency on media-gfx/graphviz (used )but that&apos;s maybe deserves another bug report ? 

    Generating component docs
        LedsC
sh: dot: command not found
sh: dot: command not found
nesc1: unparse.c:187: copy_file_to_output: Assertion `infile&apos; failed.
nesC: Internal error. Please send a bug report to the nesC bug mailing list
at nescc-bugs@lists.sourceforge.net
installing media-gfx/graphviz-1.16-r1 fixes the problem

- it installs emacs &quot;.el&quot; files in /usr/share/ncc/editor-modes/emacs/new-nesc.el, It would be better to install them using elisp-common eclass (to build them), in the gentoo lisp directory. I don&apos;t know for other editors ...

sorry for the mess about tinyos-1.x/ncc-1.4 in the report ... dev-tinyos/ncc-1.1.15 works fine here :)

Thanks 
Aur</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aurelien.francillon@inrialpes.fr</who>
            <bug_when>2006-08-09 14:01:02 0000</bug_when>
            <thetext>Hi, 
yes it works fine here on amd64 and x86 tested on micaz, with a simple program  
Few comments/suggestions :
- Just found that it misses a dependency on media-gfx/graphviz (used )but that&apos;s maybe deserves another bug report ? 

    Generating component docs
        LedsC
sh: dot: command not found
sh: dot: command not found
nesc1: unparse.c:187: copy_file_to_output: Assertion `infile&apos; failed.
nesC: Internal error. Please send a bug report to the nesC bug mailing list
at nescc-bugs@lists.sourceforge.net
installing media-gfx/graphviz-1.16-r1 fixes the problem

- it installs emacs &quot;.el&quot; files in /usr/share/ncc/editor-modes/emacs/new-nesc.el, It would be better to install them using elisp-common eclass (to build them), in the gentoo lisp directory. I don&apos;t know for other editors ...

sorry for the mess about tinyos-1.x/ncc-1.4 in the report ... dev-tinyos/ncc-1.1.15 works fine here :)

Thanks 
Aurélien
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sanchan@gentoo.org</who>
            <bug_when>2006-08-10 13:27:12 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; - Just found that it misses a dependency on media-gfx/graphviz (used )but
&gt; that&apos;s maybe deserves another bug report ? 

I&apos;ve just fixed the dependency in cvs, thanks.

&gt; - it installs emacs &quot;.el&quot; files in
&gt; /usr/share/ncc/editor-modes/emacs/new-nesc.el, It would be better to install
&gt; them using elisp-common eclass (to build them), in the gentoo lisp directory. I
&gt; don&apos;t know for other editors ...

I&apos;ve added a note during post-install, let the users know of the existence of editor modes for nesc language.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>