bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ada build problem with 6.5.20240504


From: Thomas Dickey
Subject: Re: Ada build problem with 6.5.20240504
Date: Tue, 7 May 2024 04:20:30 -0400

On Mon, May 06, 2024 at 10:50:44PM -0500, G. Branden Robinson wrote:
> At 2024-05-06T15:20:14-0400, Thomas Dickey wrote:
> > On Mon, May 06, 2024 at 07:18:33AM -0500, G. Branden Robinson wrote:
> > > This isn't perfectly reproducible; a repeated attempt tends to
> > > succeed.
> > > 
> > > I use "make -j".[1]  My guess is that a dependency is missing in
> > > Ada95/examples/Makefile.
> > 
> > hmm - I've been using gprbuild where it's available (which Debian
> > usually has), and would overlook some cases where it's not used.
> 
> I'm not trying to avoid it; apart from ./configure options, my ncurses
> is completely stock, build-system wise.

gprbuild is a separate package, and I commented because the log looks
different from what I'd expect with that, but the chunk you quoted is
past the point where gprbuild does its work, e.g.,

gprbuild -p -PAdaCurses.gpr -XBUILD_DIR=`cd ..;pwd` -XSOURCE_DIR=`cd ..;pwd` 
-XSOURCE_DIR2=`cd .;pwd` -XLIB_NAME=AdaCurses -XSONAME=libAdaCurses.so.1 
-XLIB_KIND=static
Compile
   [Ada]          terminal_interface-curses-termcap.adb
   [Ada]          terminal_interface.ads

versus

make[2]: Entering directory 'SRCDIR/Ada95/samples'
rm -f sample-explanation.adb
mawk -v this_datadir=SRCDIR/BUILD/share/AdaCurses -f ./split-path.awk < 
./sample-explanation.adb_p  >sample-explanation.adb
gnatmake -a -A. -A../src -A./../src tour -cargs -gnatwa -gnatyg -gnatpn -O2 -I. 
-largs -L../lib -lAdaCurses -L../../lib -lformt -lmenut -lpanelt -lncursest 
-ltinfot   -lpthread   -Wl,-rpath,SRCDIR/lib -lpthread   
x86_64-linux-gnu-gcc-10 -c -I. -I../src -I./../src -gnatwa -gnatyg -gnatpn -O2 
-I. tour.adb

However, "make -j" is always a problem - I'll see if I can discover one :-)

> 
> > > x86_64-linux-gnu-gcc-10 -c -I. -I../src -I./../src -gnatpn -O2 -I. 
> > > ncurses2-flushinp_test.adb
> > > x86_64-linux-gnu-gnatbind-10 -aO. -aO../src -aO./../src -x tour.ali
> > > x86_64-linux-gnu-gnatlink-10 tour.ali -L../lib -lAdaCurses -L../../lib 
> > > -lformw -lmenuw -lpanelw -lncursesw -ldb -ldb
> > > x86_64-linux-gnu-gcc-10 -c -I. -I../src -I./../src -gnatpn -O2 -I. 
> > > ncurses2-getch_test.adb
> > > /usr/bin/ld: cannot find -lAdaCurses
> > > collect2: error: ld returned 1 exit status
> > > x86_64-linux-gnu-gnatlink-10: error when calling 
> > > /usr/bin/x86_64-linux-gnu-gcc-10
> > > gnatmake: *** link failed.
> > > make[2]: *** [Makefile:165: tour] Error 4
> > > x86_64-linux-gnu-gcc-10 -c -I. -I../src -I./../src -gnatpn -O2 -I. 
> > > ncurses2-getopt.adb
> > > x86_64-linux-gnu-gcc-10 -c -I. -I../src -I./../src -gnatpn -O2 -I. 
> > > ncurses2-menu_test.adb
> > > x86_64-linux-gnu-gcc-10 -c -I. -I../src -I./../src -gnatpn -O2 -I. 
> > > ncurses2-overlap_test.adb
> > > x86_64-linux-gnu-gcc-10 -c -I. -I../src -I./../src -gnatpn -O2 -I. 
> > > ncurses2-slk_test.adb
> > > x86_64-linux-gnu-gcc-10 -c -I. -I../src -I./../src -gnatpn -O2 -I. 
> > > ncurses2-test_sgr_attributes.adb
> > > x86_64-linux-gnu-gcc-10 -c -I. -I../src -I./../src -gnatpn -O2 -I. 
> > > ncurses2-trace_set.adb
> > > x86_64-linux-gnu-gnatbind-10 -aO. -aO../src -aO./../src -x ncurses.ali
> > > x86_64-linux-gnu-gnatlink-10 ncurses.ali -L../lib -lAdaCurses -L../../lib 
> > > -lformw -lmenuw -lpanelw -lncursesw -ldb -ldb
> > > /usr/bin/ld: cannot find -lAdaCurses
> > > collect2: error: ld returned 1 exit status
> > > x86_64-linux-gnu-gnatlink-10: error when calling 
> > > /usr/bin/x86_64-linux-gnu-gcc-10
> > > gnatmake: *** link failed.
> > > make[2]: *** [Makefile:162: ncurses] Error 4
> > > make[2]: Leaving directory '/.../ncurses-snapshots/Ada95/samples'
> > > make[1]: *** [Makefile:85: all] Error 2
> > > make[1]: Leaving directory '/.../ncurses-snapshots/Ada95'
> > > make: *** [Makefile:143: all] Error 2
> > > 
> > > Regards,
> > > Branden
> > > 
> > > [1] My build script is pretty simple.
> > > 
> > > $ cat ./ATTIC/remake-ncurses.sh
> > > #!/bin/sh
> > > 
> > > make distclean
> > > config-ncurses && make -j10 && make install && groan
> 
> Here's my "config-ncurses" script.  Some stuff I experimented with
> months ago has been commented out ever since.
> 
> #!/bin/sh
> 
> # autoreconf-dickey -f -i
> 
> ./configure \
>       --prefix=$HOME/ncurses-HEAD \
>       --with-shared \
>       --with-cxx-shared \
>       --with-hashed-db \
>       --with-manpage-format=normal \
>       --with-versioned-syms \
>       --enable-widec \
>       --enable-opaque-curses \
>       --enable-opaque-form \
>       --enable-opaque-menu \
>       --enable-opaque-panel \
> 
> #     --with-shlib-version=rel \
> #     --with-ada-sharedlib \ "no GNAT project support"
> #     --with-config-suffix=GBRINFIX \
> 
> #     --enable-pc-files \
> #     --with-pkg-config \
> #     --with-pc-suffix=GBRSUFFIX \
> 
> Is this a case of gprbuild doing things differently than GNU make and
> GCC?
> 
> Regards,
> Branden



-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]