Skip to contentSkip to conversation

next build: 198 builds: 4 failed, 194 passed, 7 errors, 82 warnings (next-20161214)

DISCUSSION Mark Brown 3 participants 9 messages Dec 14, 2016 – Dec 16, 2016 1 message not in the archive MIPS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mark Brown

author
#1 lore raw
Quoted 6 lines · kernelci.org bot

mips: gcc version 5.3.0 (Sourcery CodeBench Lite 2016.05-8)

allnoconfig: FAIL
generic_defconfig: FAIL
ip27_defconfig: FAIL
tinyconfig: FAIL

These MIPS builds have been failing in kernelci ever since MIPS was added. This means that we've got a constant level of noise in the results which makes them less useful for everyone - people get used to ignoring errors. Is there any plan to get these fixed?

#2 lore raw
Quoted 9 lines · Mark Brown
Quoted 6 lines · kernelci.org bot

mips: gcc version 5.3.0 (Sourcery CodeBench Lite 2016.05-8)

allnoconfig: FAIL
generic_defconfig: FAIL
ip27_defconfig: FAIL
tinyconfig: FAIL

Quoted 4 lines

These MIPS builds have been failing in kernelci ever since MIPS was added. This means that we've got a constant level of noise in the results which makes them less useful for everyone - people get used to ignoring errors. Is there any plan to get these fixed?

I wonder if these are also toolchain-related issues. allnoconfig and tinyconfig do build fine for me with GCC 6.1.0 and binutils 2.26.20160125.

generic_defconfig requires mkimage of uboot-tools or it will fail like this:

ITB arch/mips/boot/vmlinux.gz.itb
"mkimage" command not found - U-Boot images will not be built arch/mips/boot/Makefile:159: recipe for target 'arch/mips/boot/vmlinux.gz.itb' failed make[1]: *** [arch/mips/boot/vmlinux.gz.itb] Error 1 arch/mips/Makefile:365: recipe for target 'vmlinux.gz.itb' failed
make: *** [vmlinux.gz.itb] Error 2

ip27_defconfig indeed has a build issue but it's new for 4.9 (commit 3ffc17d8768be705e292ac4c2e3ab1f18dc06047 ("MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0")). And with that patch reverted GCC 6.1.0 blows up with an internal compilter error:

CC [M] drivers/net/ethernet/qlogic/qlge/qlge_main.o
drivers/net/ethernet/qlogic/qlge/qlge_main.c: In function ‘qlge_probe’:
drivers/net/ethernet/qlogic/qlge/qlge_main.c:4812:1: error: insn does not satisfy its constraints:
}
^
(insn 1373 1371 1361 79 (parallel [

            (set (reg/f:DI 3 $3 [490])
                (symbol_ref:DI ("delayed_work_timer_fn") [flags 0x241] <function_decl 0x7fdb8658ed20 delayed_work_timer_fn>))
            (clobber (scratch:DI))
        ]) drivers/net/ethernet/qlogic/qlge/qlge_main.c:4690 287 {*lea64}
     (nil))

drivers/net/ethernet/qlogic/qlge/qlge_main.c:4812:1: internal compiler error: in extract_constrain_insn, at recog.c:2190 Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

GCC 6.2.0 dies the same way.

What binutils are you using and can you send me the build errors messages?

Thanks,

Ralf

author
#3 lore raw
Quoted 13 lines · Ralf Baechle
Quoted 8 lines · Mark Brown
Quoted 1 line · kernelci.org bot

mips: gcc version 5.3.0 (Sourcery CodeBench Lite 2016.05-8)

These MIPS builds have been failing in kernelci ever since MIPS was added. This means that we've got a constant level of noise in the results which makes them less useful for everyone - people get used to ignoring errors. Is there any plan to get these fixed?

I wonder if these are also toolchain-related issues. allnoconfig and tinyconfig do build fine for me with GCC 6.1.0 and binutils 2.26.20160125.

Quoted 8 lines

generic_defconfig requires mkimage of uboot-tools or it will fail like this:

