pkgsrc-Users archive

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

2024Q2; uemacs-4.0nb2 drops core on NetBSD-10



When you run uemacs, the terminal screen clears and errors as follows:

 --> [Setting up....][3]   Abort trap (core dumped) uemacs

The core dumps listed below correspond to the built package available to
pkg_add/pkgin, that's the first one, the second core was
generated by the local uemacs build [See A] using /etc/mk.conf [See B].

See
 --> https://sdf.org/~van.ly/netbsd-10/pkgsrc/uemacs.core
 --> https://sdf.org/~van.ly/netbsd-10/pkgsrc/uemacs-2.core

See A

    1  # uemacs build
    2    
    3    $ make
    4    make
    5    => Bootstrap dependency digest>=20211023: found digest-20220214
    6    => Fetching ue400dev.zip
    7    ===> Installing dependencies for uemacs-4.0nb2
    8    => Tool dependency mktools-[0-9]*: found mktools-20220614
    9    => Tool dependency ccache-[0-9]*: found ccache-4.9.1
   10    => Tool dependency cwrappers>=20150314: found
    cwrappers-20220403
   11    => Build dependency gcc12>=12.3.0: found gcc12-12.3.0
   12    ===> Checking for vulnerabilities in uemacs-4.0nb2
   13    ===> Overriding tools for uemacs-4.0nb2
   14    ===> Extracting for uemacs-4.0nb2
   15    /bin/cp -r /var/tmp/pkg/editors/uemacs/work/freebsd
    /var/tmp/pkg/editors/uemacs/work/netbsd
   16    ===> Patching for uemacs-4.0nb2
   17    => Applying pkgsrc patches for uemacs-4.0nb2
   18    ===> Creating toolchain wrappers for uemacs-4.0nb2
   19    ===> Configuring for uemacs-4.0nb2
   20    => Substituting "paths" in src/bind.c h/epath.h
   21    ===> Building for uemacs-4.0nb2
   22    --- all ---
   23    (cd netbsd; make emacs)
   24    --- ./abbrev.o ---
   25    --- ./basic.o ---
   26    --- ./bind.o ---
   27    --- ./buffer.o ---
   28    --- ./basic.o ---
   29    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./basic.o ../src/basic.c
   30    --- ./abbrev.o ---
   31    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./abbrev.o ../src/abbrev.c
   32    --- ./bind.o ---
   33    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./bind.o ../src/bind.c
   34    --- ./buffer.o ---
   35    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./buffer.o ../src/buffer.c
   36    --- ./char.o ---
   37    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./char.o ../src/char.c
   38    --- ./crypt.o ---
   39    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./crypt.o ../src/crypt.c
   40    --- ./display.o ---
   41    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./display.o ../src/display.c
   42    --- ./dolock.o ---
   43    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./dolock.o ../src/dolock.c
   44    --- ./eval.o ---
   45    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./eval.o ../src/eval.c
   46    --- ./exec.o ---
   47    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./exec.o ../src/exec.c
   48    --- ./file.o ---
   49    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./file.o ../src/file.c
   50    --- ./fileio.o ---
   51    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./fileio.o ../src/fileio.c
   52    --- ./input.o ---
   53    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./input.o ../src/input.c
   54    --- ./isearch.o ---
   55    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./isearch.o ../src/isearch.c
   56    --- ./keyboard.o ---
   57    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./keyboard.o ../src/keyboard.c
   58    --- ./line.o ---
   59    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./line.o ../src/line.c
   60    --- ./lock.o ---
   61    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./lock.o ../src/lock.c
   62    --- ./main.o ---
   63    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./main.o ../src/main.c
   64    --- ./mouse.o ---
   65    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./mouse.o ../src/mouse.c
   66    --- ./screen.o ---
   67    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./screen.o ../src/screen.c
   68    --- ./random.o ---
   69    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./random.o ../src/random.c
   70    --- ./region.o ---
   71    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./region.o ../src/region.c
   72    --- ./search.o ---
   73    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./search.o ../src/search.c
   74    --- ./replace.o ---
   75    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./replace.o ../src/replace.c
   76    --- ./tags.o ---
   77    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./tags.o ../src/tags.c
   78    --- ./undo.o ---
   79    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./undo.o ../src/undo.c
   80    --- ./unix.o ---
   81    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./unix.o ../src/unix.c
   82    --- ./window.o ---
   83    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./window.o ../src/window.c
   84    --- ./word.o ---
   85    gcc -O2 -fstack-check -I/usr/include -I/usr/pkg/include
    -I. -I../h -c -o ./word.o ../src/word.c
   86    --- ./unix.o ---
   87    ../src/unix.c: In function 'bktoshell':
   88    ../src/unix.c:1226:5: warning: type of 'f' defaults to 'int'
    [-Wimplicit-int]
   89     1226 | int bktoshell(f, n)
   90          |     ^~~~~~~~~
   91    ../src/unix.c:1226:5: warning: type of 'n' defaults to 'int'
    [-Wimplicit-int]
   92    --- emacs ---
   93    gcc "-L/usr/pkg/lib -R/usr/pkg/lib"
    -L/usr/pkg/gcc12/lib/gcc/x86_64--netbsd/12.3.0
    -Wl,-R/usr/pkg/gcc12/lib/gcc/x86_64--netbsd/12.3.0 -Wl,-zrelro
    -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -O2
    -fstack-check -I/usr/include -I/usr/pkg/include -I. -I../h
    ./abbrev.o ./basic.o ./bind.o ./buffer.o ./char.o ./crypt.o
    ./display.o ./dolock.o ./eval.o ./exec.o ./file.o ./fileio.o
    ./input.o ./isearch.o ./keyboard.o ./line.o ./lock.o ./main.o
    ./mouse.o ./screen.o ./random.o ./region.o ./search.o ./replace.o
    ./tags.o ./undo.o ./unix.o ./window.o ./word.o -ltermcap -lc -o
    emacs

