Skip to contentSkip to conversation

ppc64 build broke between 2.6.11-bk6 and 2.6.11-bk7

DISCUSSION Martin J. Bligh 4 participants 8 messages Mar 18, 2005 – Mar 20, 2005

lore
Share & tools
lore
#0 lore raw

drivers/built-in.o(.text+0x182bc): In function `.matroxfb_probe':
: undefined reference to `.mac_vmode_to_var'
make: *** [.tmp_vmlinux1] Error 1

Anyone know what that is?

M.

#1 lore raw
Quoted 7 lines · Martin J. Bligh

drivers/built-in.o(.text+0x182bc): In function `.matroxfb_probe':
: undefined reference to `.mac_vmode_to_var'
make: *** [.tmp_vmlinux1] Error 1

Anyone know what that is?

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.11/2.6.11-mm4/broken-out/fbdev-kconfig-fix-for-macmodes-and-ppc.patch

should fix it.

#2 lore raw

--Andrew Morton <[email protected]> wrote (on Thursday, March 17, 2005 22:44:09 -0800):

Quoted 6 lines
Quoted 5 lines · Martin J. Bligh

drivers/built-in.o(.text+0x182bc): In function `.matroxfb_probe':
: undefined reference to `.mac_vmode_to_var'
make: *** [.tmp_vmlinux1] Error 1

Quoted 8 lines
Quoted 2 lines

Anyone know what that is?

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.11/2.6.11-mm4/broken-out/fbdev-kconfig-fix-for-macmodes-and-ppc.patch

should fix it.

Thanks - will retest.

M.

#3 lore raw
In reply to Andrew Morton
Quoted 6 lines · Andrew Morton
Quoted 5 lines · Martin J. Bligh

drivers/built-in.o(.text+0x182bc): In function `.matroxfb_probe':
: undefined reference to `.mac_vmode_to_var'
make: *** [.tmp_vmlinux1] Error 1

Quoted 6 lines
Quoted 2 lines

Anyone know what that is?

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.11/2.6.11-mm4/broken-out/fbdev-kconfig-fix-for-macmodes-and-ppc.patch

should fix it.

It seems the culprit is "matroxfb-compile-error.patch" which unconditionally adds macmodes.o to the Makefile line for CONFIG_FB_MATROX. This obviously breaks on !ppc. The patch Andrew mentions above converts the Kconfig entry for FB_MATROX to do a "select FB_MACMODES if PPC_PMAC", so dropping matroxfb-compile-error.patch should suffice.

/Mikael

#4 lore raw
Quoted 10 lines · Mikael Pettersson
Quoted 9 lines · Andrew Morton
Quoted 7 lines · Martin J. Bligh

drivers/built-in.o(.text+0x182bc): In function `.matroxfb_probe':
: undefined reference to `.mac_vmode_to_var'
make: *** [.tmp_vmlinux1] Error 1

Anyone know what that is?

Quoted 6 lines
Quoted 3 lines

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.11/2.6.11-mm4/broken-out/fbdev-kconfig-fix-for-macmodes-and-ppc.patch

should fix it.

It seems the culprit is "matroxfb-compile-error.patch" which unconditionally adds macmodes.o to the Makefile line for CONFIG_FB_MATROX. This obviously breaks on !ppc.

!pmac of course; I assume Martin configured for some kind of POWER box and not a G5.

Quoted 2 lines

The patch Andrew mentions above converts the Kconfig entry for FB_MATROX to do a "select FB_MACMODES if PPC_PMAC", so dropping matroxfb-compile-error.patch should suffice.

#5 lore raw

--Mikael Pettersson <[email protected]> wrote (on Friday, March 18, 2005 10:35:13 +0100):

Quoted 11 lines
Quoted 10 lines · Mikael Pettersson
Quoted 9 lines · Andrew Morton
Quoted 7 lines · Martin J. Bligh

drivers/built-in.o(.text+0x182bc): In function `.matroxfb_probe':
: undefined reference to `.mac_vmode_to_var'
make: *** [.tmp_vmlinux1] Error 1

Anyone know what that is?

Quoted 13 lines
Quoted 6 lines
Quoted 3 lines

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.11/2.6.11-mm4/broken-out/fbdev-kconfig-fix-for-macmodes-and-ppc.patch

should fix it.

It seems the culprit is "matroxfb-compile-error.patch" which unconditionally adds macmodes.o to the Makefile line for CONFIG_FB_MATROX. This obviously breaks on !ppc.

!pmac of course; I assume Martin configured for some kind of POWER box and not a G5.

Quoted 2 lines

The patch Andrew mentions above converts the Kconfig entry for FB_MATROX to do a "select FB_MACMODES if PPC_PMAC", so dropping matroxfb-compile-error.patch should suffice.

Yeah, it's a 4x LPAR on PPC690 Power 4 server.

M.

#6 lore raw
In reply to Mikael Pettersson
Quoted 10 lines · Mikael Pettersson
Quoted 9 lines · Andrew Morton
Quoted 7 lines · Martin J. Bligh

drivers/built-in.o(.text+0x182bc): In function `.matroxfb_probe':
: undefined reference to `.mac_vmode_to_var'
make: *** [.tmp_vmlinux1] Error 1

Anyone know what that is?

Quoted 10 lines
Quoted 3 lines

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.11/2.6.11-mm4/broken-out/fbdev-kconfig-fix-for-macmodes-and-ppc.patch

should fix it.

It seems the culprit is "matroxfb-compile-error.patch" which unconditionally adds macmodes.o to the Makefile line for CONFIG_FB_MATROX. This obviously breaks on !ppc. The patch Andrew mentions above converts the Kconfig entry for FB_MATROX to do a "select FB_MACMODES if PPC_PMAC", so dropping matroxfb-compile-error.patch should suffice.

matroxfb-compile-error.patch was a valid fix for a compile problem. It was against 2.6.11-bk10, therefore wasn't in the 2.6.11-bk6 or 2.6.11bk7 you had problems with and didn't cause this mess to begin with.

It appears the problem was more systemic than what I saw during my compile, thus the fbdev-kconfig-fix-for-macmodes-and-ppc.patch probably fixes the problem I fixed and a host of others. Of course it conflicts with my patch.

Please drop the matroxfb-compile-error.patch and if the problem isn't truly fixed by fbdev-kconfig-fix-for-macmodes-and-ppc.patch I will resend it.

#7 lore raw
In reply to Andrew Morton

--Andrew Morton <[email protected]> wrote (on Thursday, March 17, 2005 22:44:09 -0800):

Quoted 6 lines
Quoted 5 lines · Martin J. Bligh

drivers/built-in.o(.text+0x182bc): In function `.matroxfb_probe':
: undefined reference to `.mac_vmode_to_var'
make: *** [.tmp_vmlinux1] Error 1

Quoted 6 lines
Quoted 2 lines

Anyone know what that is?

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.11/2.6.11-mm4/broken-out/fbdev-kconfig-fix-for-macmodes-and-ppc.patch

should fix it.

Great - tested, that fixed it up for me.

Thanks,

M.