ITB arch/mips/boot/vmlinux.gz.itb
"mkimage" command not found - U-Boot images will not be built arch/mips/boot/Makefile:159: recipe for target 'arch/mips/boot/vmlinux.gz.itb' failed make[1]: *** [arch/mips/boot/vmlinux.gz.itb] Error 1 arch/mips/Makefile:365: recipe for target 'vmlinux.gz.itb' failed
make: *** [vmlinux.gz.itb] Error 2

Ah, you don't have a separate uImage target?

Quoted 1 line

What binutils are you using and can you send me the build errors messages?

You can see logs for all the trees we build via the web interface:

https://kernelci.org/job/

I don't have access to the builders to check the binutils version without going and finding/downloading the CodeSourcery release. Where did your toolchain come from, is there something specific recommended for MIPS?

#4 lore raw
Quoted 36 lines · CET Mark Brown
Quoted 13 lines · Ralf Baechle
Quoted 8 lines · Mark Brown
Quoted 1 line · kernelci.org bot

mips: gcc version 5.3.0 (Sourcery CodeBench Lite 2016.05-8)

These MIPS builds have been failing in kernelci ever since MIPS was added. This means that we've got a constant level of noise in the results which makes them less useful for everyone - people get used to ignoring errors. Is there any plan to get these fixed?

I wonder if these are also toolchain-related issues. allnoconfig and tinyconfig do build fine for me with GCC 6.1.0 and binutils 2.26.20160125.

Quoted 8 lines

generic_defconfig requires mkimage of uboot-tools or it will fail like this:

ITB arch/mips/boot/vmlinux.gz.itb
"mkimage" command not found - U-Boot images will not be built arch/mips/boot/Makefile:159: recipe for target 'arch/mips/boot/vmlinux.gz.itb' failed make[1]: *** [arch/mips/boot/vmlinux.gz.itb] Error 1 arch/mips/Makefile:365: recipe for target 'vmlinux.gz.itb' failed
make: *** [vmlinux.gz.itb] Error 2

Ah, you don't have a separate uImage target?

Quoted 1 line

What binutils are you using and can you send me the build errors messages?

You can see logs for all the trees we build via the web interface:

https://kernelci.org/job/

I don't have access to the builders to check the binutils version without going and finding/downloading the CodeSourcery release. Where did your toolchain come from, is there something specific recommended for MIPS?

#5 lore raw
In reply to Mark Brown
Quoted 36 lines · Mark Brown

Date: Wed, 14 Dec 2016 17:45:39 +0000
From: Mark Brown <[email protected]>
To: Ralf Baechle <[email protected]>
Cc: [email protected], [email protected]
Subject: Re: next build: 198 builds: 4 failed, 194 passed, 7 errors, 82
warnings (next-20161214)
Content-Type: multipart/signed; micalg=pgp-sha256;
protocol="application/pgp-signature"; boundary="pme7352aoyqgs7t5"

Quoted 13 lines · Ralf Baechle
Quoted 8 lines · Mark Brown
Quoted 1 line · kernelci.org bot

mips: gcc version 5.3.0 (Sourcery CodeBench Lite 2016.05-8)

These MIPS builds have been failing in kernelci ever since MIPS was added. This means that we've got a constant level of noise in the results which makes them less useful for everyone - people get used to ignoring errors. Is there any plan to get these fixed?

I wonder if these are also toolchain-related issues. allnoconfig and tinyconfig do build fine for me with GCC 6.1.0 and binutils 2.26.20160125.

Quoted 8 lines

generic_defconfig requires mkimage of uboot-tools or it will fail like this:

ITB arch/mips/boot/vmlinux.gz.itb
"mkimage" command not found - U-Boot images will not be built arch/mips/boot/Makefile:159: recipe for target 'arch/mips/boot/vmlinux.gz.itb' failed make[1]: *** [arch/mips/boot/vmlinux.gz.itb] Error 1 arch/mips/Makefile:365: recipe for target 'vmlinux.gz.itb' failed
make: *** [vmlinux.gz.itb] Error 2

Ah, you don't have a separate uImage target?

Quoted 1 line

What binutils are you using and can you send me the build errors messages?

Quoted 8 lines

You can see logs for all the trees we build via the web interface:

https://kernelci.org/job/

I don't have access to the builders to check the binutils version without going and finding/downloading the CodeSourcery release. Where did your toolchain come from, is there something specific recommended for MIPS?

I specifically avoid non-standard toolchains, that is I stick to the vanilla FSF releases with no feature patches.

Some configurations, in particular new cores or architecture variants may require vendor tool- chains or patches until support makes it upstream. I wonder if for the benefit of automated build testing we should tag kernel configurations with a special CONFIG_ symbol to indicate they need non-standard tools? That would allow build testing to detect and possibly skip such configuration.

Ralf

#6 lore raw
Quoted 7 lines · CET Ralf Baechle

Some configurations, in particular new cores or architecture variants may require vendor tool- chains or patches until support makes it upstream. I wonder if for the benefit of automated build testing we should tag kernel configurations with a special CONFIG_ symbol to indicate they need non-standard tools? That would allow build testing to detect and possibly skip such configuration.

I think that this ties in with a discussion we recently had about moving toolchain feature detection from Makefiles into Kconfig, which can then probably handle this better. We just need to find someone who can hack this up into Kconfig.

Arnd

author
#7 lore raw
In reply to Ralf Baechle
Quoted 8 lines · Ralf Baechle
Quoted 3 lines · Mark Brown

without going and finding/downloading the CodeSourcery release. Where did your toolchain come from, is there something specific recommended for MIPS?

I specifically avoid non-standard toolchains, that is I stick to the vanilla FSF releases with no feature patches.

We're really looking for prebuilt binaries here, if nothing else it makes it a lot easier to debug problems if people are using exactly the same binary as it eliminates the possibility of differences in the builds (due to some dependency changing for example).

#8 lore raw
In reply to Mark Brown
Quoted 11 lines · Mark Brown
Quoted 6 lines

mips: gcc version 5.3.0 (Sourcery CodeBench Lite 2016.05-8)

allnoconfig: FAIL
generic_defconfig: FAIL
ip27_defconfig: FAIL
tinyconfig: FAIL

These MIPS builds have been failing in kernelci ever since MIPS was added. This means that we've got a constant level of noise in the results which makes them less useful for everyone - people get used to ignoring errors. Is there any plan to get these fixed?

I had to "bisect" binutils versions to hit the allnoconfig and tinyconfig build issues. Turns out it's a problem specific to binutils 2.25 which when generating 32 bit ELF does not permit the use of 64 bit constants, not even when explicitly to the 64 bit instruction set, for example:

	.set	mips3
	dli	$1, 0x9000000080000000

The only fix I was able to find that will work with all binutils, is open coding the dli macro instruction as

	li	$1, 0x9000
	dsll	$1, $1, 48

Which is pretty much what the assembler should have generated from the dli anyway.

Ralf

author
#9 lore raw
Quoted 15 lines · Ralf Baechle
Quoted 4 lines · Mark Brown

These MIPS builds have been failing in kernelci ever since MIPS was added. This means that we've got a constant level of noise in the results which makes them less useful for everyone - people get used to ignoring errors. Is there any plan to get these fixed?

I had to "bisect" binutils versions to hit the allnoconfig and tinyconfig build issues. Turns out it's a problem specific to binutils 2.25 which when generating 32 bit ELF does not permit the use of 64 bit constants, not even when explicitly to the 64 bit instruction set, for example:

	.set	mips3
	dli	$1, 0x9000000080000000
Quoted 8 lines

The only fix I was able to find that will work with all binutils, is open coding the dli macro instruction as

	li	$1, 0x9000
	dsll	$1, $1, 48

Which is pretty much what the assembler should have generated from the dli anyway.

Thanks - someone should probably tell the purpl people, it's their toolchain we're currently using. We did have a bit of a look yesterday for other prebuilt ones but didn't come up with anything so I guess a lot of people are going to be using that one.