Giter Site home page Giter Site logo

gittup's Introduction

gittup - http://gittup.org/gittup

About gittup

gittup is a small linux distribution. It is designed to show the power of the combination of git and tup. Git is a distributed version control system. Tup is a file-based build system for Linux, OSX, and Windows. This unique combination allows you to easily change parts of the system, track them by git, and recompile the needed parts of this distribution using tup.

Getting Started

See instructions at http://gittup.org/gittup/

gittup's People

Contributors

gittup avatar stanman29 avatar stefanbeller avatar traverseda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gittup's Issues

tup fails to save dependencies for exe on windows

tup fails saying that is was unable to save dependencies after invoking a compiler on windows to create a .exe file.

On Windows (tup v0.7.3-18-g8e63ea4)

dir
    test.c
    Tupfile

test.c

#include <stdio.h>
int main(int argc, char* argv[])
{
  printf("Hello, World\n");
  return 0;
}

Tupfile

: test.c |> cl /c test.c |> test.obj
: test.obj |> cl test.obj |> test.exe
REM run from Visual Studio Command prompt (to have the "cl" program in the path)
> tup init
> tup upd
[ tup ] [0.007s] Scanning filesystem...
[ tup ] [0.020s] Reading in new environment variables...
[ tup ] [0.030s] Parsing Tupfiles...
 1) [0.004s] .
 [ ] 100%
[ tup ] [0.039s] No files to delete.
[ tup ] [0.041s] Generating .gitignore files...
[ tup ] [0.049s] Executing Commands...
 1) [0.061s] cl /c test.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

test.c
* 2) cl test.obj
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:test.exe
test.obj
Unable to retrieve WOW64 info
 *** tup errors ***
tup error: Expected to write to file 'test.exe' from cmd 24 but didn't
 *** Command ID=24 ran successfully, but tup failed to save the dependencies.
 [  ] 100%
 *** tup: 1 job failed.

The test.exe program was created but tup still shows an error. I just got started with tup so I don't know what's going on. Is this a bug or am I doing something wrong?

git:// protocol blocked here, can't get your kconfig

Since the port that the git:// protocol uses is blocked here, I can't get your kconfig without using port forwarding or a proxy or whatever.

Please consider exposing your git repos via ssh or https. Thank you!

Custom kconfig fails on modern archlinux, probably other systems

tup warning: unshare(CLONE_NEWUSER) failed, and tup is not privileged. Subprocesses will have '.tup/mnt' paths for the current working directory and some dependencies may be missed.
[ tup ] [0.107s] Scanning filesystem...
[ tup ] [0.208s] Reading in new environment variables...
[ tup ] [0.308s] Parsing Tupfiles...
 1) [0.002s] lxdialog
 2) [0.003s] .
 [  ] 100%                                                                                                                                                                   
[ tup ] [0.315s] No files to delete.                                                                                                                                         
[ tup ] [0.316s] Generating .gitignore files...
[ tup ] [0.443s] Executing Commands...
  1) [0.008s] gperf < zconf.gperf > zconf.hash.c                                                                                                                             
  2) [0.015s] flex -L -Pzconf -o lex.zconf.c zconf.l && rm -f lex.backup                                                                                                     
  3) [0.099s] bison -l -b zconf -p zconf zconf.y                                                                                                                             
  4) [0.104s] lxdialog: gcc -c checklist.c -o checklist.o -DCURSES_LOC='<ncurses.h>'                                                                                         
  5) [0.106s] lxdialog: gcc -c inputbox.c -o inputbox.o -DCURSES_LOC='<ncurses.h>'                                                                                           
  6) [0.108s] lxdialog: gcc -c menubox.c -o menubox.o -DCURSES_LOC='<ncurses.h>'                                                                                             
  7) [0.101s] lxdialog: gcc -c yesno.c -o yesno.o -DCURSES_LOC='<ncurses.h>'                                                                                                 
  8) [0.110s] lxdialog: gcc -c textbox.c -o textbox.o -DCURSES_LOC='<ncurses.h>'                                                                                             
  9) [0.130s] lxdialog: gcc -c util.c -o util.o -DCURSES_LOC='<ncurses.h>'                                                                                                   
 10) [0.145s] gcc -c mconf.c -o mconf.o -DCURSES_LOC='<ncurses.h>'                                                                                                           
 11) [0.102s] gcc -c conf.c -o conf.o -DCURSES_LOC='<ncurses.h>'                                                                                                             
 [   ETA~=<1s   ]  85%                                                                                                                                                       
* 12) gcc -c zconf.tab.c -o zconf.tab.o -DCURSES_LOC='<ncurses.h>'
In file included from zconf.tab.c:215:0:
zconf.hash.c:167:1: error: conflicting types for 'kconf_id_lookup'
 kconf_id_lookup (register const char *str, register size_t len)
 ^~~~~~~~~~~~~~~
