[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Issue when build libpg-query(riscv FTBFS)



Hi all,

I want to port libpg-query of FTBFS to riscv64 on Debian.

https://buildd.debian.org/status/package.php?p=libpg-query&suite=sid

But I got stock in some issue;

My env is :

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux bookworm/sid
Release:        11-updates
Codename:       n/a


And follow the page to set up chroot:

https://wiki.debian.org/CrossCompiling#Set_up_a_chroot

```
schroot -la
chroot:sid-amd64-sbuild
session:sid-amd64-sbuild-5ae380be-6122-48ac-ba1f-51da5ac6830c
source:sid-amd64-sbuild
```
But i run:
```
sudo sbuild --build=amd64 --profiles=cross --host=riscv64 -d sid
```
Got:
```
Setting up libc-dev-bin (2.33-6) ...
Setting up libc6-dev:amd64 (2.33-6) ...

+------------------------------------------------------------------------------+
| Fetch source files                                                           |
+------------------------------------------------------------------------------+


Local sources
-------------

...
+------------------------------------------------------------------------------+
| Install package build dependencies                                           |
+------------------------------------------------------------------------------+


Setup apt archive
-----------------

Merged Build-Depends: debhelper-compat (= 13), postgresql-server-dev-all, protobuf-c-compiler, build-essential:amd64, fakeroot:amd64, crossbuild-essential-riscv64:amd64, libc-dev:riscv64, libstdc++-dev:riscv64
Filtered Build-Depends: debhelper-compat (= 13), postgresql-server-dev-all, protobuf-c-compiler, build-essential:amd64, fakeroot:amd64, crossbuild-essential-riscv64:amd64, libc-dev:riscv64, libstdc++-dev:riscv64
dpkg-deb: building package 'sbuild-build-depends-main-dummy' in '/<<RESOLVERDIR>>/apt_archive/sbuild-build-depends-main-dummy.deb'.
Ign:1 copy:/<<RESOLVERDIR>>/apt_archive ./ InRelease
Get:2 copy:/<<RESOLVERDIR>>/apt_archive ./ Release [957 B]
Ign:3 copy:/<<RESOLVERDIR>>/apt_archive ./ Release.gpg
Get:4 copy:/<<RESOLVERDIR>>/apt_archive ./ Sources [429 B]
Get:5 copy:/<<RESOLVERDIR>>/apt_archive ./ Packages [518 B]
Fetched 1904 B in 0s (0 B/s)
Reading package lists...
Reading package lists...

Install main build dependencies (apt-based resolver)
----------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The solver encountered an error of type: ERR_UNSOLVABLEExecute external solver...

The following information might help you to understand what is wrong:
The following packages have unmet dependencies:
 sbuild-build-depends-main-dummy:riscv64 : Depends: postgresql-server-dev-all:riscv64 but it is not installable
                                            Depends: crossbuild-essential-riscv64:amd64 but it is not installable
  Depends: libc-dev:riscv64 but it is not installable
  Depends: libstdc++-dev:riscv64 but it is not installable
 Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 sbuild-build-depends-main-dummy:riscv64 : Depends: debhelper-compat:riscv64 (= 13)
Depends: postgresql-server-dev-all:riscv64 but it is not installable
Depends: protobuf-c-compiler:riscv64
Depends: crossbuild-essential-riscv64:amd64 but it is not installable
Depends: libc-dev:riscv64 but it is not installable
Depends: libstdc++-dev:riscv64 but it is not installable
E: External solver failed with: The following packages have unmet dependencies:
apt-get failed.
E: Package installation failed
Not removing build depends: cloned chroot in use
Setup apt archive
-----------------
```

I refactor the log txt.

I try many ways to fix it but have no process. Is this my env wrong?

Thank you any help.

BR,
vimer
sbuild (Debian sbuild) 0.83.0 (05 February 2022) on debian

+==============================================================================+
| libpg-query 13-2.1.0-2 (riscv64)             Wed, 16 Feb 2022 04:27:18 +0000 |
+==============================================================================+

Package: libpg-query
Version: 13-2.1.0-2
Source Version: 13-2.1.0-2
Distribution: sid
Machine Architecture: amd64
Host Architecture: riscv64
Build Architecture: amd64
Build Profiles: cross
Build Type: any

I: NOTICE: Log filtering will replace 'var/run/schroot/mount/sid-amd64-sbuild-d63c6716-3a3e-4ded-9cf2-4f35f83bb292' with '<<CHROOT>>'
I: NOTICE: Log filtering will replace 'build/libpg-query-5wFs3b/resolver-NswnKy' with '<<RESOLVERDIR>>'

+------------------------------------------------------------------------------+
| Update chroot                                                                |
+------------------------------------------------------------------------------+

Get:1 http://deb.debian.org/debian sid InRelease [165 kB]
Get:2 http://deb.debian.org/debian sid/main Sources.diff/Index [63.6 kB]
Get:3 http://deb.debian.org/debian sid/main amd64 Packages.diff/Index [63.6 kB]
Get:4 http://deb.debian.org/debian sid/main Sources T-2022-02-16-0207.16-F-2022-02-15-1401.35.pdiff [58.3 kB]
Get:4 http://deb.debian.org/debian sid/main Sources T-2022-02-16-0207.16-F-2022-02-15-1401.35.pdiff [58.3 kB]
Get:5 http://deb.debian.org/debian sid/main amd64 Packages T-2022-02-16-0207.16-F-2022-02-15-1401.35.pdiff [83.6 kB]
Get:5 http://deb.debian.org/debian sid/main amd64 Packages T-2022-02-16-0207.16-F-2022-02-15-1401.35.pdiff [83.6 kB]
Fetched 434 kB in 3s (157 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Calculating upgrade...
The following packages will be upgraded:
  init-system-helpers libc-bin libc-dev-bin libc6 libc6-dev
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 6269 kB of archives.
After this operation, 871 kB disk space will be freed.
Get:1 http://deb.debian.org/debian sid/main amd64 init-system-helpers all 1.62 [48.0 kB]
Get:2 http://deb.debian.org/debian sid/main amd64 libc6-dev amd64 2.33-6 [2290 kB]
Get:3 http://deb.debian.org/debian sid/main amd64 libc-dev-bin amd64 2.33-6 [243 kB]
Get:4 http://deb.debian.org/debian sid/main amd64 libc6 amd64 2.33-6 [2842 kB]
Get:5 http://deb.debian.org/debian sid/main amd64 libc-bin amd64 2.33-6 [846 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 6269 kB in 0s (108 MB/s)
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 12495 files and directories currently installed.)
Preparing to unpack .../init-system-helpers_1.62_all.deb ...
Unpacking init-system-helpers (1.62) over (1.61) ...
Setting up init-system-helpers (1.62) ...
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 12495 files and directories currently installed.)
Preparing to unpack .../libc6-dev_2.33-6_amd64.deb ...
Unpacking libc6-dev:amd64 (2.33-6) over (2.33-5) ...
Preparing to unpack .../libc-dev-bin_2.33-6_amd64.deb ...
Unpacking libc-dev-bin (2.33-6) over (2.33-5) ...
Preparing to unpack .../libc6_2.33-6_amd64.deb ...
Unpacking libc6:amd64 (2.33-6) over (2.33-5) ...
Setting up libc6:amd64 (2.33-6) ...
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 12495 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.33-6_amd64.deb ...
Unpacking libc-bin (2.33-6) over (2.33-5) ...
Setting up libc-bin (2.33-6) ...
Setting up libc-dev-bin (2.33-6) ...
Setting up libc6-dev:amd64 (2.33-6) ...

