all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Trev <trev@trevdev.ca>
To: help-guix@gnu.org
Subject: Packaging timewarrior
Date: Mon, 16 Jan 2023 08:44:45 -0800	[thread overview]
Message-ID: <20230116164445.hd2m747id2ldvzzn@guix> (raw)

[-- Attachment #1: Type: text/plain, Size: 4469 bytes --]

Hey All,

I can build timewarrior in my profile but I cannot seem to build it as
a package.  I get a weird/ambiguous exit status 2 from make.

Here's the timewarrior package.  It mostly came from assumptions I made
about https://timewarrior.net/docs/install/

-----
(define-module (trevdev packages task-management)
  #:use-module (guix packages)
  #:use-module (gnu packages python)
  #:use-module (gnu packages ruby)
  #:use-module (gnu packages base)
  #:use-module (guix download)
  #:use-module (guix utils)
  #:use-module (guix build-system cmake)
  #:use-module ((guix licenses) #:prefix license:))

(define-public timewarrior
  (package
   (name "timewarrior")
   (version "1.4.3")
   (source
    (origin
     (method url-fetch
      (uri (string-append "https://github.com/GothenburgBitFactory/timewarrior/"
                       "releases/download/v" version
                       "/timew-" version ".tar.gz"))
      (sha256
       (base32 "0lyaqzcg8np2fpsmih0hlkjxd3qbadc7khr24m1pq9lsdhq7xpy4")))))
   (build-system cmake-build-system)
   (inputs (list gnu-make
                 python
                 ruby-asciidoctor))
   (home-page "https://timewarrior.net")
   (synopsis "A command line tool for tracking time.")
   (description "Timewarrior is Free and Open Source Software that tracks
time from the command line")
   (license license:expat)))
-----

The error I get when building is:

-----
[ 55%] Building CXX object src/CMakeFiles/libshared.dir/libshared/src/utf8.cpp.o
cd /tmp/guix-build-timewarrior-1.4.3.drv-0/build/src && /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/c++  -I/tmp/guix-build-timewarrior-1.4.3.drv-0/timew-1.4.3 -I/tmp/guix-build-timewarrior-1.4.3.drv-0/timew-1.4.3/src -I/tmp/guix-build-timewarrior-1.4.3.drv-0/timew-1.4.3/src/commands -I/tmp/guix-build-timewarrior-1.4.3.drv-0/timew-1.4.3/src/libshared/src -Wall -Wextra -Wsign-compare -Wreturn-type -std=c++11  -O2 -g -DNDEBUG -MD -MT src/CMakeFiles/libshared.dir/libshared/src/utf8.cpp.o -MF CMakeFiles/libshared.dir/libshared/src/utf8.cpp.o.d -o CMakeFiles/libshared.dir/libshared/src/utf8.cpp.o -c /tmp/guix-build-timewarrior-1.4.3.drv-0/timew-1.4.3/src/libshared/src/utf8.cpp
[ 57%] Linking CXX static library liblibshared.a
cd /tmp/guix-build-timewarrior-1.4.3.drv-0/build/src && /gnu/store/j65q3aw414010gdfvmsynwpzfb2jyyd3-cmake-minimal-3.21.4/bin/cmake -P CMakeFiles/libshared.dir/cmake_clean_target.cmake
cd /tmp/guix-build-timewarrior-1.4.3.drv-0/build/src && /gnu/store/j65q3aw414010gdfvmsynwpzfb2jyyd3-cmake-minimal-3.21.4/bin/cmake -E cmake_link_script CMakeFiles/libshared.dir/link.txt --verbose=1
/gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37/bin/ar qc liblibshared.a CMakeFiles/libshared.dir/libshared/src/Args.cpp.o CMakeFiles/libshared.dir/libshared/src/Color.cpp.o CMakeFiles/libshared.dir/libshared/src/Composite.cpp.o CMakeFiles/libshared.dir/libshared/src/Configuration.cpp.o CMakeFiles/libshared.dir/libshared/src/Datetime.cpp.o CMakeFiles/libshared.dir/libshared/src/Duration.cpp.o CMakeFiles/libshared.dir/libshared/src/FS.cpp.o CMakeFiles/libshared.dir/libshared/src/JSON.cpp.o CMakeFiles/libshared.dir/libshared/src/Lexer.cpp.o CMakeFiles/libshared.dir/libshared/src/Msg.cpp.o CMakeFiles/libshared.dir/libshared/src/Palette.cpp.o CMakeFiles/libshared.dir/libshared/src/Pig.cpp.o CMakeFiles/libshared.dir/libshared/src/RX.cpp.o CMakeFiles/libshared.dir/libshared/src/Table.cpp.o CMakeFiles/libshared.dir/libshared/src/Timer.cpp.o CMakeFiles/libshared.dir/libshared/src/format.cpp.o CMakeFiles/libshared.dir/libshared/src/shared.cpp.o CMakeFiles/libshared.dir/libshared/src/unicode.cpp.o CMakeFiles/libshared.dir/libshared/src/utf8.cpp.o
/gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37/bin/ranlib liblibshared.a
make[2]: Leaving directory '/tmp/guix-build-timewarrior-1.4.3.drv-0/build'
[ 57%] Built target libshared
make[1]: Leaving directory '/tmp/guix-build-timewarrior-1.4.3.drv-0/build'
make: *** [Makefile:159: all] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "8") exit-status: 2 term-signal: #f stop-signal: #f> 
phase `build' failed after 12.0 seconds
command "make" "-j" "8" failed with status 2
-----

If it's of any use to anybody, I have attached the full build log.  Any
guidance would be appreciated.

-- 

Trev : 0FB7 D06B 4A2A F07E AD5B  1169 183B 6306 8AA1 D206

[-- Attachment #2: b8ijzh77cvc7pbmxzkjs276w1rqhcj-timewarrior-1.4.3.drv.gz --]
[-- Type: application/octet-stream, Size: 6999 bytes --]

             reply	other threads:[~2023-01-16 16:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-16 16:44 Trev [this message]
2023-01-16 17:03 ` Packaging timewarrior Timo Wilken
2023-01-16 23:42   ` Trev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230116164445.hd2m747id2ldvzzn@guix \
    --to=trev@trevdev.ca \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.