zconf.hash.c:34:25: note: previous declaration of 'kconf_id_lookup' was here
 static struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);
                         ^~~~~~~~~~~~~~~
 *** tup errors ***
 *** Command ID=59 failed with return value 1
tup error: Expected to write to file 'zconf.tab.o' from cmd 59 but didn't
 *** Additionally, command 59 failed to process input dependencies. These should probably be fixed before addressing the command failure.
 *** tup: 1 job failed.

Looking around, that looks like a common problem with an old kconfig and a new gperf. Since you didn't patch the kconfig in the linux kernel tree, that presents a bit of a tricky thing to solve, since I can't use git to update kconfig while hopefully retaining your patches.

"bfd.h:88:5: error: #if with no expression"

It fails on Ubuntu 11.10

$ tup upd -j2
[ tup ] Scanning filesystem...0.372s
[ tup ] No tup.config changes.
[ tup ] No Tupfiles to parse.
[ tup ] No files to delete.
[ tup ] Executing Commands...
[ 1/2275 ] binutils/bfd: CC [host] archive.c
In file included from archive.c:133:0:
bfd.h:88:5: error: #if with no expression
bfd.h:95:19: error: operator '>=' has no left operand
bfd.h:109:23: warning: type defaults to ‘int’ in declaration of ‘bfd_hostptr_t’ [-Wimplicit-int]
bfd.h:190:10: warning: type defaults to ‘int’ in declaration of ‘file_ptr’ [-Wimplicit-int]
*** tup errors ***
*** Command ID=61704 failed with return value 1
[ 2/2275 ] binutils/bfd: CC [host] aout32.c
In file included from aoutx.h:123:0,
from aout32.c:24:
bfd.h:88:5: error: #if with no expression
bfd.h:95:19: error: operator '>=' has no left operand
bfd.h:109:23: warning: type defaults to ‘int’ in declaration of ‘bfd_hostptr_t’ [-Wimplicit-int]
bfd.h:190:10: warning: type defaults to ‘int’ in declaration of ‘file_ptr’ [-Wimplicit-int]
In file included from aout32.c:24:0:
aoutx.h: In function ‘aout_link_input_bfd’:
aoutx.h:5232:17: warning: variable ‘sym_count’ set but not used [-Wunused-but-set-variable]
*** tup errors ***
*** Command ID=61702 failed with return value 1

The header file around line 88 looks like

define BFD_HOST_64BIT_LONG

define BFD_HOST_64BIT_LONG_LONG

if /// !!!! THE ERROR HERE

define BFD_HOST_64_BIT

define BFD_HOST_U_64_BIT

typedef BFD_HOST_64_BIT bfd_int64_t;

GPG error when following Ubuntu installation instructions.

Problem

Following the Ubuntu installation instructions as written results in the following error:

GPG error: http://ppa.launchpad.net/anatol/tup/ubuntu precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E601AAF9486D3664

This is because the instructions don't include obtaining the PPA's public key.

Hacky solution

Update the instructions to use --allow-unauthenticated:

sudo apt-add-repository 'deb http://ppa.launchpad.net/anatol/tup/ubuntu precise main'
sudo apt-get update --allow-unauthenticated
sudo apt-get install tup

Non-hacky solution

Update the instructions to include installing your public key:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 486D3664
sudo apt-add-repository 'deb http://ppa.launchpad.net/anatol/tup/ubuntu precise main'
sudo apt-get update
sudo apt-get install tup

I got the 486D3664 bit from the last 8 digits of the error message.

This will result in a better experience for new users.

"ImportError: No module named tup_client"

gittup 'tup upd' fails with following error. It seems some file is missing here

[ 593/2924 ] linux/arch/x86/include/asm
*** tup: stderr from command '../../../linux.py BITS=32' ***
Traceback (most recent call last):
File "../../../linux.py", line 7, in
import tup_client
ImportError: No module named tup_client
tup error: run-script exited with failure code: 1
[ 594/2924 ] linux/arch/x86/kernel
Error parsing Tupfile line 14
Line was: 'run $(LINUX_ROOT)/linux.py BITS=32'
[ 595/2924 ] linux
tup error: Unable to parse dependent Tupfile: linux/arch/x86/kernel
Error parsing Tupfile line 28
Line was: ': $(head-y) $(link-y) arch/x86/kernel/vmlinux.lds | $(compiler_files) |&gt; ^ LINK %o^ $(LD) -m elf_i386 --emit-relocs --build-...'

Website lacks IPv6 support

Fixing this should be a matter of adding the IPv6 address from li366-73.members.linode.com (2600:3c03::f03c:91ff:fedf:82a5) as an AAAA record to the domain.

<built-in>:0: internal compiler error: in ten_to_ptwo, at real.c:2182

It sounds like a compiler branch, but I am not sure.