See B

    1  # /etc/mk.conf
    2 
    3    ACCEPTABLE_LICENSES+= intel-microcode-license
    4    
    5    HAVE_GCC=12
    6    PKG_CC= /usr/pkg/gcc12
    7    PKG_RCD_SCRIPTS=yes
    8    
    9    CPPFLAGS+=-I/usr/pkg/include
   10    LDFLAGS+="-L/usr/pkg/lib -R/usr/pkg/lib"
   11    
   12    #PKG_DEVELOPER=yes
   13    LOCALBASE=/usr/pkg
   14    PKG_DBDIR=/usr/pkg/pkgdb
   15    WRKOBJDIR=/var/tmp/pkg
   16    
   17    .if exists(${LOCALBASE}/bin/doas)
   18    SU_CMD=${LOCALBASE}/bin/doas /bin/sh -c
   19    .endif
   20    
   21    UPDATE_TARGET=bin-install
   22    DEPEND_TARGET=bin-install
   23
    #BINPKG_SITES=BINPKG_SITES="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname
    -p)/$(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)"
   24    
   25    #MASTER_SITE_OVERRIDE=
    http://cdn.NetBSD.org/pub/pkgsrc/distfiles/
   26    #MASTER_SITE_BACKUP=
    http://ftp.NetBSD.org/pub/pkgsrc/distfiles/
   27    
   28    FETCH_FAILOVER=yes
   29    PKG_RESUME_TRANSFERS=YES
   30    
   31    FETCH_CMD=${LOCALBASE}/bin/wget2
   32    FETCH_BEFORE_ARGS=–passive-ftp
   33    FETCH_RESUME_ARGS=-c
   34    FETCH_OUTPUT_ARGS=-O
   35    
   36    NO_CHECKSUM=no
   37    ALLOW_VULNERABLE_PACKAGES=NO
   38    
   39    PKGSRC_USE_SSP?=strong
   40    PKGSRC_USE_FORTIFY?=strong
   41    
   42    PKGSRC_MKPIE?=yes
   43    PKGSRC_USE_RELRO?=partial
   44    PKGSRC_USE_STACK_CHECK?= yes
   45    
   46    MAKE_JOBS=4
   47    .if defined(BSD_PKG_MK)
   48    #.include "/etc/mk.extra.conf"
   49    GZIP?=--fast
   50    CPUFLAGS+=-O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse2
    -march=native
   51    #CFLAGS+=       -Wfatal-errors
   52    INSTALL_UNSTRIPPED= no
   53    PKGSRC_COMPILER=ccache gcc
   54    CCACHE_DIR=/var/tmp/ccache
   55    .endif
   56    
   57    
   58    LOCALPATCHES=/usr/pkgsrc/patches


-- 
vl


Home | Main Index | Thread Index | Old Index