GithubHelp home page GithubHelp logo

janet-date's People

Contributors

cosmictoast avatar pepe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

evuez pepe

janet-date's Issues

Errors installing

I am having trouble building this package on my desktop. It builds fine on my tablet in Termux using the same version of Janet (v1.30.0), both of which are being built from source with make && make install.

$ janet -v
1.30.0-ecc4d80a
$ uname -r
6.4.7-arch1-3
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.1 20230801 (GCC) 
$ make --version
GNU Make 4.4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ sudo jpm install https://github.com/cosmictoast/janet-date.git
From https://github.com/cosmictoast/janet-date
 * branch            HEAD       -> FETCH_HEAD
HEAD is now at d92871b release 1.0.1
compiling src/tm.c to build/src___tm.o...
compiling tz/asctime.c to build/tz___asctime.static.o...
compiling tz/strftime.c to build/tz___strftime.static.o...
compiling src/main.c to build/src___main.static.o...
compiling src/time.c to build/src___time.static.o...
compiling src/util.c to build/src___util.static.o...
compiling tz/localtime.c to build/tz___localtime.static.o...
compiling tz/difftime.c to build/tz___difftime.static.o...
In file included from /usr/include/stdio.h:33,
                 from /usr/local/include/janet/janet.h:421,
                 from src/polyfill.h:2,
                 from src/date.h:3,
                 from src/tm.c:1:
src/compat.h:28:21: error: ‘struct tm’ has no member named ‘tm_gmtoff’; did you mean ‘__tm_gmtoff’?
   28 | #  define TM_GMTOFF tm_gmtoff
      |                     ^~~~~~~~~
src/tm.c:40:40: note: in expansion of macro ‘TM_GMTOFF’
   40 |         {"gmtoff", offsetof(struct tm, TM_GMTOFF)},
      |                                        ^~~~~~~~~
src/compat.h:31:19: error: ‘struct tm’ has no member named ‘tm_zone’; did you mean ‘tm_mon’?
   31 | #  define TM_ZONE tm_zone
      |                   ^~~~~~~
src/tm.c:43:38: note: in expansion of macro ‘TM_ZONE’
   43 |         {"zone", offsetof(struct tm, TM_ZONE)},
      |                                      ^~~~~~~
error: command failed with non-zero exit code 1
error: build fail
  in pdag [/usr/local/lib/janet/jpm/dagbuild.janet] (tailcall) on line 79, column 23
  in <anonymous> [/usr/local/lib/janet/jpm/pm.janet] on line 237, column 9
  in <anonymous> [/usr/local/lib/janet/jpm/pm.janet] on line 221, column 5
  in bundle-install [/usr/local/lib/janet/jpm/pm.janet] on line 219, column 3
  in install [/usr/local/lib/janet/jpm/commands.janet] on line 199, column 20
  in run [/usr/local/lib/janet/jpm/cli.janet] (tailcall) on line 88, column 9
  in run-main [boot.janet] on line 3883, column 16
  in cli-main [boot.janet] on line 4036, column 17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.