+------------------------------------------------------------------------------+
| Fetch source files                                                           |
+------------------------------------------------------------------------------+


Local sources
-------------

/home/vimer/build_test/riscv_1/libpg-query_13-2.1.0-2.dsc exists in /home/vimer/build_test/riscv_1; copying to chroot
I: NOTICE: Log filtering will replace 'build/libpg-query-5wFs3b/libpg-query-13-2.1.0' with '<<PKGBUILDDIR>>'
I: NOTICE: Log filtering will replace 'build/libpg-query-5wFs3b' with '<<BUILDDIR>>'

+------------------------------------------------------------------------------+
| Install package build dependencies                                           |
+------------------------------------------------------------------------------+


Setup apt archive
-----------------

Merged Build-Depends: debhelper-compat (= 13), postgresql-server-dev-all, protobuf-c-compiler, build-essential:amd64, fakeroot:amd64, crossbuild-essential-riscv64:amd64, libc-dev:riscv64, libstdc++-dev:riscv64
Filtered Build-Depends: debhelper-compat (= 13), postgresql-server-dev-all, protobuf-c-compiler, build-essential:amd64, fakeroot:amd64, crossbuild-essential-riscv64:amd64, libc-dev:riscv64, libstdc++-dev:riscv64
dpkg-deb: building package 'sbuild-build-depends-main-dummy' in '/<<RESOLVERDIR>>/apt_archive/sbuild-build-depends-main-dummy.deb'.
Ign:1 copy:/<<RESOLVERDIR>>/apt_archive ./ InRelease
Get:2 copy:/<<RESOLVERDIR>>/apt_archive ./ Release [957 B]
Ign:3 copy:/<<RESOLVERDIR>>/apt_archive ./ Release.gpg
Get:4 copy:/<<RESOLVERDIR>>/apt_archive ./ Sources [429 B]
Get:5 copy:/<<RESOLVERDIR>>/apt_archive ./ Packages [518 B]
Fetched 1904 B in 0s (0 B/s)
Reading package lists...
Reading package lists...

Install main build dependencies (apt-based resolver)
----------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The solver encountered an error of type: ERR_UNSOLVABLEExecute external solver...

