2008-06-22 19:02:18     ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-06-22 19:02:18     ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mark Noonchester (NEW ZEALAND)

Message: 57684   

 

Note things have been building fine up until the latest version.

 

 

 

I am building on OS-X but I don't think that is the issure

 

 

 

Any ideas.  I have found the files that are in directorys etc.

 

 

 

make[4]: Nothing to be done for `all'.

Making  in src

make[4]: Nothing to be done for `all'.

[ ! -d "mtd-utils" ] || ( touch mtd-utils/.sgbuilt_user && make -C mtd-utils ) || exit $?

unset CC CFLAGS CPPFLAGS CROSS LDFLAGS; make -C d769da93a56590c23ce9430a1d970e31e835ae88 WITHOUT_XATTR=1 BUILDDIR=$PWD/build-d769da93a56590c23ce9430a1d970e31e835ae88-host RAWTARGETS="mkfs.jffs2"

mkdir -p /Volumes/beluga-b/blackfin_sources/uclinux-dist/user/mtd-utils/build-d769da93a56590c23ce9430a1d970e31e835ae88-host

gcc -I./include -DWITHOUT_XATTR -O2 -g -Wall -c -o /Volumes/beluga-b/blackfin_sources/uclinux-dist/user/mtd-utils/build-d769da93a56590c23ce9430a1d970e31e835ae88-host/mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,/Volumes/beluga-b/blackfin_sources/uclinux-dist/user/mtd-utils/build-d769da93a56590c23ce9430a1d970e31e835ae88-host/.mkfs.jffs2.c.dep

mkfs.jffs2.c:71:22: error: byteswap.h: No such file or directory

In file included from mkfs.jffs2.c:76:

rbtree.h:97:26: error: linux/kernel.h: No such file or directory

rbtree.h:98:26: error: linux/stddef.h: No such file or directory

mkfs.jffs2.c:112: error: ‘__BYTE_ORDER’ undeclared here (not in a function)

mkfs.jffs2.c: In function ‘parse_device_table’:

mkfs.jffs2.c:638: warning: implicit declaration of function ‘getline’

In file included from mkfs.jffs2.c:692:

./include/mtd/jffs2-user.h:12:20: error: endian.h: No such file or directory

mkfs.jffs2.c: In function ‘write_dirent’:

mkfs.jffs2.c:795: warning: implicit declaration of function ‘bswap_16’

mkfs.jffs2.c:797: warning: implicit declaration of function ‘bswap_32’

mkfs.jffs2.c: In function ‘recursive_populate_directory’:

mkfs.jffs2.c:1334: warning: format ‘%9lu’ expects type ‘long unsigned int’, but argument 3 has type ‘off_t’

mkfs.jffs2.c:1343: warning: format ‘%9lu’ expects type ‘long unsigned int’, but argument 3 has type ‘off_t’

mkfs.jffs2.c:1352: warning: format ‘%9lu’ expects type ‘long unsigned int’, but argument 3 has type ‘off_t’

mkfs.jffs2.c:1382: warning: format ‘%9lu’ expects type ‘long unsigned int’, but argument 3 has type ‘off_t’

mkfs.jffs2.c:1393: warning: format ‘%9lu’ expects type ‘long unsigned int’, but argument 3 has type ‘off_t’

mkfs.jffs2.c: In function ‘main’:

mkfs.jffs2.c:1772: error: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

mkfs.jffs2.c:1772: error: (Each undeclared identifier is reported only once

mkfs.jffs2.c:1772: error: for each function it appears in.)

mkfs.jffs2.c:1776: error: ‘__BIG_ENDIAN’ undeclared (first use in this function)

make[4]: *** [/Volumes/beluga-b/blackfin_sources/uclinux-dist/user/mtd-utils/build-d769da93a56590c23ce9430a1d970e31e835ae88-host/mkfs.jffs2.o] Error 1

make[3]: *** [all] Error 2

make[2]: *** [mtd-utils] Error 2

make[1]: *** [all] Error 2

make: *** [subdirs] Error 1

 

 

 

