Re: Mozilla Software on Sparc64/Linux

2021-11-16 Thread Connor McLaughlan
Hello Adrian,

i  had also to replace python-minimal in the config.in it seems, otherwise
it would show up again with the original package.

Now it is missing those dependencies:

The following packages have unmet dependencies:
 sbuild-build-depends-main-dummy : Depends: llvm-6.0-dev but it is not
installable
   Depends: libclang-6.0-dev but it is not
installable
   Depends: clang-6.0 but it is not
installable

Should i get those from snapshot or is there also a possible replacement?

Regards,
Connor

On Tue, Nov 16, 2021 at 8:35 PM John Paul Adrian Glaubitz <
glaub...@physik.fu-berlin.de> wrote:

> Hello!
>
> On 11/16/21 18:23, Connor McLaughlan wrote:> sbuild was able to start now.
> >
> > I am now getting the dependency problem regarding python-minimal here
> also:
> > (...)
> >   unsat-dependency: python-minimal:sparc64 (>= 2.6.6-13~)
>
> You need to replace "python-minimal" with "python2-minimal" in the
> Build-Depends
> field in debian/control:
>
> $ sed -i 's/python-minimal/python2-minimal/g' debian/control
>
> Adrian
>
> --
>  .''`.  John Paul Adrian Glaubitz
> : :' :  Debian Developer - glaub...@debian.org
> `. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
>   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
>
>


SunFire v120, RX MAC fifo overflow smac on Integrated Ethernet

2021-11-16 Thread Jacopo Cassinis
Dear SPARC users and developers,

I apologise in advance if I posted something wrong, it is my first time
posting in a Linux mailing list.

I've been a long time user of Debian SPARC on my beloved SunFire v120,
and so far no huge hiccups have appeared.
However, recently I noticed that the download speeds from Apache
(configured as a reverse proxy) were really appalling, and while
troubleshooting in dmesg I saw a lot of these messages: 

[269078.153988] gem :01:0c.1 enp1s12f1: RX MAC fifo overflow
smac[00010400]
[269078.473210] gem :01:0c.1 enp1s12f1: RX MAC fifo overflow
smac[00010400]
[269078.687644] gem :01:0c.1 enp1s12f1: RX MAC fifo overflow
smac[00045822]
[269078.900453] gem :01:0c.1 enp1s12f1: RX MAC fifo overflow
smac[00045822]
[269079.167987] gem :01:0c.1 enp1s12f1: RX MAC fifo overflow
smac[00845822]
[269079.370054] gem :01:0c.1 enp1s12f1: RX MAC fifo overflow
smac[00045822]
[269079.577275] gem :01:0c.1 enp1s12f1: RX MAC fifo overflow
smac[00010400]

Sometimes the network cards even hang totally, and the only way to fix
is to either systemctl restart networking (doesn't always work) or
rmmod gem and then modprobe gem (but sometimes it results in CPU#0 soft
lockup and then I have to connect to the LOM and restart the whole
machine.)

I haven't really figured out what causes the crashes, kernel doesn't
seem to make a difference (was running 4.19 and it crashes, now I am
running 5.14 and it still crashes). 

It also seems related to a specific virtual host in Apache, since on
other vhosts the download speed is fine (although I usually get the
messages, but less often). Also the speedtest works fine.

It appears that changing the default traffic shaping algorithm from
fifo to fq_codel alleviates the issue (it doesn't crash as often) but
the messages are still there.

Anyway I don't think a messed up vhost should crash the network card,
so I don't really know where to head next. Googling the issue reveals
problems with gem cards, but no real solution.

If I can help with something just ask me, I don't really know where to
bang my head.

Thanks
Jacopo








Re: Booting a T5140 panics

2021-11-16 Thread Nemo Nusquam

Greetings, Adrian.

On 2021-11-16 03:39, John Paul Adrian Glaubitz wrote:

Hello Rich!

On 11/16/21 04:19, Rich wrote:

Anybody have a suggestion for how to not get burned by this? I can try
just booting older and older snapshots, but I only have so many
burnable discs.

Try this image which has a 4.19 kernel which is known to be less problematic
on older SPARCs:


https://cdimage.debian.org/cdimage/ports/snapshots/2019-07-16/debian-10.0-sparc64-NETINST-1.iso


Will this work on a SB2000?  I tried older Debian releases and there 
were problems with FC.


Sincerely,
N.



Re: Mozilla Software on Sparc64/Linux

2021-11-16 Thread John Paul Adrian Glaubitz
Hello!

On 11/16/21 18:23, Connor McLaughlan wrote:> sbuild was able to start now.
> 
> I am now getting the dependency problem regarding python-minimal here also:
> (...)
>   unsat-dependency: python-minimal:sparc64 (>= 2.6.6-13~)

You need to replace "python-minimal" with "python2-minimal" in the Build-Depends
field in debian/control:

$ sed -i 's/python-minimal/python2-minimal/g' debian/control

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: Mozilla Software on Sparc64/Linux

2021-11-16 Thread Connor McLaughlan
When i try to install python-minimal into the chroot, i get:

root@SunUltra25:/work/chroot# chroot /work/chroot/sid-sparc64-sbuild
root@SunUltra25:/# apt install python-minimal
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python-minimal is not available, but is referred to by another
package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python2-minimal python-is-python3 python-is-python2

E: Package 'python-minimal' has no installation candidate

Regards,
Connor


On Tue, Nov 16, 2021 at 6:23 PM Connor McLaughlan 
wrote:

> Hello Adrian,
>
> sbuild was able to start now.
>
> I am now getting the dependency problem regarding python-minimal here also:
>
> output-version: 1.2
> native-architecture: sparc64
> report:
>  -
>   package: sbuild-build-depends-main-dummy
>   version: 0.invalid.0
>   architecture: sparc64
>   status: broken
>   reasons:
>-
> missing:
>  pkg:
>   package: sbuild-build-depends-main-dummy
>   version: 0.invalid.0
>   architecture: sparc64
>   unsat-dependency: python-minimal:sparc64 (>= 2.6.6-13~)
>
> background-packages: 77315
> foreground-packages: 1
> total-packages: 77316
> broken-packages: 1
>
>
> +--+
> | Cleanup
>  |
>
> +--+
>
> Purging /<>
> Not cleaning session: cloned chroot in use
> E: Package build dependencies not satisfied; skipping
>
>
> +--+
> | Summary
>  |
>
> +--+
>
> Build Architecture: sparc64
> Build Type: any
> Build-Space: n/a
> Build-Time: 0
> Distribution: sid
> Fail-Stage: install-deps
> Host Architecture: sparc64
> Install-Time: 0
> Job: /work/firefox-build/firefox_62.0.3-1.1.dsc
> Machine Architecture: sparc64
> Package: firefox
> Package-Time: 0
> Source-Version: 62.0.3-1.1
> Space: n/a
> Status: given-back
> Version: 62.0.3-1.1
>
> 
> Finished at 2021-11-16T16:15:18Z
> Build needed 00:00:00, no disk space
> E: Package build dependencies not satisfied; skipping
> connor@SunUltra25:/work/firefox-build/firefox-62.0.3$
>
> On Tue, Nov 16, 2021 at 3:26 PM John Paul Adrian Glaubitz <
> glaub...@physik.fu-berlin.de> wrote:
>
>> On 11/16/21 15:22, Connor McLaughlan wrote:
>> > onnor@SunUltra25:/work/firefox-build/firefox-62.0.3$ sbuild -d sid
>> > --arch=sparc64 --no-arch-all
>> > hostname: Name or service not known
>> > /bin/sh: 1: python: not found
>>
>> As root, change into the chroot and install python-is-python2:
>>
>> # chroot /srv/chroot/sid-sparc64-sbuild
>> # apt install python-is-python2
>> # exit
>>
>> Then try again.
>>
>> Adrian
>>
>> --
>>  .''`.  John Paul Adrian Glaubitz
>> : :' :  Debian Developer - glaub...@debian.org
>> `. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
>>   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
>>
>>


Re: Mozilla Software on Sparc64/Linux

2021-11-16 Thread Connor McLaughlan
Hello Adrian,

sbuild was able to start now.

I am now getting the dependency problem regarding python-minimal here also:

output-version: 1.2
native-architecture: sparc64
report:
 -
  package: sbuild-build-depends-main-dummy
  version: 0.invalid.0
  architecture: sparc64
  status: broken
  reasons:
   -
missing:
 pkg:
  package: sbuild-build-depends-main-dummy
  version: 0.invalid.0
  architecture: sparc64
  unsat-dependency: python-minimal:sparc64 (>= 2.6.6-13~)

background-packages: 77315
foreground-packages: 1
total-packages: 77316
broken-packages: 1

+--+
| Cleanup
   |
+--+

Purging /<>
Not cleaning session: cloned chroot in use
E: Package build dependencies not satisfied; skipping

+--+
| Summary
   |
+--+

Build Architecture: sparc64
Build Type: any
Build-Space: n/a
Build-Time: 0
Distribution: sid
Fail-Stage: install-deps
Host Architecture: sparc64
Install-Time: 0
Job: /work/firefox-build/firefox_62.0.3-1.1.dsc
Machine Architecture: sparc64
Package: firefox
Package-Time: 0
Source-Version: 62.0.3-1.1
Space: n/a
Status: given-back
Version: 62.0.3-1.1

Finished at 2021-11-16T16:15:18Z
Build needed 00:00:00, no disk space
E: Package build dependencies not satisfied; skipping
connor@SunUltra25:/work/firefox-build/firefox-62.0.3$

On Tue, Nov 16, 2021 at 3:26 PM John Paul Adrian Glaubitz <
glaub...@physik.fu-berlin.de> wrote:

> On 11/16/21 15:22, Connor McLaughlan wrote:
> > onnor@SunUltra25:/work/firefox-build/firefox-62.0.3$ sbuild -d sid
> > --arch=sparc64 --no-arch-all
> > hostname: Name or service not known
> > /bin/sh: 1: python: not found
>
> As root, change into the chroot and install python-is-python2:
>
> # chroot /srv/chroot/sid-sparc64-sbuild
> # apt install python-is-python2
> # exit
>
> Then try again.
>
> Adrian
>
> --
>  .''`.  John Paul Adrian Glaubitz
> : :' :  Debian Developer - glaub...@debian.org
> `. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
>   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
>
>


Re: Mozilla Software on Sparc64/Linux

2021-11-16 Thread John Paul Adrian Glaubitz
On 11/16/21 15:22, Connor McLaughlan wrote:
> onnor@SunUltra25:/work/firefox-build/firefox-62.0.3$ sbuild -d sid
> --arch=sparc64 --no-arch-all
> hostname: Name or service not known
> /bin/sh: 1: python: not found

As root, change into the chroot and install python-is-python2:

# chroot /srv/chroot/sid-sparc64-sbuild
# apt install python-is-python2
# exit

Then try again.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: Mozilla Software on Sparc64/Linux

2021-11-16 Thread Connor McLaughlan
Hello Adrian,

i went through all steps and when i finally try to start the building
process, i get these errors:

onnor@SunUltra25:/work/firefox-build/firefox-62.0.3$ sbuild -d sid
--arch=sparc64 --no-arch-all
hostname: Name or service not known
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
dh clean
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/work/firefox-build/firefox-62.0.3'
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
rm -f debian/firefox-dev.links debian/firefox.1 debian/firefox.NEWS
debian/firefox.README.Debian debian/firefox.bug-control
debian/firefox.bug-presubj debian/firefox.bug-script debian/firefox.desktop
debian/firefox.dirs debian/firefox.install debian/firefox.js
debian/firefox.links debian/firefox.lintian-overrides
debian/firefox.manpages debian/firefox.mime debian/firefox.mozconfig
debian/firefox.postinst debian/firefox.prerm debian/noinstall
debian/l10n/browser-l10n.control
rm -f configure js/src/configure old-configure js/src/old-configure
rm -rf stamps l10n
debian/rules debian/control TESTDIR=
make[2]: Entering directory '/work/firefox-build/firefox-62.0.3'
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
/bin/sh: 1: python: not found
python -B debian/l10n/gen  > debian/l10n/browser-l10n.control
/bin/sh: 1: python: not found
make[2]: *** [debian/rules:148: debian/l10n/browser-l10n.control] Error 127
make[2]: Leaving directory '/work/firefox-build/firefox-62.0.3'
make[1]: *** [debian/rules:255: override_dh_auto_clean] Error 2
make[1]: Leaving directory '/work/firefox-build/firefox-62.0.3'
make: *** [debian/rules:321: clean] Error 2
E: Failed to clean source directory /work/firefox-build/firefox-62.0.3
(/work/firefox-build/firefox_62.0.3-1.1.dsc)
connor@SunUltra25:/work/firefox-build/firefox-62.0.3$

What can i do to correct it?

Regards,
Connor

On Tue, Nov 16, 2021 at 9:37 AM John Paul Adrian Glaubitz <
glaub...@physik.fu-berlin.de> wrote:

> Hello!
>
> On 11/15/21 23:20, Connor McLaughlan wrote:
> > i have read through the sbuild page and it is very long and looks very
> > complicated and not tailored to a sparc64 machine.
> > Is really everything on that page needed to get it running?
>
> No, it's actually very simple and works on any architecture.
>
> As root:
>
> # apt install sbuild devscripts
> # sbuild-createchroot unstable /srv/chroot/sid-sparc64-sbuild --alias=sid \
>   --keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg \
>   http://ftp.ports.debian.org/debian-ports
> # sbuild-adduser $YOURUSER
>
> Then, as your normal user ($YOURUSER):
>
> $ mkdir firefox-build
> # cd firefox-build
> # dget -u
> http://snapshot.debian.org/archive/debian/20181003T162948Z/pool/main/f/firefox/firefox_62.0.3-1.dsc
> # wget https://bug1434726.bmoattachments.org/attachment.cgi?id=8947275 -O
> align-fix.diff
> # cd firefox-62.0.3
> # patch -p1 < ../align-fix.diff
> # dpkg-source --commit (enter a desired patch name, then opens an editor;
> just save and close)
> # dch -i 'Add patch to fix alignment on sparc64'
> # dch -r ''
> # sbuild -d sid --arch=sparc64 --no-arch-all
>
> Adrian
>
> --
>  .''`.  John Paul Adrian Glaubitz
> : :' :  Debian Developer - glaub...@debian.org
> `. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
>   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
>
>


Re: Mozilla Software on Sparc64/Linux

2021-11-16 Thread Anatoly Pugachev
On Mon, Nov 15, 2021 at 5:21 PM Connor McLaughlan  wrote:
>
> Hello Anatoly,
>
> i am using the highest available gdb for sparc64:
> root@SunUltra25:/work/firefox62# aptitude versions gdb
> i   10.1-2
> unstable  
> 500
>
> Should i use something else?

version 10.1-2 of gdb has a crucial bug in printing backtrace output
or just printing variables,
please see explanation in
https://sourceware.org/bugzilla/show_bug.cgi?id=27147#c16

So use either older version of gdb 9.x (could be installed from
snapshot.d.o) or more recent one, i.e. 10.2 or even 11.x (not
available to debian package yet, but could be compiled from sources).



Re: Booting a T5140 panics

2021-11-16 Thread John Paul Adrian Glaubitz
Hello Rich!

On 11/16/21 04:19, Rich wrote:
> Anybody have a suggestion for how to not get burned by this? I can try
> just booting older and older snapshots, but I only have so many
> burnable discs.

Try this image which has a 4.19 kernel which is known to be less problematic
on older SPARCs:

> https://cdimage.debian.org/cdimage/ports/snapshots/2019-07-16/debian-10.0-sparc64-NETINST-1.iso

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: Mozilla Software on Sparc64/Linux

2021-11-16 Thread John Paul Adrian Glaubitz
Hello!

On 11/15/21 23:20, Connor McLaughlan wrote:
> i have read through the sbuild page and it is very long and looks very
> complicated and not tailored to a sparc64 machine.
> Is really everything on that page needed to get it running?

No, it's actually very simple and works on any architecture.

As root:

# apt install sbuild devscripts
# sbuild-createchroot unstable /srv/chroot/sid-sparc64-sbuild --alias=sid \
  --keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg \
  http://ftp.ports.debian.org/debian-ports
# sbuild-adduser $YOURUSER

Then, as your normal user ($YOURUSER):

$ mkdir firefox-build
# cd firefox-build
# dget -u 
http://snapshot.debian.org/archive/debian/20181003T162948Z/pool/main/f/firefox/firefox_62.0.3-1.dsc
# wget https://bug1434726.bmoattachments.org/attachment.cgi?id=8947275 -O 
align-fix.diff
# cd firefox-62.0.3
# patch -p1 < ../align-fix.diff
# dpkg-source --commit (enter a desired patch name, then opens an editor; just 
save and close)
# dch -i 'Add patch to fix alignment on sparc64'
# dch -r ''
# sbuild -d sid --arch=sparc64 --no-arch-all

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913