I am trying to build it on Ubuntu 10.04.

$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

$ tup upd
[ tup ] Scanning filesystem...0.333s
[ tup ] No tup.config changes.
[ tup ] No Tupfiles to parse.
[ tup ] No files to delete.
[ tup ] Executing Commands...
[ 1/4085 ] gcc/gcc: CC _ashldi3.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62683 failed with return value 1
[ 2/4085 ] gcc/gcc: CC _ashrdi3.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62685 failed with return value 1
[ 3/4085 ] gcc/gcc: CC _subvsi3.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62707 failed with return value 1
[ 4/4085 ] gcc/gcc: CC _lshrdi3.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62681 failed with return value 1
[ 5/4085 ] gcc/gcc: CC _absvdi2.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62701 failed with return value 1
[ 6/4085 ] gcc/gcc: CC _absvsi2.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62699 failed with return value 1
[ 7/4085 ] gcc/gcc: CC __main.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62697 failed with return value 1
[ 8/4085 ] gcc/gcc: CC _clear_cache.c
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62691 failed with return value 1
[ 9/4085 ] gcc/gcc: CC _muldi3.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62677 failed with return value 1
[ 10/4085 ] gcc/gcc: CC _trampoline.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62695 failed with return value 1
[ 11/4085 ] gcc/gcc: CC _addvsi3.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62703 failed with return value 1
[ 12/4085 ] gcc/gcc: CC _cmpdi2.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62687 failed with return value 1
[ 13/4085 ] gcc/gcc: CC _negdi2.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62679 failed with return value 1
[ 14/4085 ] gcc/gcc: CC _enable_execute_stack.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62693 failed with return value 1
[ 15/4085 ] gcc/gcc: CC _ucmpdi2.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62689 failed with return value 1
[ 16/4085 ] gcc/gcc: CC _addvdi3.c
:0: internal compiler error: in ten_to_ptwo, at real.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gittup.org for instructions.
*** tup errors ***
*** Command ID=62705 failed with return value 1

Ubuntu fuse error

I get this errormessage in Ubuntu, though I have installed fuse.

    1. tup/src/tup/server: CC fuse_fs.c
      Package fuse was not found in the pkg-config search path.
      Perhaps you should add the directory containing `fuse.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'fuse' found
      In file included from fuse_fs.c:28:0:
      tup_fuse_fs.h:26:18: fatal error: fuse.h: No such file or directory
      compilation terminated.
      *** tup errors ***
      *** Command ID=62847 failed with return value 1

How does gittup compare to NixOS?

Reading gittup's description, it sounds very similar to NixOS, which I believe is pretty well known in many circles. Are the two really quite similar? How do they differ?

tup.exe fails to run on Windows7 (32-bit)

What Windows version are the binaries actually built for?
(Windows7-32 complains here about tup.exe (of latest) "not being compatible".)

Did not see any hint on the gittup.org pages.
Please put some info up out somewhere, if this is just a plain Win version mismatch.

(Downloaded a few versions in vain out of desperation, too. ;)
Cannot build it either, right now, not having MinGW at hand. -- I suppose it's that what I'd need.)

Thanks, cheers!

"Who knows: vmlinux.lds"

I am trying to build gittup on my home computer (Ubuntu 11.10) and it returns given error:

[ 592/2924 ] libdvdread/dvdread
[ 593/2924 ] linux/arch/x86/include/asm
*** tup: stderr from command '../../../linux.py BITS=32' ***
Who knows: vmlinux.lds
....

[ 661/2924 ] linux/arch/x86/pci
[ 662/2924 ] linux/net/wireless
[ 663/2924 ] linux/net/ieee802154
[ 664/2924 ] linux/net
[ 665/2924 ] linux
Error: Explicitly named file 'built-in.o' not found in subdir 49880.

  • [49880] linux/usr
    Error parsing Tupfile line 28
    Line was: ': $(head-y) $(link-y) arch/x86/kernel/vmlinux.lds | $(compiler_files) |&gt; ^ LINK %o^ $(LD) -m elf_i386 --emit-relocs --build-...'

Failed to build gcc

Hello,

I wanted so bad to play nethack, so I decided to install it through gittup, unluckily, it failed to build :'(

505) gcc/gcc: HOSTCC crtstuff.c
In file included from /usr/include/stdio.h:28:0,                                                                              
                 from tsystem.h:87,                                                                                           
                 from crtstuff.c:63:                                                                                          
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory                                        
compilation terminated.                                                                                                       
 *** tup errors ***                                                                                                           
 *** Command ID=65516 failed with return value 1                                                                              
tup error: Expected to write to file 'crtbegin.o' from cmd 65516 but didn't                                                   
 *** Additionally, command 65516 failed to process input dependencies. These should probably be fixed before addressing the co
mmand failure.

I installed all the dependencies for ubuntu 12.04.

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.