QuoteReplyEditDelete

 

 

2008-06-22 19:30:10     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mike Frysinger (UNITED STATES)

Message: 57685   

 

it is because you're building on OS X.  the mkfs.jffs2 apparently assumes a linux build environment.

QuoteReplyEditDelete

 

 

2008-06-22 20:29:58     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mark Noonchester (NEW ZEALAND)

Message: 57686   

 

So hack the mkfs make file??

 

 

QuoteReplyEditDelete

 

 

2008-06-22 20:39:57     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mike Frysinger (UNITED STATES)

Message: 57687   

 

hacking the makefile wont help.  the source code needs rework in order to make it build under OS X.

 

easier to just disable jffs support.

QuoteReplyEditDelete

 

 

2008-06-22 21:23:42     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mark Noonchester (NEW ZEALAND)

Message: 57688   

 

Where do I disable it.  The menu discribe in the wiki does not seem to exist.

 

 

QuoteReplyEditDelete

 

 

2008-06-22 21:30:34     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mike Frysinger (UNITED STATES)

Message: 57689   

 

disable jffs2 filesystem support in your kernel

QuoteReplyEditDelete

 

 

2008-06-22 21:38:35     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mark Noonchester (NEW ZEALAND)

Message: 57690   

 

Found it, It must be disabled in both the app and the kernel.

QuoteReplyEditDelete

 

 

2008-06-22 22:58:33     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mark Noonchester (NEW ZEALAND)

Message: 57693   

 

Still not building because of the same error.  I have disabled it in both the kernel and the apps.  Any ideas?

QuoteReplyEditDelete

 

 

2008-06-22 23:06:47     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mike Frysinger (UNITED STATES)

Message: 57694   

 

building the mtd-utils to run on the target is fine (user/vendor settings)

 

what's failing is the mkfs.jffs2 that runs on the host ... this is only built if JFFS2 is enabled in the kernel.  make sure you dont have CONFIG_JFFS2_FS defined in your kernel config (linux-2.6.x/.config).

 

 

QuoteReplyEditDelete

 

 

2008-06-26 18:55:57     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mark Noonchester (NEW ZEALAND)

Message: 57937   

 

It is still having the same problems.  I have now deleted the uClinux directory and am rechecking it out maybe something has gotten broken in all the checkouts.  If that does not work any ideas?

 

 

 

 

QuoteReplyEditDelete

 

 

2008-06-26 22:17:29     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mike Frysinger (UNITED STATES)

Message: 57942   

 

after you have a failing setup (and you've made sure you've turned off the right options), run `make bugreport` and post the resulting tarball

 

QuoteReplyEditDelete

 

 

2008-07-08 01:31:17     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mark Noonchester (NEW ZEALAND)

Message: 58464   

 

Bug report from clean checkout

 

note the only place I could find to disavle jffs2 was File systems--->Miscellaneous filesystems

 

 

 

bugreport.tgz

QuoteReplyEditDelete

 

 

2008-07-11 01:19:06     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mark Noonchester (NEW ZEALAND)

Message: 58659   

 

uClinux was building and now is not any ideas on what the next step is???

 

 

 

 

QuoteReplyEditDelete

 

 

2008-07-11 10:09:59     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Robin Getz (UNITED STATES)

Message: 58685   

 

Mark:

 

Sorry - Mike is out, and is our resident OS-X/build guru. He will be back on Monday.

 

-Robin

QuoteReplyEditDelete

 

 

2008-07-15 22:28:59     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mike Frysinger (UNITED STATES)

Message: 58890   

 

should be fixed in latest svn ... looks like the Makefiles got out of sync on my systems

QuoteReplyEditDelete

 

 

2008-07-16 01:06:15     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mark Noonchester (NEW ZEALAND)

Message: 58897   

 

Diffrent problem  but now make menuconfig fails

 

CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [N/m/y/?] n

#

# configuration written to .config

#

make ARCH=blackfin   -C config oldconfig

