[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ncurses 6.5 build fails - Solaris 10
From: |
Thomas Dickey |
Subject: |
Re: Ncurses 6.5 build fails - Solaris 10 |
Date: |
Sat, 16 Nov 2024 09:51:58 -0500 |
On Fri, Nov 15, 2024 at 09:22:24PM -0800, Freya Starshade wrote:
> Hiya,
>
>
> So we're trying to do a pretty standard build of ncurses, and it fails with
> this error:
>
> sparc64-sun-solaris2.10-gcc -m64 -R/opt/FSYS/packages/lib
> -R/opt/FSYS/packages/lib/64 -L/opt/FSYS/packages/lib
> -L/opt/FSYS/packages/lib/64 -m64 --param max-inline-insns-single=1200
> -shared -dy -G -Wl,-h,basename ../lib/libpanelw.so.6.5 .6.5.6 -o
> ../lib/libpanelw.so.6.5 ../obj_s/panel.o ../obj_s/p_above.o
> ../obj_s/p_below.o ../obj_s/p_bottom.o ../obj_s/p_delete.o ../obj_s/p_hide.o
> ../obj_s/p_hidden.o ../obj_s/p_move.o ../obj_s/p_new.o ../obj_s/p_replace.o
> ../obj_s/p_show.o ../obj_s/p_top.o ../obj_s/p_update.o ../obj_s/p_user.o
> ../obj_s/p_win.o -L../lib -lncursesw
>
> /opt/FSYS/packages/bin/ld: read-only segment has dynamic relocations
> collect2: error: ld returned 1 exit status
...which says that it's failing to construct the panel library,
but doesn't tell us whether the problem is in the ".o" files used
for panel, or if there's some problem in the ncurses library.
(I've built 6.5 with several configurations including Solaris 10 sparc with cc,
and Intel with an older version of gcc)
The source (.c) for panel didn't change between 6.4 and 6.5
There were several changes to ncurses library, of course.
(Sometimes I improve the use of const in tables, but don't recall
offhand where that might be relevant).
The default configuration did change from normal to widechar.
If you can bisect and pinpoint a change which produces the problem,
that would be helpful. (The change between normal/widechar is
a large change, which would take additional discussion).
https://github.com/ThomasDickey/ncurses-snapshots
> Configuring with the following ./configure line:
>
> ./configure --prefix=/opt/FSYS/packages --build=sparc64-sun-solaris2.10
> --host=sparc64-sun-solaris2.10 --target=sparc64-sun-solaris2.10
> CFLAGS='-m64' LDFLAGS='-m64 -R/opt/FSYS/packages/lib
> -R/opt/FSYS/packages/lib/64 -L/opt/FSYS/packages/lib
> -L/opt/FSYS/packages/lib/64' CPPFLAGS='-m64 -D_XPG6
> -I/opt/FSYS/packages/include' CXXFLAGS='-m64' --without-ada --with-shared
> --with-cxx-shared --without-debug --without-normal --enable-pc-files
>
> Software version:
>
> GCC: 9.5.0
>
> GNU LD: 2.4.3
>
> Solaris: Solaris 10 1/13 SPARC
>
> Does anyone know what might be going on? That LD error message is incredibly
> non-helpful. Attached is our config.log
>
>
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by configure, which was
> generated by GNU Autoconf 2.52.20231210. Invocation command line was
>
> $ ./configure --prefix=/opt/FSYS/packages --build=sparc64-sun-solaris2.10
> --host=sparc64-sun-solaris2.10 --target=sparc64-sun-solaris2.10 CFLAGS=-m64
> -fPIC LDFLAGS=-m64 -R/opt/FSYS/packages/lib -R/opt/FSYS/packages/lib/64
> -L/opt/FSYS/packages/lib -L/opt/FSYS/packages/lib/64 CPPFLAGS=-m64 -D_XPG6
> -I/opt/FSYS/packages/include CXXFLAGS=-m64 --without-ada --with-shared
> --with-cxx-shared --without-debug --without-normal --enable-pc-files
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
signature.asc
Description: PGP signature