public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tom Duffy <Tom.Duffy@Sun.COM>
To: Andi Kleen <ak@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fix x86_64 build of mmconfig.c
Date: Thu, 05 Aug 2004 13:49:16 -0700	[thread overview]
Message-ID: <1091738956.3214.6.camel@duffman> (raw)
In-Reply-To: <20040805223205.3dd2ee1a.ak@suse.de>

[-- Attachment #1: Type: text/plain, Size: 10014 bytes --]

On Thu, 2004-08-05 at 22:32 +0200, Andi Kleen wrote:
> It never failed this way for me in hundreds of builds. Why is it failing for you?

I don't know.

> What gcc version do you use? 

$ gcc -v
Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
infodir=/usr/share/info --enable-shared --enable-threads=posix --
disable-checking --disable-libunwind-exceptions --with-system-zlib --
enable-__cxa_atexit --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

> Normally -Ifoo and -I foo should be really equivalent.

You'd think.  It seems that everywhere else in the kernel, there is no
space in between -I and dir.

[linux-2.6.8-rc3]$ find -name Makefile -exec grep -H \\-I {} \;
./arch/i386/mach-generic/Makefile:EXTRA_CFLAGS  += -I../kernel
./arch/i386/Makefile:mflags-$(CONFIG_X86_VOYAGER)       := -Iinclude/asm-i386/mach-voyager
./arch/i386/Makefile:mflags-$(CONFIG_X86_VISWS) := -Iinclude/asm-i386/mach-visws./arch/i386/Makefile:mflags-$(CONFIG_X86_NUMAQ) := -Iinclude/asm-i386/mach-numaq./arch/i386/Makefile:mflags-$(CONFIG_X86_BIGSMP)        := -Iinclude/asm-i386/mach-bigsmp
./arch/i386/Makefile:mflags-$(CONFIG_X86_SUMMIT) := -Iinclude/asm-i386/mach-summit
./arch/i386/Makefile:mflags-$(CONFIG_X86_GENERICARCH) := -Iinclude/asm-i386/mach-generic
./arch/i386/Makefile:mflags-$(CONFIG_X86_ES7000)        := -Iinclude/asm-i386/mach-es7000
./arch/i386/Makefile:mflags-y += -Iinclude/asm-i386/mach-default
./arch/i386/mach-voyager/Makefile:EXTRA_CFLAGS  += -I../kernel
./arch/i386/boot/Makefile:HOSTCFLAGS_build.o := -Iinclude
./arch/sparc64/kernel/Makefile:CFLAGS_ioctl32.o += -Ifs/
./arch/sparc64/math-emu/Makefile:EXTRA_CFLAGS = -I. -Iinclude/math-emu -w
./arch/ppc/boot/lib/Makefile:CFLAGS_kbd.o       += -Idrivers/char
./arch/ppc/boot/Makefile:CFLAGS         += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include
./arch/ppc/boot/Makefile:HOSTCFLAGS     += -Iarch/$(ARCH)/boot/include
./arch/ppc/platforms/Makefile:CFLAGS_pmac_setup.o       += -Iarch/$(ARCH)/mm
./arch/ppc/Makefile:CPPFLAGS    += -Iarch/$(ARCH)
./arch/ppc/Makefile:aflags-y    += -Iarch/$(ARCH)
./arch/ppc/Makefile:cflags-y    += -Iarch/$(ARCH) -msoft-float -pipe \
./arch/mips/lasat/image/Makefile:       $(CC) -fno-pic $(HEAD_DEFINES) -I$(TOPDIR)/include -c -o $@ $<
./arch/mips/kernel/Makefile:CFLAGS_ioctl32.o    += -Ifs/
./arch/mips/Makefile:cflags-y                   := -I $(TOPDIR)/include/asm/gcc
./arch/mips/Makefile:cflags-$(CONFIG_MACH_JAZZ) += -Iinclude/asm-mips/mach-jazz
./arch/mips/Makefile:cflags-$(CONFIG_SOC_AU1X00)        += -Iinclude/asm-mips/mach-au1x00
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_PB1000)       += -Iinclude/asm-mips/mach-pb1x00
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_PB1100)       += -Iinclude/asm-mips/mach-pb1x00
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_PB1500)       += -Iinclude/asm-mips/mach-pb1x00
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_PB1550)       += -Iinclude/asm-mips/mach-pb1x00
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_DB1000)       += -Iinclude/asm-mips/mach-db1x00
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_DB1100)       += -Iinclude/asm-mips/mach-db1x00
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_DB1500)       += -Iinclude/asm-mips/mach-db1x00
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_BOSPORUS)     += -Iinclude/asm-mips/mach-db1x00
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_MIRAGE)       += -Iinclude/asm-mips/mach-db1x00
./arch/mips/Makefile:cflags-$(CONFIG_MACH_DECSTATION)+= -Iinclude/asm-mips/mach-dec
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_EV64120)      += -Iinclude/asm-mips/mach-ev64120
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_EV96100)      += -Iinclude/asm-mips/mach-ev96100
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_ATLAS)        += -Iinclude/asm-mips/mach-atlas
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_ATLAS)        += -Iinclude/asm-mips/mach-mips
./arch/mips/Makefile:cflags-$(CONFIG_MIPS_MALTA)        += -Iinclude/asm-mips/mach-mips
./arch/mips/Makefile:cflags-$(CONFIG_MOMENCO_OCELOT)    += -Iinclude/asm-mips/mach-ocelot
./arch/mips/Makefile:cflags-$(CONFIG_PMC_YOSEMITE)      += -Iinclude/asm-mips/mach-yosemite
./arch/mips/Makefile:cflags-$(CONFIG_MOMENCO_JAGUAR_ATX)        += -Iinclude/asm-mips/mach-ja
./arch/mips/Makefile:cflags-$(CONFIG_LASAT)             += -Iinclude/asm-mips/mach-lasat
./arch/mips/Makefile:cflags-$(CONFIG_MACH_VR41XX)       += -Iinclude/asm-mips/mach-vr41xx
./arch/mips/Makefile:cflags-$(CONFIG_SGI_IP22)  += -Iinclude/asm-mips/mach-ip22
./arch/mips/Makefile:# SGI-IP27 (Origin200/2000)
./arch/mips/Makefile:cflags-$(CONFIG_SGI_IP27)  += -Iinclude/asm-mips/mach-ip27
./arch/mips/Makefile:# SGI-IP32 (O2)
./arch/mips/Makefile:cflags-$(CONFIG_SGI_IP32)  += -Iinclude/asm-mips/mach-ip32
./arch/mips/Makefile:cflags-$(CONFIG_SNI_RM200_PCI)     += -Iinclude/asm-mips/mach-rm200
./arch/mips/Makefile:cflags-y                   += -Iinclude/asm-mips/mach-generic
./arch/sparc/math-emu/Makefile:EXTRA_CFLAGS = -I. -I$(TOPDIR)/include/math-emu -w
./arch/um/kernel/Makefile:      -I/usr/include -I../include
./arch/um/sys-ppc/Makefile:EXTRA_AFLAGS := -DCONFIG_PPC32 -I. -I$(TOPDIR)/arch/ppc/kernel
./arch/um/Makefile:ARCH_INCLUDE = -I$(ARCH_DIR)/include
./arch/um/Makefile:USER_CFLAGS := $(patsubst -I%,,$(CFLAGS))
./arch/cris/arch-v10/boot/compressed/Makefile:CC = gcc-cris -melf -I $(TOPDIR)/include
./arch/cris/arch-v10/boot/rescue/Makefile:CC = gcc-cris -mlinux -I $(TOPDIR)/include
./arch/m68k/Makefile:CHECK := $(CHECK) -D__mc68000__=1 -I$(shell $(CC) -print-file-name=include)
./arch/ia64/ia32/Makefile:CFLAGS_ia32_ioctl.o += -Ifs/
./arch/ppc64/kernel/Makefile:CFLAGS_ioctl32.o += -Ifs/
./arch/ppc64/boot/Makefile:BOOTCFLAGS   := $(HOSTCFLAGS) -Iinclude -fno-builtin
./arch/parisc/kernel/Makefile:CFLAGS_ioctl32.o := -Ifs/
./arch/v850/Makefile:OBJCOPY_FLAGS_BLOB := -I binary -O elf32-little -B v850e
./arch/x86_64/ia32/Makefile:CFLAGS_ia32_ioctl.o += -Ifs/
./arch/x86_64/boot/compressed/Makefile:CFLAGS := -m32 -D__KERNEL__ -Iinclude -O2                                                                                
./arch/x86_64/pci/Makefile:CFLAGS += -Iarch/i386/pci
./arch/s390/math-emu/Makefile:EXTRA_CFLAGS := -I$(src) -Iinclude/math-emu -w
./arch/s390/boot/Makefile:EXTRA_CFLAGS  := -DCOMPILE_VERSION=$(COMPILE_VERSION) -gstabs -I.
./drivers/net/sk98lin/Makefile:EXTRA_CFLAGS += -Idrivers/net/sk98lin -DSK_DIAG_SUPPORT -DSK_USE_CSUM -DGENESIS -DYUKON $(DBGDEF) $(SKPARAM)
./drivers/net/wireless/prism54/Makefile:EXTRA_CFLAGS = -I$(PWD) #-DCONFIG_PRISM54_WDS
./drivers/net/skfp/Makefile:EXTRA_CFLAGS += -Idrivers/net/skfp -DPCI -DMEM_MAPPED_IO -Wno-strict-prototypes
./drivers/net/wan/lmc/Makefile:EXTRA_CFLAGS += -I. $(DBGDEF)
./drivers/net/wan/Makefile:     $(CPP) -Wp,-MD,$(depfile) -I$(srctree)/include $< | $(AS68K) -m68360 -o $(obj)/wanxlfw.o; \
./drivers/media/video/saa7134/Makefile:EXTRA_CFLAGS = -I$(src)/..
./drivers/media/video/cx88/Makefile:EXTRA_CFLAGS = -I$(src)/..
./drivers/media/dvb/frontends/Makefile:EXTRA_CFLAGS = -Idrivers/media/dvb/dvb-core/
./drivers/media/dvb/ttusb-budget/Makefile:EXTRA_CFLAGS = -Idrivers/media/dvb/dvb-core/
./drivers/media/dvb/bt8xx/Makefile:EXTRA_CFLAGS = -Idrivers/media/dvb/dvb-core/ -Idrivers/media/video -Idrivers/media/dvb/frontends
./drivers/media/dvb/ttpci/Makefile:EXTRA_CFLAGS = -Idrivers/media/dvb/dvb-core/
./drivers/media/dvb/b2c2/Makefile:EXTRA_CFLAGS = -Idrivers/media/dvb/dvb-core/
./drivers/media/dvb/ttusb-dec/Makefile:EXTRA_CFLAGS = -Idrivers/media/dvb/dvb-core/
./drivers/usb/storage/Makefile:EXTRA_CFLAGS     := -Idrivers/scsi
./drivers/scsi/aic7xxx/aicasm/Makefile:AICASM_CFLAGS:= -I/usr/include -I.
./drivers/scsi/aic7xxx/Makefile:EXTRA_CFLAGS += -Idrivers/scsi
./drivers/scsi/aic7xxx/Makefile:        $(obj)/aicasm/aicasm -I$(src) -r $(obj)/aic7xxx_reg.h \
./drivers/scsi/aic7xxx/Makefile:        $(obj)/aicasm/aicasm -I$(src) -r $(obj)/aic79xx_reg.h \
./drivers/scsi/pcmcia/Makefile:EXTRA_CFLAGS             += -Idrivers/scsi
./drivers/scsi/aacraid/Makefile:EXTRA_CFLAGS    := -Idrivers/scsi
./drivers/ide/pci/Makefile:EXTRA_CFLAGS := -Idrivers/ide
./drivers/ide/legacy/Makefile:EXTRA_CFLAGS      := -Idrivers/ide
./drivers/ide/arm/Makefile:EXTRA_CFLAGS := -Idrivers/ide
./drivers/ide/Makefile:EXTRA_CFLAGS                             += -Idrivers/ide./drivers/atm/Makefile: objcopy -Iihex $< -Obinary $@.gz
./drivers/md/raid6test/Makefile:CFLAGS   = -I.. -g $(OPTFLAGS)
./fs/xfs/Makefile:EXTRA_CFLAGS +=        -Ifs/xfs -Ifs/xfs/linux-2.6 -funsigned-char
./fs/smbfs/Makefile:    cproto -E "gcc -E" -e -v -I $(TOPDIR)/include -DMAKING_PROTO -D__KERNEL__ $(SRC) >> proto2.h
./scripts/kconfig/Makefile:HOSTCFLAGS_lex.zconf.o       := -I$(src)
./scripts/kconfig/Makefile:HOSTCFLAGS_zconf.tab.o       := -I$(src)
./scripts/kconfig/Makefile:HOSTCXXFLAGS_qconf.o = -I$(QTDIR)/include
./scripts/lxdialog/Makefile:        HOST_EXTRACFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"
./scripts/lxdialog/Makefile:        HOST_EXTRACFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"
./scripts/genksyms/Makefile:# -I needed for generated C source (shipped source)
./scripts/genksyms/Makefile:HOSTCFLAGS_parse.o := -Wno-uninitialized -I$(src)
./scripts/genksyms/Makefile:# -I needed for generated C source (shipped source)
./scripts/genksyms/Makefile:HOSTCFLAGS_lex.o := -I$(src)
./security/selinux/Makefile:EXTRA_CFLAGS += -Isecurity/selinux/include
./security/selinux/ss/Makefile:EXTRA_CFLAGS += -Isecurity/selinux/include
./Makefile:CPPFLAGS        := -D__KERNEL__ -Iinclude \
./Makefile:                $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include)
./Makefile:#    Exuberant ctags works better with -I
./Makefile:     CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS"`; \


-tduffy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-08-05 20:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-05 17:48 [PATCH] Fix x86_64 build of mmconfig.c Tom Duffy
2004-08-05 20:32 ` Andi Kleen
2004-08-05 20:49   ` Tom Duffy [this message]
2004-08-05 20:54   ` Sam Ravnborg
2004-08-05 21:12     ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1091738956.3214.6.camel@duffman \
    --to=tom.duffy@sun.com \
    --cc=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox