Re: GNU make 4.3.92 on Solaris 11

2022-10-27 Thread Bruno Haible
Dmitry Goncharov wrote:
> >   - On Solaris 11 OmniOS, there are only 3 test failures. Attached.
> These are the same failures that you reported on centos.

Indeed.

> 10 s is so long, i suspect there is a deadlock.

Possibly. Often the cause of a deadlock, in interprocess communication,
is that a file descriptor which was meant to be left open in 1 process
only is actually open in 2 or more processes.

> Can you please tell us how to reproduce (either sun or centos)? Where
> do you get your vm image, how you run it, any specific env settings,
> which compiler, any other important details?

Sure.

=== CentOS 8 stream installation =

Use CentOS 8 stream 2022-10-05 from
https://ftp.gwdg.de/pub/linux/centos/8-stream/isos/x86_64/

RAM size: 1.0 GiB
CPUs: 1
Disk size: 15 GB.

The installation menu is in a stupid order: Can only enable NTP servers
after networking is enabled! Therefore do things in this order:

Installation Destination:
Storage Configuration: Custom
Standard Partition  14 GiB (14336 MiB)  /  ext4
Standard Partition  1  GiB (1024 MiB)   swap

KDump:
Disable kdump.

Network & host name:
Enable networking.
Ethernet config: General > Enable "Connect automatically".
Host name: centos8s

Time & Date:
Set time zone.
Disable then Enable "Network Time".

Installation Source:
On the network, https://ftp.gwdg.de/pub/linux/centos/8-stream/BaseOS/x86_64/os/
URL type: repository URL
Deselect AppStream.
Select AppStream.

Software selection:
  Base Environment: Workstation
  Add-ons: Development Tools, Graphical Administration Tools

Root password:
  login: root
  password: **
  Press "Done" twice.

User settings:
  login: bruno
  password: **
  Select "Make this user administrator".
  Press "Done".

Click "Begin installation".

Wait for the installation to complete.

Power off. Eject CD.

Welcome wizard:
  Privacy: Location services: off.

Popup menu > Settings > Privacy > Screen Lock
Automatic screen lock = Off

Popup menu > Settings > Power > Power Saving
Blank screen = Never

Activities > Software > Updates: Refresh. -> Up to date.

Activities > Software

Search: GNU Emacs, install
Search: gVim, install

$ dnf list
# Not needed:
#$ sudo dnf install make
#$ sudo dnf install gcc
#$ sudo dnf install gcc-c++

Power Off.

=== CentOS 8 stream build configuration ==

CC="gcc"; CXX="g++"; export CC CXX

../configure --prefix=$HOME/inst-x86_64-64 \
 CPPFLAGS="-I$HOME/inst-x86_64-64/include -Wall" \
 LDFLAGS="-L$HOME/inst-x86_64-64/lib" 2>&1 | tee log1 \
&& make 2>&1 | tee log2 \
&& make check 2>&1 | tee log3

=== Solaris 11 OmniOS installation =

OmniOS, a distro based on Illumos - roughly Solaris 11 compatible.

Download OmniOS release 2020-11-02 from
https://downloads.omniosce.org/media/stable/omniosce-r151036.iso

RAM size: 1.5 GiB
CPUs: 1
Disk size: 10 GB

Host name: omnios
Time zone: Europe / Germany / Germany
Configure:
  Networking:
Configuration mode: DHCP
  User:
Login: bruno
Password: **
Grant both administrator and sudo role
  Root password: **
Reboot

Eject CD/DVD. Reboot.

https://omniosce.org/info/getstarted.html

# pkg refresh
# pkg list -u
# pkg update
# pkg install pkg:/package/pkg
# pkg update

Reboot.

Package repositories:
https://omniosce.org/info/ipsrepos.html
-> https://pkg.omniosce.org/r151036/core/en/catalog.shtml
-> https://pkg.omniosce.org/r151036/extra/en/catalog.shtml

# pkg search /usr/bin/gcc
# pkg search /usr/bin/g++
# pkg search /usr/include/stdio.h
# pkg search /usr/bin/gdb   # none, use mdb instead
# pkg search /usr/bin/emacs # none, use vi = vim instead

# pkg install /developer/gcc9
# pkg install /system/header
# pkg install /developer/build/gnu-make

=== Solaris 11 OmniOS build configuration =

CC="gcc -O2"; CXX="g++ -O2"; export CC CXX
CONFIG_SHELL=/usr/bin/bash; export CONFIG_SHELL

../configure --prefix=$HOME/prefix64 \
 CPPFLAGS="-I$HOME/prefix64/include -Wall" \
 LDFLAGS="-L$HOME/prefix64/lib" 2>&1 | tee log1 \
&& gmake 2>&1 | tee log2 \
&& gmake check 2>&1 | tee log3

=






Re: GNU make 4.3.92 on Solaris 11

2022-10-27 Thread Dmitry Goncharov
On Tue, Oct 25, 2022 at 10:26 AM Bruno Haible  wrote:
> With GNU make 4.3.92, the results are much better:
>   - On Solaris 11.4 and Solaris 11 OpenIndiana, all tests pass.
>   - On Solaris 11 OmniOS, there are only 3 test failures. Attached.


These are the same failures that you reported on centos.
What i see, is that you run your sun on x86_64. i built make with your
config.h and it passes all tests for me on sun on sparc.
i had to make one change though.
#include 
in findprog.h to compile it with your config.h.

10 s is so long, i suspect there is a deadlock.
Can you please tell us how to reproduce (either sun or centos)? Where
do you get your vm image, how you run it, any specific env settings,
which compiler, any other important details?

regards, Dmitry



Re: GNU make 4.3.92 on Solaris 11

2022-10-25 Thread Bruno Haible
I wrote:
> On Solaris 11.4 / x86_64, in 64-bit mode, the compilation works fine, but 
> there
> are 20 test failures. Likewise in 32-bit mode.
> 
> On Solaris 11 OmniOS, in 64-bit mode, the compilation works fine, but there
> are 22 test failures. In 32-bit mode, even 26 test failures.
> 
> On Solaris 11 OpenIndiana, in 64-bit mode, the compilation works fine, but 
> there
> are 20 test failures. In 32-bit mode, even 24 test failures.

With GNU make 4.3.92, the results are much better:
  - On Solaris 11.4 and Solaris 11 OpenIndiana, all tests pass.
  - On Solaris 11 OmniOS, there are only 3 test failures. Attached.



makeerror-x86_64-pc-solaris2.11-omnios.tar.gz
Description: application/compressed-tar