2007-03-06 08:02:14 netflash compilation problem
Peter Jurgensen (DENMARK)
Message: 23092
I just tried to make a uClinux-dist SVN-checkout from 20th february 2007.
The toolchain was checked out at the same time.
netflash will not compile anymore.
I have tried to change the Makefile to include
CFLAGS += $(ROOTDIR)/(LINUXDIR)/include
This removes most of the errors except the ones at line 1746, which has to do with a reboot syscall.
The errors looks like this:
make[2]: Entering directory `/home/uclinux/Blackeye/uClinux/uClinux-dist/user/netflash'
bfin-uclinux-gcc -c -o netflash.o netflash.c -O2 -Wall -D__uClinux__ -DEMBED -fno-builtin -I/home/uclinux/Blackeye/uClinux/uClinux-dist -isystem /home/uclinux/Blackeye/uClinux/uClinux-dist/staging/usr/include -DFTP -DVENDOR=\"AnalogDevices\" -DPRODUCT=\"BF537-STAMP\" -DVERSION=\"3.2.0\" -Dnetflashmain=main
netflash.c:44:28: error: linux/autoconf.h: No such file or directory
netflash.c:62:26: error: linux/blkmem.h: No such file or directory
netflash.c: In function 'decompress':
netflash.c:793: warning: pointer targets in assignment differ in signedness
netflash.c: In function 'local_write':
netflash.c:908: warning: pointer targets in passing argument 2 of 'add_data' differ in signedness
netflash.c: In function 'program_blkmem_segment':
netflash.c:1574: warning: type-punning to incomplete type might break strict-aliasing rules
netflash.c:1576: error: dereferencing pointer to incomplete type
netflash.c:1576: error: 'BMPROGRAM_MAGIC_1' undeclared (first use in this function)
netflash.c:1576: error: (Each undeclared identifier is reported only once
netflash.c:1576: error: for each function it appears in.)
netflash.c:1577: error: dereferencing pointer to incomplete type
netflash.c:1577: error: 'BMPROGRAM_MAGIC_2' undeclared (first use in this function)
netflash.c:1578: error: dereferencing pointer to incomplete type
netflash.c:1579: error: dereferencing pointer to incomplete type
netflash.c:1580: error: dereferencing pointer to incomplete type
netflash.c:1581: error: dereferencing pointer to incomplete type
netflash.c:1582: error: dereferencing pointer to incomplete type
netflash.c:1583: error: dereferencing pointer to incomplete type
netflash.c:1583: error: 'BMPROGRAM_MAGIC_3' undeclared (first use in this function)
netflash.c:1584: error: 'BMPROGRAM' undeclared (first use in this function)
netflash.c: At top level:
netflash.c:1746: error: expected declaration specifiers or '...' before 'raw_reboot'
netflash.c:1746: error: expected declaration specifiers or '...' before 'magic'
netflash.c:1746: error: expected declaration specifiers or '...' before 'magic2'
netflash.c:1746: error: expected declaration specifiers or '...' before 'flag'
netflash.c:1746: warning: type defaults to 'int' in declaration of '_syscall3'
netflash.c: In function 'main':
netflash.c:2087: error: 'BMGETSIZEB' undeclared (first use in this function)
netflash.c:2091: error: 'BMSGSIZE' undeclared (first use in this function)
netflash.c:2326: warning: implicit declaration of function 'raw_reboot'
netflash.c:1757: warning: unused variable 'tmpfd'
make[2]: *** [build_netflash] Error 1
make[2]: Leaving directory `/home/uclinux/Blackeye/uClinux/uClinux-dist/user/netflash'
make[1]: Leaving directory `/home/uclinux/Blackeye/uClinux/uClinux-dist/user'
make[1]: *** [all] Error 2
make: *** [subdirs] Error 1
QuoteReplyEditDelete
2007-03-06 10:44:21 Re: netflash compilation problem
Peter Jurgensen (DENMARK)
Message: 23097
I succeeded in compiling the netflash program.
Changes include:
Adding in Makefile: CFLAGS += -I$(ROOTDIR)/$(LINUXDIR)/include
Changes in netflash.c:
#include <linux/config.h> to #include <linux/autoconf.h>
Changing the "raw_reboot" systemcall to: system("reboot");
and at the same time uncomment the _syscall3 declaration.
Now I can use netflash again, however I don't know if it is a good way working around the compilation problems.
Best regards,
Peter
QuoteReplyEditDelete
2007-03-06 13:27:30 Re: netflash compilation problem
Mike Frysinger (UNITED STATES)
Message: 23108 netflash will need to be properly updated to build with sanitized kernel headers
you can track the issue here:
QuoteReplyEditDelete
2008-02-22 13:12:14 Re: netflash compilation problem
Cameron Barfield (UNITED STATES)
Message: 51512 Sorry to bump the old post, but I'm having the same problems.
I implemented the changes Peter did (I know, not supported), but netflash still fails to build:
In file included from /home/cameron/src/blackfin/svn/uClinux-dist.2008/linux-2.6.x/include/mtd/mtd-user.h:13,
from netflash.c:54:
/home/cameron/src/blackfin/svn/uClinux-dist.2008/linux-2.6.x/include/mtd/mtd-abi.h:18: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
netflash.c: In function 'local_write':
netflash.c:907: warning: pointer targets in passing argument 2 of 'add_data' differ in signedness
netflash.c: In function 'program_mtd_segment':
netflash.c:1538: warning: missing braces around initializer
netflash.c:1538: warning: (near initialization for 'marker.magic')
Since the MTD stuff is actually in the kernel, it can't be a netflash problem, but all the other MTD related stuff builds okay.
Another weird thing is that if run 'make' I don't get any errors about netflash causing problems:
make[6]: Entering directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build/po'
if test "alsa-utils" = "gettext-tools"; then \
/bin/sh ../../mkinstalldirs /home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/DESTDIR/usr/share/gettext/po; \
for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \
/usr/bin/ginstall -c -m 644 ../../po/$file \
/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/DESTDIR/usr/share/gettext/po/$file; \
done; \
for file in Makevars; do \
rm -f /home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/DESTDIR/usr/share/gettext/po/$file; \
done; \
else \
: ; \
fi
make[6]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build/po'
make[6]: Entering directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build'
make[7]: Entering directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build'
make[7]: Nothing to be done for `install-exec-am'.
make[7]: Nothing to be done for `install-data-am'.
make[7]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build'
make[6]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build'
make[5]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build'
make[4]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils'
make[3]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps'
make[2]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user'
make: *** [subdirs] Error 1
cameron@camlinux:~/src/blackfin/svn/uClinux-dist.2008$
I have to run gcc by hand to get any kind of message about netflash:
bfin-uclinux-gcc -c -o netflash.o netflash.c -O2 -Wall -D__uClinux__ -DEMBED -fno-builtin -I/home/cameron/src/blackfin/svn/uClinux-dist.2008 -I/home/cameron/src/blackfin/svn/uClinux-dist.2008/linux-2.6.x/include -isystem /home/cameron/src/blackfin/svn/uClinux-dist.2008/staging/usr/include -DFTP -DVENDOR=\"AnalogDevices\" -DPRODUCT=\"BF537-STAMP\" -DVERSION=\"3.2.0\" -Dnetflashmain=main
QuoteReplyEditDelete
2008-02-22 15:28:16 Re: netflash compilation problem
Mike Frysinger (UNITED STATES)
Message: 51520 should be fixed in svn for 2008R1 and trunk
QuoteReplyEditDelete
2008-02-25 11:54:50 Re: netflash compilation problem
Cameron Barfield (UNITED STATES)
Message: 51598 Netflash still fails to build silently after updating the branch:
cameron@camlinux:~/src/blackfin/svn/uClinux-dist.2008$ svn info
Path: .
URL: svn://sources.blackfin.uclinux.org/uclinux-dist/branches/2008R1
Repository Root: svn://sources.blackfin.uclinux.org/uclinux-dist
Repository UUID: 3e2a5524-39e8-4cb9-84a9-c49da69cba3a
Revision: 6299
Node Kind: directory
Schedule: normal
Last Changed Author: grace
Last Changed Rev: 6297
Last Changed Date: 2008-02-25 01:36:54 -0800 (Mon, 25 Feb 2008)
Tail of 'make' output:
make[6]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build/po'
make[6]: Entering directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build'
make[7]: Entering directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build'
make[7]: Nothing to be done for `install-exec-am'.
make[7]: Nothing to be done for `install-data-am'.
make[7]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build'
make[6]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build'
make[5]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils/build'
make[4]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps/alsa-utils'
make[3]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/blkfin-apps'
make[2]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user'
make: *** [subdirs] Error 1
cameron@camlinux:~/src/blackfin/svn/uClinux-dist.2008$
Toolchain svn info:
cameron@camlinux:~/src/blackfin/svn/toolchain.2008$ svn info
Path: .
URL: svn://sources.blackfin.uclinux.org/toolchain/branches/toolchain_08r1_branch
Repository Root: svn://sources.blackfin.uclinux.org/toolchain
Repository UUID: 2adf4935-75e9-4407-93b2-34b21a1880a4
Revision: 2176
Node Kind: directory
Schedule: normal
Last Changed Author: vapier
Last Changed Rev: 2170
Last Changed Date: 2008-01-30 12:01:58 -0800 (Wed, 30 Jan 2008)
bugreport.tgz
QuoteReplyEditDelete
2008-02-25 13:12:58 Re: netflash compilation problem
Mike Frysinger (UNITED STATES)
Message: 51606 that isnt a silent build failure, that's a parallel build failure where you removed the actual error output
use `make NON_SMP_BUILD=1` to force aborting at the first error
QuoteReplyEditDelete
2008-02-25 14:08:54 Re: netflash compilation problem
Cameron Barfield (UNITED STATES)
Message: 51616 Ah, I'd forgotten that this box was dual core.
[ ! -d "netflash" ] || ( touch netflash/.sgbuilt_user && make -j1 -C netflash ) || exit $?
make[3]: Entering directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/netflash'
bfin-linux-uclibc-gcc -pipe -Wall -O3 -ffast-math -mfast-fp -mcpu=bf537-0.2 -DVENDOR=\"AnalogDevices\" -DPRODUCT=\"BF537-STAMP\" -DVERSION=\"3.2.0\" -Dnetflashmain=main -I/home/cameron/src/blackfin/svn/uClinux-dist.2008/linux-2.6.x/include -DEMBED -D__uClinux__ -I/home/cameron/src/blackfin/svn/uClinux-dist.2008 -mcpu=bf537-0.2 -c -o tftpmain.o tftpmain.c
tftpmain.c:119: warning: missing braces around initializer
tftpmain.c:119: warning: (near initialization for 'tftpcmdtab[1]')
tftpmain.c:126: warning: return type defaults to 'int'
tftpmain.c:178: warning: return type defaults to 'int'
tftpmain.c: In function 'tftpsetpeer':
tftpmain.c:187: warning: implicit declaration of function 'tftpmakeargv'
tftpmain.c:193: warning: 'return' with no value, in function returning non-void
tftpmain.c:196: warning: implicit declaration of function 'inet_addr'
tftpmain.c:204: warning: 'return' with no value, in function returning non-void
tftpmain.c:220: warning: 'return' with no value, in function returning non-void
tftpmain.c: At top level:
tftpmain.c:241: warning: return type defaults to 'int'
tftpmain.c: In function 'tftpmodecmd':
tftpmain.c:248: warning: 'return' with no value, in function returning non-void
tftpmain.c:255: warning: implicit declaration of function 'tftpsetmode'
tftpmain.c:256: warning: 'return' with no value, in function returning non-void
tftpmain.c:270: warning: 'return' with no value, in function returning non-void
tftpmain.c: At top level:
tftpmain.c:274: warning: return type defaults to 'int'
tftpmain.c:279: warning: return type defaults to 'int'
tftpmain.c:284: warning: return type defaults to 'int'
tftpmain.c:388: warning: return type defaults to 'int'
tftpmain.c: In function 'tftpget':
tftpmain.c:396: warning: 'return' with no value, in function returning non-void
tftpmain.c:408: warning: implicit declaration of function 'tftpgetusage'
tftpmain.c:409: warning: 'return' with no value, in function returning non-void
tftpmain.c:415: warning: 'return' with no value, in function returning non-void
tftpmain.c:443: warning: implicit declaration of function 'local_creat'
tftpmain.c:446: warning: 'return' with no value, in function returning non-void
tftpmain.c:452: warning: implicit declaration of function 'tftprecvfile'
tftpmain.c: At top level:
tftpmain.c:470: warning: return type defaults to 'int'
tftpmain.c: In function 'tftpintr':
tftpmain.c:549: warning: implicit declaration of function 'alarm'
tftpmain.c: At top level:
tftpmain.c:640: warning: return type defaults to 'int'
tftpmain.c:663: warning: return type defaults to 'int'
tftpmain.c:699: warning: return type defaults to 'int'
tftpmain.c:706: warning: return type defaults to 'int'
tftpmain.c: In function 'tftpsetverbose':
tftpmain.c:709: warning: control reaches end of non-void function
tftpmain.c: In function 'tftpsettrace':
tftpmain.c:702: warning: control reaches end of non-void function
tftpmain.c: In function 'tftpmakeargv':
tftpmain.c:659: warning: control reaches end of non-void function
tftpmain.c: In function 'tftpgetusage':
tftpmain.c:474: warning: control reaches end of non-void function
tftpmain.c: In function 'tftpsetmode':
tftpmain.c:289: warning: control reaches end of non-void function
tftpmain.c: In function 'tftpsetascii':
tftpmain.c:281: warning: control reaches end of non-void function
tftpmain.c: In function 'tftpsetbinary':
tftpmain.c:276: warning: control reaches end of non-void function
tftpmain.c: In function 'tftpmain':
tftpmain.c:173: warning: control reaches end of non-void function
bfin-linux-uclibc-gcc -pipe -Wall -O3 -ffast-math -mfast-fp -mcpu=bf537-0.2 -DVENDOR=\"AnalogDevices\" -DPRODUCT=\"BF537-STAMP\" -DVERSION=\"3.2.0\" -Dnetflashmain=main -I/home/cameron/src/blackfin/svn/uClinux-dist.2008/linux-2.6.x/include -DEMBED -D__uClinux__ -I/home/cameron/src/blackfin/svn/uClinux-dist.2008 -mcpu=bf537-0.2 -c -o tftp.o tftp.c
tftp.c:185: warning: return type defaults to 'int'
tftp.c: In function 'tftprecvfile':
tftp.c:199: warning: implicit declaration of function 'tftpstartclock'
tftp.c:203: warning: implicit declaration of function 'strcmp'
tftp.c:208: warning: implicit declaration of function 'tftpmakerequest'
tftp.c:218: warning: implicit declaration of function 'exit'
tftp.c:218: warning: incompatible implicit declaration of built-in function 'exit'
tftp.c:222: warning: implicit declaration of function 'tftptpacket'
tftp.c:225: warning: implicit declaration of function 'alarm'
tftp.c:229: warning: implicit declaration of function 'tftpwrite_behind'
tftp.c:235: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness
tftp.c:262: warning: implicit declaration of function 'tftpsynchnet'
tftp.c:272: warning: implicit declaration of function 'tftpwriteit'
tftp.c:274: warning: implicit declaration of function 'tftpnak'
tftp.c:285: warning: implicit declaration of function 'local_fclose'
tftp.c:286: warning: implicit declaration of function 'tftpstopclock'
tftp.c:288: warning: implicit declaration of function 'tftpprintstats'
tftp.c: At top level:
tftp.c:292: warning: return type defaults to 'int'
tftp.c: In function 'tftpmakerequest':
tftp.c:300: warning: implicit declaration of function 'strcpy'
tftp.c:300: warning: incompatible implicit declaration of built-in function 'strcpy'
tftp.c:301: warning: implicit declaration of function 'strlen'
tftp.c:301: warning: incompatible implicit declaration of built-in function 'strlen'
tftp.c: At top level:
tftp.c:331: warning: return type defaults to 'int'
tftp.c: In function 'tftpnak':
tftp.c:352: warning: incompatible implicit declaration of built-in function 'strcpy'
tftp.c:353: warning: incompatible implicit declaration of built-in function 'strlen'
tftp.c: At top level:
tftp.c:362: warning: return type defaults to 'int'
tftp.c:404: warning: return type defaults to 'int'
tftp.c:408: warning: return type defaults to 'int'
tftp.c:413: warning: return type defaults to 'int'
tftp.c: In function 'tftpprintstats':
tftp.c:420: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
tftp.c:432: warning: control reaches end of non-void function
tftp.c: In function 'tftpstopclock':
tftp.c:410: warning: control reaches end of non-void function
tftp.c: In function 'tftpstartclock':
tftp.c:406: warning: control reaches end of non-void function
tftp.c: In function 'tftptpacket':
tftp.c:398: warning: control reaches end of non-void function
tftp.c: In function 'tftpnak':
tftp.c:359: warning: control reaches end of non-void function
tftp.c: In function 'tftprecvfile':
tftp.c:289: warning: control reaches end of non-void function
bfin-linux-uclibc-gcc -pipe -Wall -O3 -ffast-math -mfast-fp -mcpu=bf537-0.2 -DVENDOR=\"AnalogDevices\" -DPRODUCT=\"BF537-STAMP\" -DVERSION=\"3.2.0\" -Dnetflashmain=main -I/home/cameron/src/blackfin/svn/uClinux-dist.2008/linux-2.6.x/include -DEMBED -D__uClinux__ -I/home/cameron/src/blackfin/svn/uClinux-dist.2008 -mcpu=bf537-0.2 -c -o tftpsubs.o tftpsubs.c
tftpsubs.c:95:41: warning: "/*" within comment
tftpsubs.c:154: warning: return type defaults to 'int'
tftpsubs.c: In function 'tftpwriteit':
tftpsubs.c:161: warning: implicit declaration of function 'tftpwrite_behind'
tftpsubs.c: At top level:
tftpsubs.c:174: warning: return type defaults to 'int'
tftpsubs.c: In function 'tftpwrite_behind':
tftpsubs.c:198: warning: implicit declaration of function 'local_write'
tftpsubs.c:206: warning: implicit declaration of function 'local_fseek'
tftpsubs.c:212: warning: implicit declaration of function 'local_putc'
tftpsubs.c: In function 'tftpsynchnet':
tftpsubs.c:246: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness
bfin-linux-uclibc-gcc -pipe -Wall -O3 -ffast-math -mfast-fp -mcpu=bf537-0.2 -DVENDOR=\"AnalogDevices\" -DPRODUCT=\"BF537-STAMP\" -DVERSION=\"3.2.0\" -Dnetflashmain=main -I/home/cameron/src/blackfin/svn/uClinux-dist.2008/linux-2.6.x/include -DEMBED -D__uClinux__ -I/home/cameron/src/blackfin/svn/uClinux-dist.2008 -mcpu=bf537-0.2 -c -o http.o http.c
http.c: In function 'httpreadline':
http.c:28: warning: implicit declaration of function 'read'
http.c: In function 'openhttp':
http.c:95: warning: implicit declaration of function 'inet_aton'
http.c:108: warning: implicit declaration of function 'close'
http.c:119: warning: implicit declaration of function 'write'
http.c:50: warning: unused variable 'n'
bfin-linux-uclibc-gcc -c -o netflash.o netflash.c -pipe -Wall -O3 -ffast-math -mfast-fp -mcpu=bf537-0.2 -DVENDOR=\"AnalogDevices\" -DPRODUCT=\"BF537-STAMP\" -DVERSION=\"3.2.0\" -Dnetflashmain=main -I/home/cameron/src/blackfin/svn/uClinux-dist.2008/linux-2.6.x/include -DEMBED -D__uClinux__ -I/home/cameron/src/blackfin/svn/uClinux-dist.2008 -mcpu=bf537-0.2
netflash.c:80:23: error: fileblock.h: No such file or directory
netflash.c: In function 'add_data':
netflash.c:247: error: dereferencing pointer to incomplete type
netflash.c:248: error: dereferencing pointer to incomplete type
netflash.c:251: error: dereferencing pointer to incomplete type
netflash.c:251: error: dereferencing pointer to incomplete type
netflash.c:252: error: dereferencing pointer to incomplete type
netflash.c:252: error: dereferencing pointer to incomplete type
netflash.c:255: error: dereferencing pointer to incomplete type
netflash.c:255: error: dereferencing pointer to incomplete type
netflash.c:257: error: dereferencing pointer to incomplete type
netflash.c:257: error: dereferencing pointer to incomplete type
netflash.c:302: error: dereferencing pointer to incomplete type
netflash.c:308: error: dereferencing pointer to incomplete type
netflash.c:311: error: dereferencing pointer to incomplete type
netflash.c:312: error: dereferencing pointer to incomplete type
netflash.c:312: error: dereferencing pointer to incomplete type
netflash.c:314: error: dereferencing pointer to incomplete type
netflash.c:316: error: dereferencing pointer to incomplete type
netflash.c:316: error: dereferencing pointer to incomplete type
netflash.c:317: error: dereferencing pointer to incomplete type
netflash.c:336: error: dereferencing pointer to incomplete type
netflash.c:339: error: dereferencing pointer to incomplete type
netflash.c:340: error: dereferencing pointer to incomplete type
netflash.c:345: error: dereferencing pointer to incomplete type
netflash.c:347: error: dereferencing pointer to incomplete type
netflash.c: In function 'remove_data':
netflash.c:368: error: dereferencing pointer to incomplete type
netflash.c:369: error: dereferencing pointer to incomplete type
netflash.c:369: error: dereferencing pointer to incomplete type
netflash.c:372: error: dereferencing pointer to incomplete type
netflash.c:372: error: dereferencing pointer to incomplete type
netflash.c:374: error: dereferencing pointer to incomplete type
netflash.c:375: error: dereferencing pointer to incomplete type
netflash.c:376: error: dereferencing pointer to incomplete type
netflash.c:376: error: dereferencing pointer to incomplete type
netflash.c:377: error: dereferencing pointer to incomplete type
netflash.c: In function 'chksum':
netflash.c:403: error: dereferencing pointer to incomplete type
netflash.c:404: error: dereferencing pointer to incomplete type
netflash.c:404: error: dereferencing pointer to incomplete type
netflash.c:405: error: dereferencing pointer to incomplete type
netflash.c:405: error: dereferencing pointer to incomplete type
netflash.c:415: error: dereferencing pointer to incomplete type
netflash.c:415: error: dereferencing pointer to incomplete type
netflash.c:418: error: dereferencing pointer to incomplete type
netflash.c:419: error: dereferencing pointer to incomplete type
netflash.c:420: error: dereferencing pointer to incomplete type
netflash.c: In function 'local_write':
netflash.c:963: warning: pointer targets in passing argument 2 of 'add_data' differ in signedness
netflash.c: In function 'get_segment':
netflash.c:1453: error: dereferencing pointer to incomplete type
netflash.c:1455: error: dereferencing pointer to incomplete type
netflash.c:1455: error: dereferencing pointer to incomplete type
netflash.c:1458: error: dereferencing pointer to incomplete type
netflash.c:1458: error: dereferencing pointer to incomplete type
netflash.c:1460: error: dereferencing pointer to incomplete type
netflash.c:1461: error: dereferencing pointer to incomplete type
netflash.c:1461: error: dereferencing pointer to incomplete type
netflash.c:1464: error: dereferencing pointer to incomplete type
netflash.c:1464: error: dereferencing pointer to incomplete type
netflash.c:1465: error: dereferencing pointer to incomplete type
netflash.c:1468: error: dereferencing pointer to incomplete type
netflash.c:1468: error: dereferencing pointer to incomplete type
netflash.c:1476: error: dereferencing pointer to incomplete type
netflash.c: In function 'program_flash':
netflash.c:1756: warning: format '%3d' expects type 'int', but argument 3 has type 'long unsigned int'
netflash.c: At top level:
netflash.c:1835: error: expected identifier or '(' before '<<' token
netflash.c:1846: error: expected identifier or '(' before '>>' token
make[3]: *** [build_netflash] Error 1
make[3]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user/netflash'
make[2]: *** [netflash] Error 2
make[2]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/cameron/src/blackfin/svn/uClinux-dist.2008/user'
make: *** [subdirs] Error 1
cameron@camlinux:~/src/blackfin/svn/uClinux-dist.2008$
I couldn't find fileblock.h in the old netflash stuff, either.
QuoteReplyEditDelete
2008-02-25 14:58:57 Re: netflash compilation problem
Mike Frysinger (UNITED STATES)
Message: 51620 fileblock.h is in svn ... that means your svn checkout is broken
vapier@G5[ppc] 0:0 trunk $ svn ls user/netflash/fileblock.h
fileblock.h
QuoteReplyEditDelete
2008-02-25 15:09:08 Re: netflash compilation problem
Cameron Barfield (UNITED STATES)
Message: 51624
fileblock.h is only in the trunk, not the branch.
cameron@camlinux:~/src/blackfin/svn/uClinux-dist.2008$ svn ls user/netflash/fileblock.h
svn: 'user/netflash/fileblock.h' has no URL
cameron@camlinux:~/src/blackfin/svn/uClinux-dist.trunk$ svn ls user/netflash/fileblock.h
fileblock.h
QuoteReplyEditDelete
2008-02-25 16:23:13 Re: netflash compilation problem
Mike Frysinger (UNITED STATES)
Message: 51629 looks like when i copied from trunk to branch, i didnt `svn add`
should be OK now
QuoteReplyEditDelete
2008-02-28 14:13:48 Re: netflash compilation problem
Cameron Barfield (UNITED STATES)
Message: 51826 Awesome. It builds now. Thanks.