/Volumes/beluga-b/blackfin_sources/uclinux-dist/config/kconfig/conf -o Kconfig

../user/Kconfig:183: missing end statement for this entry

../user/Kconfig:9: missing end statement for this entry

../user/Kconfig:200: invalid statement

../user/Kconfig:235: unexpected end statement

make[2]: *** [oldconfig] Error 1

make[1]: *** [oldconfig_config] Error 2

find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source ../:' > vendors/Kconfig

make ARCH=blackfin   -C config menuconfig

/Volumes/beluga-b/blackfin_sources/uclinux-dist/config/kconfig/mconf Kconfig

../user/Kconfig:183: missing end statement for this entry

../user/Kconfig:9: missing end statement for this entry

../user/Kconfig:200: invalid statement

../user/Kconfig:235: unexpected end statement

make[2]: *** [menuconfig] Error 1

make[1]: *** [config_menuconfig] Error 2

make: *** [menuconfig] Error 2

 

QuoteReplyEditDelete

 

 

2008-07-16 02:04:56     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mike Frysinger (UNITED STATES)

Message: 58899   

 

should be OK now

QuoteReplyEditDelete

 

 

2008-07-16 07:13:09     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mark Noonchester (NEW ZEALAND)

Message: 58941   

 

next problem

 

*

* Runit Utilities

*

runsv (RUNSV) [N/y/?] n

runsvdir (RUNSVDIR) [N/y/?] n

sv (SV) [N/y/?] n

svlogd (SVLOGD) [N/y/?] n

chpst (CHPST) [N/y/?] n

setuidgid (SETUIDGID) [N/y/?] n

envuidgid (ENVUIDGID) [N/y/?] n

envdir (ENVDIR) [N/y/?] n

softlimit (SOFTLIMIT) [N/y/?] n

*

* Print Utilities

*

lpd (LPD) [N/y/?] n

lpr (LPR) [N/y/?] n

lpq (LPQ) [N/y/?] n

ln -sf busybox-1.11.1/examples/depmod.pl depmod.pl

make -C build-busybox-1.11.1

make -C /Volumes/beluga-b/blackfin_sources/uclinux-dist/user/busybox/busybox-1.11.1 O=/Volumes/beluga-b/blackfin_sources/uclinux-dist/user/busybox/build-busybox-1.11.1

  Using /Volumes/beluga-b/blackfin_sources/uclinux-dist/user/busybox/busybox-1.11.1 as source for busybox

  GEN     /Volumes/beluga-b/blackfin_sources/uclinux-dist/user/busybox/build-busybox-1.11.1/Makefile

  SPLIT   include/autoconf.h -> include/config/*

  GEN     include/bbconfigopts.h

  HOSTCC  applets/usage

  GEN     include/usage_compressed.h

  HOSTCC  applets/applet_tables

In file included from /Volumes/beluga-b/blackfin_sources/uclinux-dist/user/busybox/busybox-1.11.1/applets/../include/busybox.h:10,

                 from /Volumes/beluga-b/blackfin_sources/uclinux-dist/user/busybox/busybox-1.11.1/applets/applet_tables.c:16:

/Volumes/beluga-b/blackfin_sources/uclinux-dist/user/busybox/busybox-1.11.1/applets/../include/libbb.h:86: error: conflicting types for ‘setgroups’

/usr/include/unistd.h:561: error: previous declaration of ‘setgroups’ was here

make[7]: *** [applets/applet_tables] Error 1

make[6]: *** [applets] Error 2

make[5]: *** [_all] Error 2

make[4]: *** [all] Error 2

make[3]: *** [all] Error 2

make[2]: *** [busybox] Error 2

make[1]: *** [all] Error 2

make: *** [subdirs] Error 1

 

QuoteReplyEditDelete

 

 

2008-07-16 07:32:21     Re: ‘__LITTLE_ENDIAN’ undeclared (first use in this function)

Mike Frysinger (UNITED STATES)

Message: 58945   

 

please start new threads for new issues ... large threads with lots of unrelated topics is unweildy

Attachments

Outcomes