Skip to content

Commit

Permalink
Built a static version of gemma
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed May 3, 2024
1 parent 8132837 commit 8ccbdf2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
4 changes: 0 additions & 4 deletions .guix-dev-static

This file was deleted.

4 changes: 4 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,7 @@ To create a static release, locate the gfortran lib and use
otherwise OpenBlas will complain with

undefined reference to `_gfortran_concat_string'

Note you can use guix.scm if you load with

guix shell -L ~/guix-pjotr -C -D -f guix.scm
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ debug check fast-check: CPPFLAGS += -g $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -Isrc

profile: CPPFLAGS += -g $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -Isrc

release: CPPFLAGS += -DNDEBUG -O3 $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -Isrc
release: CPPFLAGS += -DNDEBUG -g -O3 $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -Isrc

static: CPPFLAGS += -DNDEBUG -O3 $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -Isrc
static: CPPFLAGS += -DNDEBUG -g $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -Isrc


ifeq ($(SYS), WIN)
Expand Down
27 changes: 15 additions & 12 deletions guix.scm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
;;
;; To get a development container (e.g., run in emacs shell).
;;
;; guix shell -C -f guix.scm
;; guix shell -C -D -f guix.scm
;;

(use-modules
((guix licenses) #:prefix license:)
Expand All @@ -28,6 +29,7 @@
;; (gnu packages perl6)
(gnu packages ruby)
(gnu packages pkg-config)
(pjotr packages openblas) ;; we use this for the static builds
;; (gnu packages shell) ;; for shunit2
(srfi srfi-1)
(ice-9 popen)
Expand All @@ -47,18 +49,19 @@
(version (git-version "0.98.5" "HEAD" %git-commit))
(source (local-file %source-dir #:recursive? #t))
(build-system gnu-build-system)
(inputs `(
("catch" ,catch2)
("gdb" ,gdb)
("gsl" ,gsl)
;; ("shunit2" ,shunit2) ;; comes with gemma
("openblas" ,openblas)
("ruby" ,ruby) ;; for testing
("zlib:static" ,zlib "static")
("zlib" ,zlib)
))
(inputs
`(
("catch" ,catch2)
("gdb" ,gdb)
("gsl-static" ,gsl-static)
("gsl" ,gsl)
("openblas" ,openblas)
("ruby" ,ruby) ;; for testing
("zlib:static" ,zlib "static")
("zlib" ,zlib)))

(native-inputs ; for running tests
`(("perl" ,perl)
`(("perl" ,perl)
("which" ,which)
))
(arguments
Expand Down

0 comments on commit 8ccbdf2

Please sign in to comment.