The following information might help you to understand what is wrong:
The following packages have unmet dependencies:
 sbuild-build-depends-main-dummy:riscv64 : Depends: postgresql-server-dev-all:riscv64 but it is not installable
                                           Depends: crossbuild-essential-riscv64:amd64 but it is not installable
                                           Depends: libc-dev:riscv64 but it is not installable
                                           Depends: libstdc++-dev:riscv64 but it is not installable

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 sbuild-build-depends-main-dummy:riscv64 : Depends: debhelper-compat:riscv64 (= 13)
                                           Depends: postgresql-server-dev-all:riscv64 but it is not installable
                                           Depends: protobuf-c-compiler:riscv64
                                           Depends: crossbuild-essential-riscv64:amd64 but it is not installable
                                           Depends: libc-dev:riscv64 but it is not installable
                                           Depends: libstdc++-dev:riscv64 but it is not installable
E: External solver failed with: The following packages have unmet dependencies:
apt-get failed.
E: Package installation failed
Not removing build depends: cloned chroot in use

Setup apt archive
-----------------

Merged Build-Depends: dose-distcheck:amd64
Filtered Build-Depends: dose-distcheck:amd64
dpkg-deb: building package 'sbuild-build-depends-dose3-dummy' in '/<<RESOLVERDIR>>/apt_archive/sbuild-build-depends-dose3-dummy.deb'.
Ign:1 copy:/<<RESOLVERDIR>>/apt_archive ./ InRelease
Get:2 copy:/<<RESOLVERDIR>>/apt_archive ./ Release [963 B]
Ign:3 copy:/<<RESOLVERDIR>>/apt_archive ./ Release.gpg
Get:4 copy:/<<RESOLVERDIR>>/apt_archive ./ Sources [561 B]
Get:5 copy:/<<RESOLVERDIR>>/apt_archive ./ Packages [653 B]
Fetched 2177 B in 0s (183 kB/s)
Reading package lists...
Reading package lists...

Install dose3 build dependencies (apt-based resolver)
-----------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
Execute external solver...
The following additional packages will be installed:
  dose-distcheck
The following NEW packages will be installed:
  dose-distcheck sbuild-build-depends-dose3-dummy:riscv64
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1069 kB of archives.
After this operation, 4365 kB of additional disk space will be used.
Get:1 copy:/<<RESOLVERDIR>>/apt_archive ./ sbuild-build-depends-dose3-dummy 0.invalid.0 [856 B]
Get:2 http://deb.debian.org/debian sid/main amd64 dose-distcheck amd64 7.0.0-1 [1068 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 1069 kB in 0s (42.2 MB/s)
Selecting previously unselected package dose-distcheck.
(Reading database ... 12495 files and directories currently installed.)
Preparing to unpack .../dose-distcheck_7.0.0-1_amd64.deb ...
Unpacking dose-distcheck (7.0.0-1) ...
Selecting previously unselected package sbuild-build-depends-dose3-dummy:riscv64.
Preparing to unpack .../sbuild-build-depends-dose3-dummy_0.invalid.0_riscv64.deb ...
Unpacking sbuild-build-depends-dose3-dummy:riscv64 (0.invalid.0) ...
Setting up dose-distcheck (7.0.0-1) ...
Setting up sbuild-build-depends-dose3-dummy:riscv64 (0.invalid.0) ...
(I)Doseparse: Parsing and normalizing...
(I)Dose_deb: Parsing Packages file -...
(I)Dose_common: total packages 64652
(I)Dose_applications: Cudf Universe: 64652 packages
(I)Dose_applications: --checkonly specified, consider all packages as background packages
(I)Dose_applications: Solving...
output-version: 1.2
native-architecture: amd64
foreign-architecture: riscv64
report:
 -
  package: sbuild-build-depends-main-dummy
  version: 0.invalid.0
  architecture: riscv64
  status: broken
  reasons:
   -
    missing:
     pkg:
      package: sbuild-build-depends-main-dummy
      version: 0.invalid.0
      architecture: riscv64
      unsat-dependency: postgresql-server-dev-all:riscv64
 
background-packages: 64651
foreground-packages: 1
total-packages: 64652
broken-packages: 1

+------------------------------------------------------------------------------+
| Cleanup                                                                      |
+------------------------------------------------------------------------------+

Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use
E: Package build dependencies not satisfied; skipping

+------------------------------------------------------------------------------+
| Summary                                                                      |
+------------------------------------------------------------------------------+

Build Architecture: amd64
Build Profiles: cross
Build Type: any
Build-Space: n/a
Build-Time: 0
Distribution: sid
Fail-Stage: install-deps
Foreign Architectures: riscv64
Host Architecture: riscv64
Install-Time: 0
Job: /home/vimer/build_test/riscv_1/libpg-query_13-2.1.0-2.dsc
Machine Architecture: amd64
Package: libpg-query
Package-Time: 0
Source-Version: 13-2.1.0-2
Space: n/a
Status: given-back
Version: 13-2.1.0-2
--------------------------------------------------------------------------------
Finished at 2022-02-16T04:27:18Z
Build needed 00:00:00, no disk space

Reply to: