Hi Danny,
Danny Li wrote:
Greg Ungerer wrote:
Danny Li wrote:
I got "as: unrecognized option '-EL'" when build uClinux-dist-20080808
with
uClinux-dist-20080808-20090312.patch.
I did make menuconfig and selected Atmel AT91 processor and all others
unmodified.
What should I do to get ahead?
Can you run "make V=1" and send the output here?
da...@diligent:~/downloads/uClinux-dist-20080808> make V=1
make -C tools/ucfront
make[1]: Entering directory
`/home/danny/downloads/uClinux-dist-20080808/tools/ucfront'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/danny/downloads/uClinux-dist-20080808/tools/ucfront'
ln -sf /home/danny/downloads/uClinux-dist-20080808/tools/ucfront/ucfront
tools/ucfront-gcc
ln -sf /home/danny/downloads/uClinux-dist-20080808/tools/ucfront/ucfront
tools/ucfront-g++
ln -sf /home/danny/downloads/uClinux-dist-20080808/tools/ucfront/ucfront-ld
tools/ucfront-ld
chmod +x tools/romfs-inst.sh tools/modules-alias.sh
. linux-2.6.x/.config; if [ "$CONFIG_INITRAMFS_SOURCE" != "" ]; then \
mkdir -p `dirname $CONFIG_INITRAMFS_SOURCE`; \
touch $CONFIG_INITRAMFS_SOURCE || exit 1; \
fi
make ARCH=arm CROSS_COMPILE=arm-linux-20070808- -j4 -C linux-2.6.x || exit 1
make[1]: Entering directory
`/home/danny/downloads/uClinux-dist-20080808/linux-2.6.x'
set -e; :; mkdir -p include/linux/; (echo \#define LINUX_VERSION_CODE
132634; echo
'#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) <
/home/danny/downloads/uClinux-dist-20080808/linux-2.6.x/Makefile >
include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s
include/linux/version.h include/linux/version.h.tmp; then rm -f
include/linux/version.h.tmp; else :; mv -f include/linux/version.h.tmp
include/linux/version.h; fi
rm -f include/config/kernel.release
set -e; asmlink=`readlink include/asm | cut -d '-' -f 2`; \
if [ -L include/asm ]; then \
if [ "$asmlink" != "arm" ]; then \
echo "ERROR: the symlink include/asm points to
asm-$asmlink but
asm-arm was expected"; \
echo " set ARCH or save .config and run 'make
mrproper' to
fix it"; \
exit 1; \
fi; \
else \
echo ' SYMLINK include/asm -> include/asm-arm'; \
if [ ! -d include ]; then \
mkdir -p include; \
fi; \
ln -fsn asm-arm include/asm; \
fi
echo 2.6.26-uc0 > include/config/kernel.release
make -f scripts/Makefile.build obj=scripts/basic
(cat /dev/null; ) > scripts/basic/modules.order
make -f scripts/Makefile.build obj=arch/arm/tools include/asm-arm/mach-types.h
set -e; :; mkdir -p include/linux/; if [ `echo -n "2.6.26-uc0" | wc -c `
-gt 64 ];
then echo '"2.6.26-uc0" exceeds 64 characters' >&2; exit 1; fi; (echo \#define
UTS_RELEASE \"2.6.26-uc0\";) < include/config/kernel.release >
include/linux/utsrelease.h.tmp; if [ -r include/linux/utsrelease.h ] && cmp -s
include/linux/utsrelease.h include/linux/utsrelease.h.tmp; then rm -f
include/linux/utsrelease.h.tmp; else :; mv -f include/linux/utsrelease.h.tmp
include/linux/utsrelease.h; fi
make[2]: `include/asm-arm/mach-types.h' is up to date.
make -f scripts/Makefile.build obj=scripts
mkdir -p .tmp_versions ; rm -f .tmp_versions/*
make -f scripts/Makefile.build obj=scripts/mod
(cat /dev/null; ) > scripts/mod/modules.order
make -f scripts/Makefile.build obj=.
arm-linux-20070808-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem
include
-D__KERNEL__ -Iinclude -include include/linux/autoconf.h -mlittle-endian -Wall
-Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -fno-stack-protector -marm
-fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu
-mno-thumb-interwork
-D__LINUX_ARM_ARCH__=4 -march=armv4t -mtune=arm7tdmi -msoft-float -Uarm
-fno-omit-frame-pointer -fno-optimize-sibling-calls
-Wdeclaration-after-statement
-Wno-pointer-sign -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)"
-D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/empty.o
scripts/mod/empty.c
(cat /dev/null; ) > modules.order
mkdir -p kernel/
as: unrecognized option '-EL'
Hmm, that is odd.
Can you take the above gcc line and add a "-v" option to it?
So you should "cd linux-2.6.x" and then cut the above line and
paste it on the command line adding "-v", like so:
arm-linux-20070808-gcc -v -Wp,-MD,scripts/mod/.empty.o.d -nostdinc
-isystem include
-D__KERNEL__ -Iinclude -include include/linux/autoconf.h
-mlittle-endian -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -fno-stack-protector -marm
-fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu
-mno-thumb-interwork
-D__LINUX_ARM_ARCH__=4 -march=armv4t -mtune=arm7tdmi -msoft-float -Uarm
-fno-omit-frame-pointer -fno-optimize-sibling-calls
-Wdeclaration-after-statement
-Wno-pointer-sign -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(empty)"
-D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/empty.o
scripts/mod/empty.c
Regards
Greg
make[3]: *** [scripts/mod/empty.o] Error 1
make[2]: *** [scripts/mod] Error 2
arm-linux-20070808-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem include
-D__KERNEL__ -Iinclude -include include/linux/autoconf.h -mlittle-endian -Wall
-Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -fno-stack-protector -marm
-fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu
-mno-thumb-interwork
-D__LINUX_ARM_ARCH__=4 -march=armv4t -mtune=arm7tdmi -msoft-float -Uarm
-fno-omit-frame-pointer -fno-optimize-sibling-calls
-Wdeclaration-after-statement
-Wno-pointer-sign -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(bounds)"
-D"KBUILD_MODNAME=KBUILD_STR(bounds)" -fverbose-asm -S -o kernel/bounds.s
kernel/bounds.c
make[1]: *** [scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
mkdir -p include/linux/
(set -e; echo "#ifndef __LINUX_BOUNDS_H__"; echo "#define
__LINUX_BOUNDS_H__";
echo "/*"; echo " * DO NOT MODIFY."; echo " *"; echo " * This file was
generated by
Kbuild"; echo " *"; echo " */"; echo ""; sed -ne "/^->/{s:->#\(.*\):/*
\1 */:;
s:^->\([^ ]*\) [\$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"
kernel/bounds.s; echo ""; echo "#endif" ) > include/linux/bounds.h
mkdir -p arch/arm/kernel/
arm-linux-20070808-gcc -Wp,-MD,arch/arm/kernel/.asm-offsets.s.d -nostdinc
-isystem
include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h
-mlittle-endian -Wall
-Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -fno-stack-protector -marm
-fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu
-mno-thumb-interwork
-D__LINUX_ARM_ARCH__=4 -march=armv4t -mtune=arm7tdmi -msoft-float -Uarm
-fno-omit-frame-pointer -fno-optimize-sibling-calls
-Wdeclaration-after-statement
-Wno-pointer-sign -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(asm_offsets)"
-D"KBUILD_MODNAME=KBUILD_STR(asm_offsets)" -fverbose-asm -S -o
arch/arm/kernel/asm-offsets.s arch/arm/kernel/asm-offsets.c
In file included from include/linux/sched.h:52,
from arch/arm/kernel/asm-offsets.c:13:
include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory
In file included from include/linux/sched.h:52,
from arch/arm/kernel/asm-offsets.c:13:
include/linux/kernel.h:156: error: expected declaration specifiers or ‘...’
before ‘va_list’
include/linux/kernel.h:160: error: expected declaration specifiers or ‘...’
before ‘va_list’
include/linux/kernel.h:164: error: expected declaration specifiers or ‘...’
before ‘va_list’
include/linux/kernel.h:168: error: expected declaration specifiers or ‘...’
before ‘va_list’
include/linux/kernel.h:172: error: expected declaration specifiers or ‘...’
before ‘va_list’
include/linux/kernel.h:186: error: expected declaration specifiers or ‘...’
before ‘va_list’
make[2]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory
`/home/danny/downloads/uClinux-dist-20080808/linux-2.6.x'
make: *** [linux] Error 1
Regards,
Danny
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
--
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: [email protected]
SnapGear, a McAfee Company PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev