Re: [5.10.y-cip] Build error with defconfig


Biju Das <biju.das.jz@...>
 

Hi Nobuhoro-San,

Sorry for the noise. It is random issue.
I cannot reproduce the issue now.
The build is ok now.

Cheers,
Biju

-----Original Message-----
From: nobuhiro1.iwamatsu@... <nobuhiro1.iwamatsu@...>
Sent: 14 July 2022 09:04
To: Biju Das <biju.das.jz@...>; cip-dev@...;
pavel@...
Subject: RE: [5.10.y-cip] Build error with defconfig

Hi Biju,

I built v5.10.129-cip12 with defconfig, but I didn't have the same
problem.

```
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 11.2.0-18'
--with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-
languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --
with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-
linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib --
enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-
debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --
enable-gnu-unique-object --disable-vtable-verify --enable-plugin --
enable-default-pie --with-system-zlib --enable-libphobos-checking=release
--with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch -
-disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-
multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --
enable-offload-targets=nvptx-none=/build/gcc-11-RK3FrC/gcc-11-
11.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-RK3FrC/gcc-11-
11.2.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-
gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix Supported LTO compression algorithms: zlib zstd gcc
version 11.2.0 (Debian 11.2.0-18) $ aarch64-linux-gnu-gcc -v Using built-
in specs.
COLLECT_GCC=aarch64-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/aarch64-linux-gnu/10/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.3.0-8'
--with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-
languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-
gcc-major-version-only --program-suffix=-10 --enable-shared --enable-
linker-build-id --libexecdir=/usr/lib --without-included-gettext --
enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --
enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes -
-with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-
libquadmath --disable-libquadmath-support --enable-plugin --enable-
default-pie --with-system-zlib --enable-libphobos-checking=release --
without-target-system-zlib --enable-multiarch --enable-fix-cortex-a53-
843419 --disable-werror --enable-checking=release --build=x86_64-linux-
gnu --host=x86_64-linux-gnu --target=aarch64-linux-gnu --program-
prefix=aarch64-linux-gnu- --includedir=/usr/aarch64-linux-gnu/include --
with-build-config=bootstrap-lto-lean --enable-link-mutex Thread model:
posix Supported LTO compression algorithms: zlib zstd
gcc version 10.3.0 (Debian 10.3.0-8)
g$ it log --oneline -1
19dd4538e81e (HEAD -> linux-5.10.y-cip, tag: v5.10.129-cip12, cip/linux-
5.10.y-cip) CIP: Bump version suffix to -cip12 after merge from stable
$ make ARCH=arm64 mrproper
$ make ARCH=arm64 defconfig
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j32
[....]
No error.
```

Best regards,
Nobuhiro

-----Original Message-----
From: Biju Das <biju.das.jz@...>
Sent: Thursday, July 14, 2022 4:41 PM
To: cip-dev@...; iwamatsu nobuhiro(岩松 信洋 □SWC◯A
CT) <nobuhiro1.iwamatsu@...>; Pavel Machek <pavel@...>
Subject: [5.10.y-cip] Build error with defconfig

Hi Pavel and Nobuhiro,

I get build error[2] with defconfig with this commit id[1].

Q1) have you seen this issue?

[1]
commit 19dd4538e81e4019bc96ac6521af3a4ec93e110c (HEAD -> test, tag:
v5.10.129-cip12, rzg2l-linux/linux-5.10.y-cip,
origin/linux-5.10.y-cip,
linux-5.10.y-cip)
Author: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@...>
Date: Fri Jul 8 14:30:34 2022 +0900

CIP: Bump version suffix to -cip12 after merge from stable

[2]
Build logs:
biju@biju-VirtualBox:~/linux-cip$ ~/compile_copy_rzg2l.sh
*** Default configuration is based on 'defconfig'
#
# No change to .config
#
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm64/mm/dma-mapping.o
CC arch/arm64/xen/../../arm/xen/mm.o
CC arch/arm64/mm/init.o
CC kernel/dma/mapping.o
CC kernel/dma/direct.o
CC kernel/dma/ops_helpers.o
CC kernel/dma/dummy.o
CC kernel/dma/contiguous.o
CC kernel/dma/coherent.o
CC kernel/dma/swiotlb.o
CC kernel/dma/pool.o
CC [M] fs/btrfs/disk-io.o
CC [M] fs/btrfs/inode.o
CC [M] fs/btrfs/file.o
In file included from ./include/linux/dma-map-ops.h:75,
from ./include/linux/dma-direct.h:10,
from arch/arm64/xen/../../arm/xen/mm.c:3:
./arch/arm64/include/asm/dma-mapping.h: In function
'__generic_dma_ops':
./arch/arm64/include/asm/dma-mapping.h:32:26: error: 'struct
dev_archdata'
has no member named 'dma_ops'
32 | if (dev && dev->archdata.dma_ops)
| ^
./arch/arm64/include/asm/dma-mapping.h:33:23: error: 'struct
dev_archdata'
has no member named 'dma_ops'
33 | return dev->archdata.dma_ops;
| ^
./arch/arm64/include/asm/dma-mapping.h: In function 'get_dma_ops':
./arch/arm64/include/asm/dma-mapping.h:45:10: error: 'xen_dma_ops'
undeclared (first use in this function); did you mean 'get_dma_ops'?
45 | return xen_dma_ops;
| ^~~~~~~~~~~
| get_dma_ops
./arch/arm64/include/asm/dma-mapping.h:45:10: note: each undeclared
identifier is reported only once for each function it appears in
./arch/arm64/include/asm/dma-mapping.h: In function
'is_device_dma_coherent':
./arch/arm64/include/asm/dma-mapping.h:64:22: error: 'struct
dev_archdata'
has no member named 'dma_coherent'
64 | return dev->archdata.dma_coherent;
| ^
./arch/arm64/include/asm/dma-mapping.h: At top level:
./arch/arm64/include/asm/dma-mapping.h:67:10: fatal error:
asm-generic/dma-mapping-common.h: No such file or directory
67 | #include <asm-generic/dma-mapping-common.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Cheers,
Biju

Join cip-dev@lists.cip-project.org to automatically receive all group messages.