Skip to content

Instantly share code, notes, and snippets.

@dileks
Created April 12, 2011 09:20
Show Gist options
  • Select an option

  • Save dileks/915230 to your computer and use it in GitHub Desktop.

Select an option

Save dileks/915230 to your computer and use it in GitHub Desktop.
LANG=C make V=1 CC=clang
$ LANG=C make V=1 CC=clang HOSTCC=clang
[: 1: Illegal number: 4.2.1
rm -f include/config/kernel.release
echo "2.6.38.2$(/bin/bash /home/sd/src/lll-project/kernel/scripts/setlocalversion /home/sd/src/lll-project/kernel)" > include/config/kernel.release
set -e; : ' CHK include/linux/version.h'; mkdir -p include/linux/; (echo \#define LINUX_VERSION_CODE 132646; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) < /home/sd/src/lll-project/kernel/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 : ' UPD include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; fi
set -e; : ' CHK include/generated/utsrelease.h'; mkdir -p include/generated/; if [ `echo -n "2.6.38.2+" | wc -c ` -gt 64 ]; then echo '"2.6.38.2+" exceeds 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.38.2+\";) < include/config/kernel.release > include/generated/utsrelease.h.tmp; if [ -r include/generated/utsrelease.h ] && cmp -s include/generated/utsrelease.h include/generated/utsrelease.h.tmp; then rm -f include/generated/utsrelease.h.tmp; else : ' UPD include/generated/utsrelease.h'; mv -f include/generated/utsrelease.h.tmp include/generated/utsrelease.h; fi
mkdir -p .tmp_versions ; rm -f .tmp_versions/*
make -f scripts/Makefile.build obj=scripts/basic
(cat /dev/null; ) > scripts/basic/modules.order
rm -f .tmp_quiet_recordmcount
make -f scripts/Makefile.build obj=.
(cat /dev/null; ) > modules.order
mkdir -p kernel/
clang -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.6.0/include -I/home/sd/src/lll-project/kernel/arch/x86/include -Iinclude -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-unused-arguments -Wno-missing-field-initializers -Wno-initializer-overrides -Wno-shift-overflow -Wno-unused -Wno-unused-value -Wno-unused-parameter -Wno-unused-variable -Wno-uninitialized -Wno-format -Wno-format-security -Wno-unknown-warning-option -fno-strict-aliasing -fno-common -mno-sse -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -Wno-strict-overflow -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -march=i686 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -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
clang: error: unsupported option '-freg-struct-return'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment