Re: `make check` fails when trying to build from Git

2024-05-24 Thread Development of GNU Guix and the GNU System distribution.
Hi Ashvith,

On Fri, May 24 2024, Ashvith Shetty wrote:

> I'll be [...]  continuing this discussion on bug-g...@gnu.org, as I
> think that it would be an apt place to discuss.

It isn't.  Any message sent to bug-g...@gnu.org will open a new,
numbered report on debbugs.gnu.org.

You could discuss your issue, after opening such a report, at
report_num...@debbugs.gnu.org.  Please make sure to carbon-copy any
additional participants.  By default, Debbugs notfies no one except when
closing a report.

Before filing a new report it is, however, customary to look first if
another similar report is open already.  Then the relevant conversations
happen in one place.  One way to search would be to access the same
group of reports at https://issues.guix.gnu.org/

Good luck!

Kind regards
Felix

P.S. To everyone, I'm a beekeeper.  Please don't call your reports
"bugs."  Let's call them reports.  I'll try to remember, too.



Re: `make check` fails when trying to build from Git

2024-05-24 Thread Ashvith Shetty
Hello again, sorry for the delay in reply. I'll be closing this
conversation and continuing this discussion on bug-g...@gnu.org, as I think
that it would be an apt place to discuss.

On Sun, May 19, 2024 at 2:18 PM Ludovic Courtès  wrote:

> Hi,
>
> Ashvith Shetty  skribis:
>
> > $ file
> /home/ashvith/Desktop/guix/test-tmp/store/a2k16z6jzwzvvg00bhf4mf9v0k65r7kq-guile-bootstrap-2.0/bin/guile
> >
> /home/ashvith/Desktop/guix/test-tmp/store/a2k16z6jzwzvvg00bhf4mf9v0k65r7kq-guile-bootstrap-2.0/bin/guile:
> empty
>
> This suggests that this file is corrupt: it shouldn’t be empty.
>
> I’d suggest starting from a clean state:
>
>   cd ~/Desktop/guix
>   chmod -R +w test-tmp
>   rm -rf test-tmp
>
> and then:
>
>   make check -j4
>
> HTH!
>
> Ludo’.
>


Re: `make check` fails when trying to build from Git

2024-05-19 Thread Ludovic Courtès
Hi,

Ashvith Shetty  skribis:

> $ file 
> /home/ashvith/Desktop/guix/test-tmp/store/a2k16z6jzwzvvg00bhf4mf9v0k65r7kq-guile-bootstrap-2.0/bin/guile
> /home/ashvith/Desktop/guix/test-tmp/store/a2k16z6jzwzvvg00bhf4mf9v0k65r7kq-guile-bootstrap-2.0/bin/guile:
>  empty

This suggests that this file is corrupt: it shouldn’t be empty.

I’d suggest starting from a clean state:

  cd ~/Desktop/guix
  chmod -R +w test-tmp
  rm -rf test-tmp

and then:

  make check -j4

HTH!

Ludo’.



Re: `make check` fails when trying to build from Git

2024-05-17 Thread Ludovic Courtès
Hi Ashvith,

Ashvith Shetty  skribis:

> while setting up the build environment: executing 
> `/home/ashvith/Desktop/guix/test-tmp/store/a2k16z6jzwzvvg00bhf4mf9v0k65r7kq-guile-bootstrap-2.0/bin/guile':
>  Exec format error

What does this command return:

  file 
/home/ashvith/Desktop/guix/test-tmp/store/a2k16z6jzwzvvg00bhf4mf9v0k65r7kq-guile-bootstrap-2.0/bin/guile

?

Thanks for testing!

Ludo’.



Re: `make check` fails when trying to build from Git

2024-05-16 Thread Ashvith Shetty
Hello Ludovic,
Thank you for merging the improved commits. Unfortunately, it looks like
the test won't continue any further after `print.scm`, which is weird,
because this wasn't the case before. Perhaps, it is stuck on
`processes.scm`? I've attached the half-complete logs below.

On Tue, May 14, 2024 at 9:17 AM Ludovic Courtès  wrote:

> Hi Ashvith,
>
> I pushed the commits below, which should address the two failures you
> reported:
>
>   7ca9809cdbf tests: Skip ‘terminal-string-width’ test on encodings other
> than UTF-8.
>   723d45866f1 tests: Remove interference from the user’s Git config.
>
> Lemme know if that helps!
>
> Thanks,
> Ludo’.
>


processes.log
Description: Binary data


Re: `make check` fails when trying to build from Git

2024-05-14 Thread Ludovic Courtès
Hi Ashvith,

I pushed the commits below, which should address the two failures you
reported:

  7ca9809cdbf tests: Skip ‘terminal-string-width’ test on encodings other than 
UTF-8.
  723d45866f1 tests: Remove interference from the user’s Git config.

Lemme know if that helps!

Thanks,
Ludo’.



Re: `make check` fails when trying to build from Git

2024-05-09 Thread Ashvith Shetty
Hi Ludovic,
Thank you for the timely response. I'm not sure about what input I should
provide for the first error, as it is probably something that I lack the
understanding of. However, with respect to the second failure, I adhere to
XDG compliance for most of my configs, so my git configs are actually
stored in `~/.config/git/config`. Could that have caused this issue?

On Thu, May 9, 2024 at 1:49 PM Ludovic Courtès  wrote:

> Hi Ashvith,
>
> (Cc: guix-devel.)
>
> Thanks for the logs!  They show two test failures:
>
> Ashvith Shetty  skribis:
>
> > test-name: terminal-string-width Japanese
> > location: /home/ashvith/Desktop/guix/tests/syscalls.scm:590
> > source:
> > + (test-equal
> > +   "terminal-string-width Japanese"
> > +   6
> > +   (terminal-string-width "???"))
> > expected-value: 6
> > actual-value: 3
> > result: FAIL
>
> This one happens when *not* running in a UTF-8-capable locale.  We
> should arrange so that the test is skipped in that case.
>
> > + cmp t-download-2080 /home/ashvith/Desktop/guix/README
> > + guix download file:///does-not-exist
> file:///home/ashvith/Desktop/guix/README
> > guix download: error: file:///home/ashvith/Desktop/guix/README:
> extraneous argument
> > + cd /tmp/tmp.yMJjm0ZbQf
> > + git init
> > Initialized empty Git repository in /tmp/tmp.yMJjm0ZbQf/.git/
> > + touch test
> > + git config user.name User
> > + git config user.email user@domain
> > + git add test
> > + git commit -m Commit
> > fatal: either user.signingkey or gpg.ssh.defaultKeyCommand needs to be
> configured
> > + rm -rf /tmp/tmp.yMJjm0ZbQf
> > + rm -f t-download-2080
> > + rm -rf t-archive-dir-2080
> > FAIL tests/guix-download.sh (exit status: 128)
>
> This one seems to have to do with your own ~/.gitconfig.  We should
> arrange so that Git doesn’t read ~/.gitconfig for these tests.
>
> Thanks,
> Ludo’.
>


Re: `make check` fails when trying to build from Git

2024-05-09 Thread Ludovic Courtès
Hi Ashvith,

(Cc: guix-devel.)

Thanks for the logs!  They show two test failures:

Ashvith Shetty  skribis:

> test-name: terminal-string-width Japanese
> location: /home/ashvith/Desktop/guix/tests/syscalls.scm:590
> source:
> + (test-equal
> +   "terminal-string-width Japanese"
> +   6
> +   (terminal-string-width "???"))
> expected-value: 6
> actual-value: 3
> result: FAIL

This one happens when *not* running in a UTF-8-capable locale.  We
should arrange so that the test is skipped in that case.

> + cmp t-download-2080 /home/ashvith/Desktop/guix/README
> + guix download file:///does-not-exist 
> file:///home/ashvith/Desktop/guix/README
> guix download: error: file:///home/ashvith/Desktop/guix/README: extraneous 
> argument
> + cd /tmp/tmp.yMJjm0ZbQf
> + git init
> Initialized empty Git repository in /tmp/tmp.yMJjm0ZbQf/.git/
> + touch test
> + git config user.name User
> + git config user.email user@domain
> + git add test
> + git commit -m Commit
> fatal: either user.signingkey or gpg.ssh.defaultKeyCommand needs to be 
> configured
> + rm -rf /tmp/tmp.yMJjm0ZbQf
> + rm -f t-download-2080
> + rm -rf t-archive-dir-2080
> FAIL tests/guix-download.sh (exit status: 128)

This one seems to have to do with your own ~/.gitconfig.  We should
arrange so that Git doesn’t read ~/.gitconfig for these tests.

Thanks,
Ludo’.



Re: `make check` fails when trying to build from Git

2024-05-09 Thread Ashvith Shetty
(Sorry for replying again, but since my message wasn't reaching to
gnu-devel for others to see, I'm trying this again, this time, hopefully it
should reach others)

Hello Steve,
Yes, you're right about that - I am on the master branch. Should I switch
to a different commit? Maybe the ones listed in `git tag --list`?

On Mon, 6 May, 2024, 15:23 Ashvith Shetty, 
wrote:

> Hello Steve, yes, you're right about that - I am on the master branch.
> Should I switch to a different commit? Maybe the ones listed in `git tag
> --list`? For my first patch, I wanted to create multiple package variants
> of NodeJS. similar to how it was done for Zig. I was wondering if those
> errors can affect them.
>
> On Sun, May 5, 2024 at 3:53 PM Steve George  wrote:
>
>>
>> On  4 May, Ashvith Shetty wrote:
>> > I've been looking forward to contributing some packages to Guix, but so
>> > far, I've not been able to figure out from the manual, so I'm going
>> through
>> > the entire Contributing
>> > 
>> section.
>> >
>> > So far, after the `guix shell -D guix -CPW` command, I've reached the
>> `make
>> > check` part, where the tests fail. What logs should I share, so that I
>> can
>> > make it easier for people to check out the issue that's stopping me from
>> > progressing?
>> (...)
>>
>> Hi Ashvith - are you building the master branch with a recent checkout?
>>
>> I also get some FAILS, but not as many as you.
>>
>> You can probably continue and if the ./pre-inst-env guix command works
>> then you can continue to package.
>>
>> The manual has a section on how to investigate the test failures: if you
>> have alook at those there may be clues and you can create issues with a
>> proper log at that point.
>>
>> Best,
>>
>> Steve / Futurile
>>
>>
>>
>>


Re: `make check` fails when trying to build from Git

2024-05-06 Thread Ludovic Courtès
Hi,

Steve George  skribis:

> Hi Ashvith - are you building the master branch with a recent checkout?
>
> I also get some FAILS, but not as many as you.

It would be nice if you could report it: the list of FAILs and the
corresponding .log files.  Also please mention how you run them: Guix
System or another distro, and whether or not you’re in ‘guix shell -C’.

Some tests are enabled when networking is available, and it’s not
unusual for these to fail if the networking conditions aren’t optimal
(for instance, some ISPs set up DNS hijacking, which breaks some of the
expectations.)

Anyway, it’s probably worth investigating.

Thanks,
Ludo’.



Re: `make check` fails when trying to build from Git

2024-05-05 Thread Steve George


On  4 May, Ashvith Shetty wrote:
> I've been looking forward to contributing some packages to Guix, but so
> far, I've not been able to figure out from the manual, so I'm going through
> the entire Contributing
>  section.
> 
> So far, after the `guix shell -D guix -CPW` command, I've reached the `make
> check` part, where the tests fail. What logs should I share, so that I can
> make it easier for people to check out the issue that's stopping me from
> progressing?
(...)

Hi Ashvith - are you building the master branch with a recent checkout?

I also get some FAILS, but not as many as you.

You can probably continue and if the ./pre-inst-env guix command works then you 
can continue to package.

The manual has a section on how to investigate the test failures: if you have 
alook at those there may be clues and you can create issues with a proper log 
at that point.

Best,

Steve / Futurile





`make check` fails when trying to build from Git

2024-05-04 Thread Ashvith Shetty
I've been looking forward to contributing some packages to Guix, but so
far, I've not been able to figure out from the manual, so I'm going through
the entire Contributing
 section.

So far, after the `guix shell -D guix -CPW` command, I've reached the `make
check` part, where the tests fail. What logs should I share, so that I can
make it easier for people to check out the issue that's stopping me from
progressing?

So far, it generates the following files:

```console
$ ls tests/ | grep .log
accounts.log
base16.log
base32.log
base64.log
boot-parameters.log
bournish.log
build-emacs-utils.log
builders.log
build-utils.log
cache.log
challenge.log
channels.log
combinators.log
composer.log
containers.log
cpan.log
cpio.log
cran.log
crate.log
cve.log
debug-link.log
derivations.log
```