Unable to generate a bootable image for pinebook pro

  • Open
  • quality assurance status badge
Details
3 participants
  • jgart
  • Richard Sent
  • Vincent Legoll
Owner
unassigned
Submitted by
Richard Sent
Severity
normal
R
R
Richard Sent wrote on 10 May 21:27 +0200
(address . bug-guix@gnu.org)
87msoxfox3.fsf@freakingpenguin.com
Hi Guix!

When building a system image for the pinebook pro, the image either
fails to build or fail to boot. This occurs when when using the
pinebook-pro-barebones-raw-image defined in the Guix repository.

When --system=aarch64-linux is not passed, the image build fails when
cross compiling packages.

Toggle snippet (8 lines)
$ guix system image gnu/system/images/pinebook-pro.scm
...
building /gnu/store/ibjl0n8d1ac107vvkvjgrlb74sxm2b0k-gawk-mesboot-3.1.8.drv...
\ 'configure' phasebuilder for `/gnu/store/ibjl0n8d1ac107vvkvjgrlb74sxm2b0k-gawk-mesboot-3.1.8.drv' failed with exit code 1
build of /gnu/store/ibjl0n8d1ac107vvkvjgrlb74sxm2b0k-gawk-mesboot-3.1.8.drv failed
View build log at '/var/log/guix/drvs/ib/jl0n8d1ac107vvkvjgrlb74sxm2b0k-gawk-mesboot-3.1.8.drv.gz'.

When --system=aarch64-linux is passed (enforcing QEMU builds for
packages instead of attempting cross compilation), the image builds but
the Pinebook Pro does not appear to detect it and will fall back on
eMMC.

Toggle snippet (3 lines)
guix system image gnu/system/images/pinebook-pro.scm --system=aarch64-linux

Per the blog post on
building a pinebook pro system image should be as simple as the first
command. When package compilation errors occurs, the user should be able
to fall back on the second command.

Below is the tail of the log when cross compiling gawk-mesboot:

Toggle snippet (17 lines)
...
checking for function prototypes... yes
checking for string.h... (cached) yes
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... Invalid configuration `aarch64-linux-gnu': machine `aarch64' not recognized
configure: error: /gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash ./config.sub aarch64-linux-gnu failed
error: in phase 'configure': uncaught exception:
srfi-34 #<condition &invoke-error [program: "/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" arguments: ("./configure" "CC_FOR_BUILD=gcc" "CONFIG_SHELL=/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" "SHELL=/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" "--prefix=/gnu/store/bl3aq7fnpyxq9w2a7bqa4zqgd8z88y8x-gawk-mesboot-3.1.8" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" "--host=aarch64-linux-gnu" "ac_cv_func_connect=no") exit-status: 1 term-signal: #f stop-signal: #f] 152a5c0>
phase `configure' failed after 30.6 seconds
command "/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" "./configure" "CC_FOR_BUILD=gcc" "CONFIG_SHELL=/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" "SHELL=/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" "--prefix=/gnu/store/bl3aq7fnpyxq9w2a7bqa4zqgd8z88y8x-gawk-mesboot-3.1.8" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" "--host=aarch64-linux-gnu" "ac_cv_func_connect=no" failed with status 1

--
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.
V
J
(address . 70865@debbugs.gnu.org)
871q3119m3.fsf@dismail.de
hi,

i ran into the same issue when running the following command:

$ guix system image gnu/system/images/pinebook-pro.scm

building /gnu/store/ibjl0n8d1ac107vvkvjgrlb74sxm2b0k-gawk-mesboot-3.1.8.drv...
\ 'configure' phasenote: keeping build directory `/tmp/guix-build-gawk-mesboot-3.1.8.drv-0'
builder for `/gnu/store/ibjl0n8d1ac107vvkvjgrlb74sxm2b0k-gawk-mesboot-3.1.8.drv' failed with exit code 1
build of /gnu/store/ibjl0n8d1ac107vvkvjgrlb74sxm2b0k-gawk-mesboot-3.1.8.drv failed
View build log at '/var/log/guix/drvs/ib/jl0n8d1ac107vvkvjgrlb74sxm2b0k-gawk-mesboot-3.1.8.drv.gz'.
cannot build derivation `/gnu/store/rn8g7dy2i7dmwlkirnhk3lgx34rya36g-glibc-2.35.drv': 1 dependencies couldn't be built
guix system: error: build of `/gnu/store/rn8g7dy2i7dmwlkirnhk3lgx34rya36g-glibc-2.35.drv' failed

--
all the best,
jgart
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 70865@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 70865
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch