#19064: Error Compiling r44511 trunk for bcrm2709 raspberry pi 2 in osx yosemite
-------------------------+------------------------
 Reporter:  zandegran    |      Owner:  developers
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:
Component:  base system  |    Version:  Trunk
 Keywords:               |
-------------------------+------------------------
 I get this error..What is wrong?
 {{{
 .
 ..
 ...
 ....
                     ^
 1 warning generated.
 mainloop.c:89:15: error: expected ')'
 int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp, char *arg,
               ^
 ./sysincludes.h:106:47: note: expanded from macro 'UNUSED'
 #  define UNUSED(x) x __attribute__ ((unused));x
                                               ^
 mainloop.c:89:14: note: to match this '('
 int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp, char *arg,
              ^
 mainloop.c:89:41: error: redefinition of 'MainParam_t' as different kind
 of symbol
 int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp, char *arg,
                                         ^
 ./mainloop.h:68:3: note: previous definition is here
 } MainParam_t;
   ^
 mainloop.c:89:52: error: expected ';' after top level declarator
 int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp, char *arg,
                                                    ^
                                                    ;
 mainloop.c:98:15: error: expected ')'
 int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp,
               ^
 ./sysincludes.h:106:47: note: expanded from macro 'UNUSED'
 #  define UNUSED(x) x __attribute__ ((unused));x
                                               ^
 mainloop.c:98:14: note: to match this '('
 int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp,
              ^
 mainloop.c:98:41: error: redefinition of 'MainParam_t' as different kind
 of symbol
 int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp,
                                         ^
 ./mainloop.h:68:3: note: previous definition is here
 } MainParam_t;
   ^
 mainloop.c:98:52: error: expected ';' after top level declarator
 int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp,
                                                    ^
                                                    ;
 mainloop.c:207:10: error: unknown type name 'lookupState_t'
                        lookupState_t *lookupState)
                        ^
 mainloop.c:264:7: warning: implicit declaration of function 'checkForDot'
 is invalid in
       C99 [-Wimplicit-function-declaration]
                 if(!checkForDot(mp->lookupflags,entry.name)) {
                     ^
 mainloop.c:294:7: error: unknown type name 'lookupState_t'
                            lookupState_t *lookupState)
                            ^
 mainloop.c:423:7: error: unknown type name 'lookupState_t'
                            lookupState_t *lookupState, int open_mode)
                            ^
 mainloop.c:473:2: error: use of undeclared identifier 'lookupState_t'
         lookupState_t lookupState;
         ^
 mainloop.c:477:2: error: use of undeclared identifier 'lookupState'
         lookupState.nbDirs = 0;
         ^
 mainloop.c:478:2: error: use of undeclared identifier 'lookupState'
         lookupState.Dir = 0;
         ^
 mainloop.c:479:2: error: use of undeclared identifier 'lookupState'
         lookupState.nbContainers = 0;
         ^
 mainloop.c:480:2: error: use of undeclared identifier 'lookupState'
         lookupState.container = 0;
         ^
 mainloop.c:484:34: error: use of undeclared identifier 'lookupState'
         ret = common_dos_loop(mp, arg, &lookupState, O_RDWR);
                                         ^
 mainloop.c:489:5: error: use of undeclared identifier 'lookupState'
         if(lookupState.nbDirs) {
            ^
 mainloop.c:491:19: error: use of undeclared identifier 'lookupState'
                 mp->targetDir = lookupState.Dir;
                                 ^
 mainloop.c:492:9: error: use of undeclared identifier 'lookupState'
                 FREE(&lookupState.container); /* container no longer
 needed */
                       ^
 ./stream.h:79:15: note: expanded from macro 'FREE'
 free_stream( (stream) )
               ^
 mainloop.c:496:9: error: use of undeclared identifier 'lookupState'
         switch(lookupState.nbContainers) {
                ^
 fatal error: too many errors emitted, stopping now [-ferror-limit=]
 1 warning and 20 errors generated.
 make[4]: *** [mainloop.o] Error 1
 make[3]: *** [/Volumes/OpenWrt/trunk/build_dir/host/mtools-4.0.18/.built]
 Error 2
 make[2]: *** [tools/mtools/compile] Error 2
 make[2]: *** Waiting for unfinished jobs....
               -e 's/@''GNULIB_PERROR''@/0/g' \
               -e 's|@''REPLACE_PERROR''@|0|g' \
               -e 's/@''GNULIB_STRERROR''@/1/g' \
               -e 's/@''GNULIB_STRERROR_R''@/0/g' \
               -e 's|@''HAVE_DECL_STRERROR_R''@|1|g' \
               -e 's|@''REPLACE_STRERROR''@|1|g' \
               -e 's|@''REPLACE_STRERROR_R''@|0|g' \
 gcc -DHAVE_CONFIG_H -I. -I..  -I../lib -I.. -I../lib
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include  -O2
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include -MT error.o -MD -MP
 -MF .deps/error.Tpo -c -o error.o error.c
 error.c:381:12: warning: data argument not used by format string
 [-Wformat-extra-args]
            file_name, line_number);
            ^
 1 warning generated.
 mv -f .deps/error.Tpo .deps/error.Po
 In file included from regex.c:70:
 ./regex_internal.c:1398:11: warning: comparison of unsigned expression < 0
 is always
       false [-Wtautological-compare]
   if (idx < 0 || idx >= set->nelem)
       ~~~ ^ ~
 gcc -DHAVE_CONFIG_H -I. -I..  -I../lib -I.. -I../lib
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include  -O2
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include -MT strerror.o -MD
 -MP -MF .deps/strerror.Tpo -c -o strerror.o strerror.c
 checking whether wmemcpy is declared without a macro... mv -f
 .deps/strerror.Tpo .deps/strerror.Po
 gcc -DHAVE_CONFIG_H -I. -I..  -I../lib -I.. -I../lib
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include  -O2
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include -MT strerror-
 override.o -MD -MP -MF .deps/strerror-override.Tpo -c -o strerror-
 override.o strerror-override.c
 mv -f .deps/strerror-override.Tpo .deps/strerror-override.Po
 1 warning generated.
 ar cru libsed.a set-mode-acl.o copy-acl.o file-has-acl.o c-ctype.o
 c-strcasecmp.o c-strncasecmp.o dirname-lgpl.o basename-lgpl.o stripslash.o
 exitfail.o localcharset.o malloca.o quotearg.o se-context.o se-selinux.o
 stdio.o tempname.o unistd.o version-etc.o version-etc-fsf.o wctype-h.o
 xmalloc.o xalloc-die.o canonicalize-lgpl.o error.o fwriting.o getopt.o
 getopt1.o lstat.o mkostemp.o obstack.o readlink.o regex.o rename.o stat.o
 strerror.o strerror-override.o strverscmp.o
 /opt/local/bin/ranlib: file: libsed.a(se-context.o) has no symbols
 /opt/local/bin/ranlib: file: libsed.a(se-selinux.o) has no symbols
 /opt/local/bin/ranlib: file: libsed.a(stdio.o) has no symbols
 /opt/local/bin/ranlib: file: libsed.a(unistd.o) has no symbols
 /opt/local/bin/ranlib: file: libsed.a(wctype-h.o) has no symbols
 ranlib: file: libsed.a(se-context.o) has no symbols
 ranlib: file: libsed.a(se-selinux.o) has no symbols
 ranlib: file: libsed.a(stdio.o) has no symbols
 ranlib: file: libsed.a(unistd.o) has no symbols
 ranlib: file: libsed.a(wctype-h.o) has no symbols
 utils.c:253:8: warning: promoted type 'int' of K&R function parameter is
 not compatible
       with the parameter type 'char' declared in a previous prototype
       [-Wknr-promoted-parameter]
   char buffer_delimiter;
        ^
 ./utils.h:32:55: note: previous declaration is here
 size_t ck_getdelim (char **text, size_t *buflen, char buffer_delimiter,
 FILE *stream);
                                                       ^
 1 warning generated.
 ld: warning: directory not found for option
 '-L/Volumes/OpenWrt/trunk/staging_dir/host/usr/lib'
 checking attr/error_context.h usability... Making all in doc
 checking attr/error_context.h presence... no
 checking for attr/error_context.h... no
 configure: WARNING: libattr development library was not found or not
 usable.
 configure: WARNING: GNU patch will be built without xattr support.
               -e 's/@''GNULIB_PERROR''@/0/g' \
               -e 's|@''REPLACE_PERROR''@|0|g' \
               -e 's/@''GNULIB_STRERROR''@/1/g' \
               -e 's/@''GNULIB_STRERROR_R''@/0/g' \
               -e 's|@''HAVE_DECL_STRERROR_R''@|1|g' \
               -e 's|@''REPLACE_STRERROR''@|1|g' \
               -e 's|@''REPLACE_STRERROR_R''@|0|g' \
 parse-datetime.y:1475:53: warning: adding 'int' to a string does not
 append to the
       string [-Wstring-plus-int]
               sprintf (tz1buf, "XXX%s%ld:%02d", "-" + (time_zone < 0),
                                                 ~~~~^~~~~~~~~~~~~~~~~
 /usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
   __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                        ^
 parse-datetime.y:1475:53: note: use array indexing to silence this warning
               sprintf (tz1buf, "XXX%s%ld:%02d", "-" + (time_zone < 0),
                                                     ^
                                                 &   [
 /usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
   __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                        ^
 1 warning generated.
 gcc -DHAVE_CONFIG_H -I. -I..
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include  -O2
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include -MT verror.o -MD -MP
 -MF .deps/verror.Tpo -c -o verror.o verror.c
 mv -f .deps/verror.Tpo .deps/verror.Po
 gcc -DHAVE_CONFIG_H -I. -I..
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include  -O2
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include -MT error.o -MD -MP
 -MF .deps/error.Tpo -c -o error.o error.c
 error.c:381:12: warning: data argument not used by format string
 [-Wformat-extra-args]
            file_name, line_number);
            ^
 1 warning generated.
 mv -f .deps/error.Tpo .deps/error.Po
 gcc -DHAVE_CONFIG_H -I. -I..
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include  -O2
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include -MT strerror.o -MD
 -MP -MF .deps/strerror.Tpo -c -o strerror.o strerror.c
 mv -f .deps/strerror.Tpo .deps/strerror.Po
 gcc -DHAVE_CONFIG_H -I. -I..
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include  -O2
 -I/Volumes/OpenWrt/trunk/staging_dir/host/include
 -I/Volumes/OpenWrt/trunk/staging_dir/host/usr/include -MT strerror-
 override.o -MD -MP -MF .deps/strerror-override.Tpo -c -o strerror-
 override.o strerror-override.c
 mv -f .deps/strerror-override.Tpo .deps/strerror-override.Po
 ar cru libpatch.a argmatch.o backupfile.o c-ctype.o c-strcasecmp.o
 c-strncasecmp.o opendir-safer.o dirname.o basename.o dirname-lgpl.o
 basename-lgpl.o stripslash.o exitfail.o fd-hook.o full-write.o gettime.o
 hash.o gl_linked_list.o gl_list.o localcharset.o malloca.o parse-
 datetime.o progname.o quotearg.o safe-write.o stat-time.o tempname.o
 timespec.o dup-safer.o fd-safer.o pipe-safer.o utimens.o verror.o
 xmalloc.o xalloc-die.o gl_xlist.o xsize.o xstrndup.o xvasprintf.o
 xasprintf.o asnprintf.o canonicalize-lgpl.o error.o getopt.o getopt1.o
 lstat.o mktime.o printf-args.o printf-parse.o readlink.o rename.o setenv.o
 stat.o strerror.o strerror-override.o symlink.o unlink.o vasnprintf.o
 /opt/local/bin/ranlib: file: libpatch.a(fd-hook.o) has no symbols
 /opt/local/bin/ranlib: file: libpatch.a(gl_list.o) has no symbols
 /opt/local/bin/ranlib: file: libpatch.a(gl_xlist.o) has no symbols
 ranlib: file: libpatch.a(fd-hook.o) has no symbols
 ranlib: file: libpatch.a(gl_list.o) has no symbols
 ranlib: file: libpatch.a(gl_xlist.o) has no symbols
 patch.c:467:14: warning: adding 'int' to a string does not append to the
 string
       [-Wstring-plus-int]
                        "s" + (in_offset == 1));
                        ~~~~^~~~~~~~~~~~~~~~~~
 patch.c:467:14: note: use array indexing to silence this warning
                        "s" + (in_offset == 1));
                            ^
                        &   [                 ]
 patch.c:592:55: warning: adding 'int' to a string does not append to the
 string
       [-Wstring-plus-int]
             say ("%d out of %d hunk%s %s", failed, hunk, "s" + (hunk ==
 1),
                                                          ~~~~^~~~~~~~~~~~~
 patch.c:592:55: note: use array indexing to silence this warning
             say ("%d out of %d hunk%s %s", failed, hunk, "s" + (hunk ==
 1),
                                                              ^
                                                          &   [
 ]
 2 warnings generated.
 util.c:556:22: warning: use of logical '&&' with constant operand
       [-Wconstant-logical-operand]
       if (! (O_CREAT && O_TRUNC))
                      ^  ~~~~~~~
 util.c:556:22: note: use '&' for a bitwise operation
       if (! (O_CREAT && O_TRUNC))
                      ^~
                      &
 util.c:556:22: note: remove constant to silence this warning
       if (! (O_CREAT && O_TRUNC))
                     ~^~~~~~~~~~
 1 warning generated.
 merge.c:471:35: warning: adding 'bool' to a string does not append to the
 string
       [-Wstring-plus-int]
           fputs (outstate->after_newline + "\n<<<<<<<\n", fp);
                  ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
 merge.c:471:35: note: use array indexing to silence this warning
 merge.c:482:39: warning: adding 'bool' to a string does not append to the
 string
       [-Wstring-plus-int]
               fputs (outstate->after_newline + "\n|||||||\n", fp);
                      ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
 merge.c:482:39: note: use array indexing to silence this warning
 merge.c:491:35: warning: adding 'bool' to a string does not append to the
 string
       [-Wstring-plus-int]
           fputs (outstate->after_newline + "\n=======\n", fp);
                  ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
 merge.c:491:35: note: use array indexing to silence this warning
 merge.c:498:35: warning: adding 'bool' to a string does not append to the
 string
       [-Wstring-plus-int]
           fputs (outstate->after_newline + "\n>>>>>>>\n", fp);
                  ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
 merge.c:498:35: note: use array indexing to silence this warning
 4 warnings generated.
 ld: warning: directory not found for option
 '-L/Volumes/OpenWrt/trunk/staging_dir/host/usr/lib'
 make[1]: *** [/Volumes/OpenWrt/trunk/staging_dir/target-
 
arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/stamp/.tools_install_yynyynyyynyyyyyyyyyyynyyyyyyyyyyyyyynnyyynnyynnnyyyy]
 Error 2
 make: *** [world] Error 2

 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/19064>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to