Help > Cards: The Package Manager
depcreate abiword: lot of files not found followed by segmentation error
dufresnep:
I did sudo update ports -u, then added the collection dir files to /etc/cards.conf:
dir /usr/ports/base
dir /usr/ports/cli
dir /usr/ports/cli-extra
dir /usr/ports/desktops
dir /usr/ports/gui
dir /usr/ports/gui-extra
now, I have tried to:
cards depcreate abiword:
...
/var/lib/pkg/depot/base/pkg-config/Pkgfile Not found ..
/var/lib/pkg/depot/base/sudo/Pkgfile Not found ..
/var/lib/pkg/depot/base/bc/Pkgfile Not found ..
/var/lib/pkg/depot/base/automake/Pkgfile Not found ..
/var/lib/pkg/depot/base/efibootmgr/Pkgfile Not found ..
/var/lib/pkg/depot/base/perl/Pkgfile Not found ..
/var/lib/pkg/depot/base/pam/Pkgfile Not found ..
/var/lib/pkg/depot/base/gperf/Pkgfile Not found ..
/var/lib/pkg/depot/base/acl/Pkgfile Not found ..
/var/lib/pkg/depot/base/lsb-release/Pkgfile Not found ..
/var/lib/pkg/depot/base/git/Pkgfile Not found ..
/var/lib/pkg/depot/base/gcc/Pkgfile Not found ..
/var/lib/pkg/depot/base/efivar/Pkgfile Not found ..
/var/lib/pkg/depot/base/make/Pkgfile Not found ..
/var/lib/pkg/depot/base/xz/Pkgfile Not found ..
/var/lib/pkg/depot/base/ncurses/Pkgfile Not found ..
/var/lib/pkg/depot/base/mpfr/Pkgfile Not found ..
/var/lib/pkg/depot/base/libpng/Pkgfile Not found ..
/var/lib/pkg/depot/base/tar/Pkgfile Not found ..
/var/lib/pkg/depot/base/man-db/Pkgfile Not found ..
/var/lib/pkg/depot/base/sysklogd/Pkgfile Not found ..
/var/lib/pkg/depot/base/openssl/Pkgfile Not found ..
/var/lib/pkg/depot/base/ntfs-3g/Pkgfile Not found ..
/var/lib/pkg/depot/base/m4/Pkgfile Not found ..
/var/lib/pkg/depot/base/lz4/Pkgfile Not found ..
Erreur de segmentation
paul [ /usr/ports/desktops ]$
--- Code: ---paul [ /usr/ports/desktops ]$ ls /var/lib/pkg/depot/base
acl bzip2 dosfstools flex gperf jfsutils libedit lsb-release mpfr pciutils sed util-linux
attr ca-certificates e2fsprogs freetype gpm kbd libelf lvm2 nasm perl shadow wget
autoconf cards e3 gawk grep kernel libffi lz4 ncurses pkg-config squashfs wireless-tools
automake coreutils efibootmgr gcc groff kernel-lts libnl lzo ntfs-3g popt sudo wpa-supplicant
bash cpio efivar gdbm grub kmod libpipeline m4 nutyx procps-ng sysklogd xfsprogs
bc curl eudev gettext gzip less libpng make openssh psmisc sysvinit xz
binutils dhcpcd expat git iana-etc libaio libtirpc man-db openssl readline tar zlib
bison dialog file glibc inetutils libarchive libtool mdadm pam reiserfsprogs texinfo
btrfs-progs diffutils findutils gmp iproute2 libcap linux-firmware mpc patch rsync tzdata
paul [ /usr/ports/desktops ]$
--- End code ---
I guess my question is: What is going on?
--- Code: ---from dmesg:
[98752.771130] cards[15915]: segfault at 18 ip 0000000000430720 sp 00007ffffdca4270 error 4 in cards[406000+71000]
[98752.771139] Code: 75 e0 c7 42 18 ff ff ff ff 8b 13 48 89 ef 89 50 10 eb 10 0f 1f 80 00 00 00 00 48 83 c7 08 49 39 fa 74 44 48 8b 07 48 8b 70 08 <8b> 46 18 85 c0 7e e9 8b 46 10 85 c0 74 e2 48 8b 16 44 8d 40 ff 48
--- End code ---
--- Code: ---# gdb --args cards depcreate abiword
run
Program received signal SIGSEGV, Segmentation fault.
0x0000000000430720 in ?? ()
(gdb) bt
#0 0x0000000000430720 in ?? ()
#1 0x000000000046c54a in ?? ()
#2 0x000000000046cbce in ?? ()
#3 0x00000000004124cc in ?? ()
#4 0x00007ffff75bfb6b in __libc_start_main () from /lib/libc.so.6
#5 0x0000000000412bba in ?? ()
(gdb) quit
A debugging session is active.
--- End code ---
What can I install to have more symbols installed?
Thierry:
http://nutyx.org/en/faq#6
dufresnep:
The link you just post was basically the text I was reading.
I fear your answer was to short for me to understand how it answer my question.
I adapted it to 11.2 version (because of the changes to the collections).
But indeed I added the:
base /usr/ports/base
logdir /var/log/pkgbuild
but there is no change.
I have rebuild cards from source, and on $ gdb --args cards depcreate abiword
I get:
Program received signal SIGSEGV, Segmentation fault.
0x00000000004306f1 in generate_level(itemList*, pkgList*, unsigned int*) ()
(gdb) bt
#0 0x00000000004306f1 in generate_level(itemList*, pkgList*, unsigned int*) ()
#1 0x000000000046c54a in CardsDepends::depends() ()
#2 0x000000000046cbce in CardsDepends::getNeededDependencies[abi:cxx11]() ()
#3 0x00000000004124cc in main ()
(gdb)
Thierry:
Thanks for tracking down this bug, I will fix that some time:
Nevertheless, I did a clean test here (very easy for me because it's a live system).
1. Install cards.devel
--- Code: ---get cards.devel
--- End code ---
2. sudo ports -u base
--- Code: ---sudo ports -u base
sudo ports -u cli
sudo ports -u gui
sudo ports -u gui-extra
--- End code ---
3. Set the /etc/cards.conf:
--- Code: --- dir /usr/ports/gui-extra
dir /usr/ports/gui
dir /usr/ports/cli
dir /usr/ports/base
base /usr/ports/base
--- End code ---
4. Checking with the command cards config:
--- Code: ---cards config
1 Dossier: /usr/ports/gui-extra
2 Dossier: /usr/ports/gui
3 Dossier: /usr/ports/cli
4 Dossier: /usr/ports/base
Liste des dossiers pour le système de base: /usr/ports/base
Binaires : x86_64
--- End code ---
5. Run the magic command cards depcreate
--- Code: --- sudo cards depcreate abiword
--- End code ---
--- Code: ---create of libuv
cards create: /usr/ports/cli/libuv package(s)
=======> Comments are now ignored when building the package(s).
=======> PKGMK_INSTALL: no
=======> PKGMK_WORK_DIR: /usr/ports/cli/libuv/work
=======> PKGMK_SOURCE_DIR: /usr/ports/cli/libuv
=======> WARNING: CLEAN IGNORED
=======> PKGMK_IGNORE_REPO: yes
=======> PKGMK_IGNORE_FOOTPRINT: yes
=======> PKGMK_IGNORE_MD5SUM: yes
=======> .PKGREPO file will be deleted
=======> PKGMK_COMPRESS_PACKAGE: no
=======> name: libuv
=======> version: 1.30.1
=======> release: 1
=======> Downloading 'https://github.com/libuv/libuv/archive/v1.30.1/libuv-1.30.1.tar.gz'.
--2019-10-24 11:55:15-- https://github.com/libuv/libuv/archive/v1.30.1/libuv-1.30.1.tar.gz
Resolving github.com... 140.82.118.3
Connecting to github.com|140.82.118.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
...
....
--- End code ---
and it goes
dufresnep:
Thanks! I will probably retry from live USB key.
Meanwhile, I have found that generate_level is part of: compile_dependencies_util.cxx
generate_level begins by: #ifndef NDEBUG
So I edited Makefile.inc:
#CXXFLAGS += -DNDEBUG -std=c++11
CXXFLAGS += -std=c++11
...
#CFLAGS += -DNDEBUG -std=gnu11
CFLAGS += -std=gnu11
but then: make all
--- Code: ---compiling pkginst.cxx ...
pkginst.cxx: Dans la fonction membre « void Pkginst::generateDependencies() »:
pkginst.cxx:132:65: erreur: expected « ; » before « vrit »
132 | cerr << "m_dependenciesList.push_back " << vrit->first << " " vrit->second << endl;
| ^~~~~
| ;
make[1]: *** [../Makefile.inc:74: pkginst.o] Error 1
make: *** [Makefile:34: all] Error 2
--- End code ---
I fixed it by adding a << but then:
--- Code: ---compiling cards_install.cxx ...
cards_install.cxx: Dans la fonction membre « void Cards_install::getLocalePackagesList() »:
cards_install.cxx:178:64: erreur: expected « ; » before « i »
178 | or (auto i : m_dependenciesList ) std::cerr << i.first << " " i.second << std::endl;
| ^~
| ;
make: *** [../Makefile.inc:74: cards_install.o] Error 1
paul [ ~/cards-2.4.104/src ]$
--- End code ---
So I added an other << and then make all finished.
Now the output of cards add a line:
--- Code: ---/var/lib/pkg/depot/base/m4/Pkgfile Not found ..
/var/lib/pkg/depot/base/lz4/Pkgfile Not found ..
List des 1258 paquets
Erreur de segmentation
paul [ ~/cards/bin ]$
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version