linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cc-version not available to change EXTRA_CFLAGS
@ 2006-01-21 18:08 Olaf Hering
  2006-01-21 22:12 ` Sam Ravnborg
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Olaf Hering @ 2006-01-21 18:08 UTC (permalink / raw)
  To: Sam Ravnborg, linux-kernel


I want to add a gcc version check for reiserfs, on akpms request.
This one doesnt work with 2.6.16rc1, havent checked if it ever worked.


 make -kj14 O=../O-powerpc-ppc64-defconfig arch/powerpc/mm/mem.o
  GEN    /home/olaf/kernel/olh/ppc64/O-powerpc-ppc64-defconfig/Makefile
scripts/kconfig/conf -s arch/powerpc/Kconfig
arch/powerpc/platforms/83xx/Kconfig:10:warning: 'select' used by config symbol 'MPC834x_SYS' refer to undefined symbol 'DEFAULT_UIMAGE'
#
# using defaults found in .config
#
make[3]: `.kernelrelease' is up to date.
  SPLIT   include/linux/autoconf.h -> include/config/*
+ '[' -lt 0400 ']'
/bin/sh: line 1: [: -lt: unary operator expected
make[2]: `arch/powerpc/mm/mem.o' is up to date.
olaf@pomegranate:~/kernel/olh/ppc64/linux-2.6.16-rc1-olh> quilt diff
Index: linux-2.6.16-rc1-olh/arch/powerpc/mm/Makefile
===================================================================
--- linux-2.6.16-rc1-olh.orig/arch/powerpc/mm/Makefile
+++ linux-2.6.16-rc1-olh/arch/powerpc/mm/Makefile
@@ -5,6 +5,7 @@
 ifeq ($(CONFIG_PPC64),y)
 EXTRA_CFLAGS   += -mno-minimal-toc
 endif
+GCC_BROKEN_VEC := $(shell set -x ; if [ $(call cc-version) -lt 0400 ] ; then echo "y"; fi)

 obj-y                          := fault.o mem.o lmb.o
 obj-$(CONFIG_PPC32)            += init_32.o pgtable_32.o mmu_context_32.o
Index: linux-2.6.16-rc1-olh/fs/reiserfs/Makefile
===================================================================
--- linux-2.6.16-rc1-olh.orig/fs/reiserfs/Makefile
+++ linux-2.6.16-rc1-olh/fs/reiserfs/Makefile
@@ -28,7 +28,7 @@ endif
 # will work around it. If any other architecture displays this behavior,
 # add it here.
 ifeq ($(CONFIG_PPC32),y)
-EXTRA_CFLAGS := -O1
+EXTRA_CFLAGS := $(shell set -x ; if [ $(call cc-version) -lt 0402 ] ; then echo $(call cc-option,-O1); fi ;)
 endif

 TAGS:



-- 
short story of a lazy sysadmin:
 alias appserv=wotan

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: cc-version not available to change EXTRA_CFLAGS
@ 2006-01-21 19:07 Andrey Borzenkov
  2006-01-21 19:11 ` Olaf Hering
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Andrey Borzenkov @ 2006-01-21 19:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: Olaf Hering

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>  make -kj14 O=../O-powerpc-ppc64-defconfig arch/powerpc/mm/mem.o
>   GEN    /home/olaf/kernel/olh/ppc64/O-powerpc-ppc64-defconfig/Makefile
> scripts/kconfig/conf -s arch/powerpc/Kconfig
> arch/powerpc/platforms/83xx/Kconfig:10:warning: 'select' used by config
> symbol \ 'MPC834x_SYS' refer to undefined symbol 'DEFAULT_UIMAGE' #
> # using defaults found in .config
> #
> make[3]: `.kernelrelease' is up to date.
>   SPLIT   include/linux/autoconf.h -> include/config/*
> + '[' -lt 0400 ']'
> /bin/sh: line 1: [: -lt: unary operator expected

does chmod +x scripts/gcc-version.sh help?

Which raises the question - I believed, we support Intel CC for kernel 
compilation? Or was just just a dream?

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD0oaFR6LMutpd94wRAsj3AKDQ/TJDNUFT6HlJ+zkG7mW2pmrRZgCfWjfR
qFqo6sJ1jW/t/w1B26i/hdU=
=ByTQ
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2006-07-23 17:51 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-21 18:08 cc-version not available to change EXTRA_CFLAGS Olaf Hering
2006-01-21 22:12 ` Sam Ravnborg
2006-01-21 22:21   ` Olaf Hering
2006-01-21 22:57 ` Sam Ravnborg
2006-01-21 23:15   ` Olaf Hering
2006-01-21 23:25     ` Sam Ravnborg
2006-01-23 11:02       ` Olaf Hering
2006-02-10 19:47   ` Olaf Hering
2006-02-18  9:03     ` Sam Ravnborg
2006-07-19  9:02 ` Olaf Hering
2006-07-23 17:51   ` Sam Ravnborg
2006-01-21 19:07 Andrey Borzenkov
2006-01-21 19:11 ` Olaf Hering
2006-01-21 19:47   ` Andrey Borzenkov
2006-01-21 21:07     ` Olaf Hering
2006-01-21 22:51 ` Jan Engelhardt
2006-01-21 23:00 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).