Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]: sys-fs/cryfs-0.9.7 fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
andi456
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2005
Posts: 145
Location: Germany

PostPosted: Tue Sep 11, 2018 2:05 pm    Post subject: [Solved]: sys-fs/cryfs-0.9.7 fails to compile Reply with quote

Hi,

reinstalling sys-fs/cryfs after an update of dev-libs/crypto++ failed. The build.log contains a whole lot of error messages, from which i post only the first.
Code:
/var/tmp/portage/sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/kdf/../../random/OSRandomGenerator.h:23:49: error: ‘byte’ was not declared in this scope
         CryptoPP::OS_GenerateRandomBlock(true, (byte*)target, bytes);
                                                 ^~~~
/var/tmp/portage/sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/kdf/../../random/OSRandomGenerator.h:23:49: note: suggested alternative:
In file included from /usr/include/cryptopp/cryptlib.h:102:0,
                 from /usr/include/cryptopp/hex.h:9,
                 from /var/tmp/portage/sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/kdf/../../random/../data/FixedSizeData.h:5,
                 from /var/tmp/portage/sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/kdf/../../random/RandomGenerator.h:4,
                 from /var/tmp/portage/sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/kdf/../../random/PseudoRandomPool.h:6,
                 from /var/tmp/portage/sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/kdf/../../random/Random.h:5,
                 from /var/tmp/portage/sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/kdf/Scrypt.h:6,
                 from /var/tmp/portage/sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/kdf/Scrypt.cpp:1:
/usr/include/cryptopp/config.h:237:23: note:   ‘CryptoPP::byte’
 typedef unsigned char byte;
                       ^~~~
In file included from /var/tmp/portage/sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/kdf/../../random/Random.h:6:0,
                 from /var/tmp/portage/sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/kdf/Scrypt.h:6,
                 from /var/tmp/portage/sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/kdf/Scrypt.cpp:1:

emerge --info sys-fs/cryfs reads:
Code:
Portage 2.3.48 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.26-r7, 4.17.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.17.9-gentoo-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.6
KiB Mem:     8198656 total,    836948 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Fri, 07 Sep 2018 07:30:01 +0000
Head commit of repository gentoo: 71fb9cd760eebbf267dc8f9ebd6fbe3408a9b6c5
Timestamp of repository poly-c: Thu, 06 Sep 2018 13:20:16 +0000
sh bash 4.4_p23
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p23::<unknown repository>
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15-r100::sage-on-gentoo, 3.4.8-r1::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/ccache:          3.3.4-r1::<unknown repository>
dev-util/cmake:           3.12.1::gentoo
dev-util/pkgconfig:       0.29.2::<unknown repository>
sys-apps/baselayout:      2.6-r1::<unknown repository>
sys-apps/openrc:          0.38.2::gentoo
sys-apps/sandbox:         2.13::<unknown repository>
sys-devel/autoconf:       2.13::<unknown repository>, 2.69-r4::<unknown repository>
sys-devel/automake:       1.9.6-r5::<unknown repository>, 1.11.6-r3::<unknown repository>, 1.12.6-r2::<unknown repository>, 1.13.4-r2::<unknown repository>, 1.14.1-r2::<unknown repository>, 1.15.1-r2::<unknown repository>, 1.16.1-r1::<unknown repository>
sys-devel/binutils:       2.25.1-r1::<unknown repository>, 2.26.1::<unknown repository>, 2.27-r1::<unknown repository>, 2.28-r2::<unknown repository>, 2.28.1::<unknown repository>, 2.29.1-r1::<unknown repository>, 2.30-r3::<unknown repository>, 2.31.1::<unknown repository>
sys-devel/gcc:            4.9.3::<unknown repository>, 5.3.0::<unknown repository>, 6.3.0::<unknown repository>, 6.4.0-r3::gentoo, 7.2.0-r1::<unknown repository>, 7.3.0-r4::gentoo, 8.2.0-r2::gentoo
sys-devel/gcc-config:     1.8-r1::<unknown repository>
sys-devel/libtool:        2.4.6-r5::<unknown repository>
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.17::<unknown repository> (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

alatar-lay
    location: /var/lib/layman/alatar-lay
    masters: gentoo
    priority: 50

bar
    location: /var/lib/layman/bar
    masters: gentoo
    priority: 50

dlang
    location: /var/lib/layman/dlang
    masters: gentoo
    priority: 50

dotnet
    location: /var/lib/layman/dotnet
    masters: gentoo
    priority: 50

gentoo-zh
    location: /var/lib/layman/gentoo-zh
    masters: gentoo
    priority: 50

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 50

jm-overlay
    location: /var/lib/layman/jm-overlay
    masters: dotnet gentoo
    priority: 50

junkdrawer
    location: /var/lib/layman/junkdrawer
    masters: dlang gentoo
    priority: 50

mva
    location: /var/lib/layman/mva
    masters: gentoo
    priority: 50

nektoo
    location: /var/lib/layman/nektoo
    masters: gentoo
    priority: 50

poly-c
    location: /var/lib/layman/poly-c
    masters: gentoo
    priority: 50

sage-on-gentoo
    location: /var/lib/layman/sage-on-gentoo
    masters: gentoo science
    priority: 50

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

seden
    location: /var/lib/layman/seden
    masters: gentoo
    priority: 50

stuff
    location: /var/lib/layman/stuff
    masters: gentoo
    priority: 50

tox-overlay
    location: /var/lib/layman/tox-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac acl acpi activities alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdr cjk cli consolekit crypt cups cxx dbus declarative djvu dri dts dvb dvd dvdr emboss encode exif fam ffmpeg flac fortran fpm gdbm gif glamor gpm gtk gtk3 iconv icu ipv6 jack java jpeg jpeg2k kde kipi kwallet lcms libnotify libtirpc lua mad matroska mmx mng modules mp3 mp4 mpeg multilib musepack ncurses nls nptl nsplugin objc objc++ objc-gc ogg opencl opengl openmp openssl opus pam pango pcre pdf perl phonon plasma png policykit portage ppds pulseaudio qml qt5 readline samba sasl sdl seccomp semantic-desktop sftp speex spell sse sse2 ssl startup-notification svg tcpd theora tiff tk truetype twolame udev udisks unicode upower usb vdpau vim-syntax vorbis widgets wxwidgets x264 xattr xcb xcomposite xetex xml xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6 python3_7" RUBY_TARGETS="ruby23 ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-fs/cryfs-0.9.7::gentoo was built with the following:
USE="-libressl -test -update-check" ABI_X86="(64)"



I've already searched the forums, bugzilla and the rest of the internet for a solution.

I'd like to upload the complete build.log. Is there a preferred location for this on the gentoo forum?

Kind regards,

Andreas


Last edited by andi456 on Mon Sep 17, 2018 5:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22166
Location: here

PostPosted: Tue Sep 11, 2018 2:09 pm    Post subject: Re: sys-fs/cryfs-0.9.7 fails to compile Reply with quote

See https://github.com/weidai11/cryptopp/issues/459

andi456 wrote:
I'd like to upload the complete build.log. Is there a preferred location for this on the gentoo forum?

wgetpaste
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
andi456
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2005
Posts: 145
Location: Germany

PostPosted: Tue Sep 11, 2018 3:02 pm    Post subject: Reply with quote

Thanks,

my cryfs-build.log can now be seen here: https://paste.pound-python.org/show/enwUJW6kH37j714dhn3s/

I had a short look at your link, but have to dig a little deeper to understand what I should do to make cryfs compile against the new crypto++ library...

Kind regards,

Andreas
Back to top
View user's profile Send private message
weiypan_us
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2017
Posts: 86

PostPosted: Sat Sep 15, 2018 9:33 pm    Post subject: Reply with quote

Hi Andreas

Have you got the answer to this fail? I have got the same issue.

Wei
andi456 wrote:
Thanks,

my cryfs-build.log can now be seen here: https://paste.pound-python.org/show/enwUJW6kH37j714dhn3s/

I had a short look at your link, but have to dig a little deeper to understand what I should do to make cryfs compile against the new crypto++ library...

Kind regards,

Andreas
Back to top
View user's profile Send private message
mao
n00b
n00b


Joined: 22 Mar 2017
Posts: 32
Location: Poland

PostPosted: Sat Sep 15, 2018 10:32 pm    Post subject: Reply with quote

Hi,
Any luck? I'm having that issue as well.
Back to top
View user's profile Send private message
weiypan_us
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2017
Posts: 86

PostPosted: Sat Sep 15, 2018 10:47 pm    Post subject: Reply with quote

from post https://github.com/weidai11/cryptopp/issues/459, in order to fix file "sys-fs/cryfs-0.9.7/work/src/cpp-utils/crypto/symmetric/ciphers.cpp" of sys-fs/cryfs-0.9.7 need to be modified. it looks we can manually compile it after change but not looks like a good solution.

mao wrote:
Hi,
Any luck? I'm having that issue as well.
Back to top
View user's profile Send private message
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 995
Location: Stuart, Florida

PostPosted: Sun Sep 16, 2018 12:49 am    Post subject: Reply with quote

I have the same problem.
Back to top
View user's profile Send private message
Olis
Apprentice
Apprentice


Joined: 29 Sep 2004
Posts: 177
Location: Germany

PostPosted: Sun Sep 16, 2018 7:31 am    Post subject: Reply with quote

Featherfoot wrote:
I have the same problem.

Me too.
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 515
Location: Italia

PostPosted: Sun Sep 16, 2018 12:21 pm    Post subject: Reply with quote

Me too
Back to top
View user's profile Send private message
wgjak47
n00b
n00b


Joined: 04 May 2014
Posts: 13

PostPosted: Sun Sep 16, 2018 12:52 pm    Post subject: Reply with quote

upgrade to sys-fs/cryfs-0.9.9 solve this problem...
Quote:
I have the same problem, maybe a patch is needed...
Back to top
View user's profile Send private message
Pilsner
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2008
Posts: 89

PostPosted: Sun Sep 16, 2018 3:11 pm    Post subject: ERROR: sys-fs/cryfs-0.9.7::gentoo failed (compile phase): Reply with quote

Same problem here, re-emerge crypto++ but it did not help.
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Sun Sep 16, 2018 5:36 pm    Post subject: Reply with quote

@wgjak47,
Worked for me too.
Thanks,
Gerard
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 228

PostPosted: Sun Sep 16, 2018 6:17 pm    Post subject: Reply with quote

Yes, upgrading to unstable cryfs-0.9.9 resolved this for me as well.

It's odd that stable crypto++-7.0.0-r2 would require an unstable cryfs-0.9.9 but it did the trick.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7108
Location: Austria

PostPosted: Sun Sep 16, 2018 6:19 pm    Post subject: Reply with quote

No, cryfs requires crypto++. But the new version of crypto++ broke cryfs.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 228

PostPosted: Sun Sep 16, 2018 6:56 pm    Post subject: Reply with quote

Cryfs *depends on* crypto++, in the normal sense of package management, yes.

That's a different statement from saying this situation required me to move to unstable cryfs (as that was the simplest solution to proceed with @world update). There, I was not speaking in the narrow/specific scope of package management (in that case I would say "depends on") but rather the most pragmatic solution for my use case. I did not intend to cause any confusion.

The point was, generally if you stick with stable packages they can be expected to work well with other stable packages. So far as I can tell this is caused by a change made by the upstream developers. As mentioned by weiypan_us, this is discussed here: https://github.com/weidai11/cryptopp/issues/459

There is (much) more detailed information about the nature of the issue at this link, referenced in the above URL: https://www.cryptopp.com/wiki/Std::byte
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7108
Location: Austria

PostPosted: Sun Sep 16, 2018 6:59 pm    Post subject: Reply with quote

Well, in this case the stabilisation of crypto++ happened in Gentoo without anyone noticing the breakage of cryfs during testing. cryfs-0.9.9 is already being stabilised to fix this (with amd64 done at this point).
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic


Last edited by asturm on Sun Sep 16, 2018 7:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 515
Location: Italia

PostPosted: Sun Sep 16, 2018 7:03 pm    Post subject: Reply with quote

I emerged =sys-fs/cryfs-0.9.9 ant now it's ok.
Thanks
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 228

PostPosted: Sun Sep 16, 2018 7:13 pm    Post subject: Reply with quote

That's lightning fast!

asturm, thank you to you and all the other developers for all the great work you do. I've been using Gentoo since circa 2004 and this is why. I know many things you deal with are a lot more complex than this particular issue.
Back to top
View user's profile Send private message
andi456
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2005
Posts: 145
Location: Germany

PostPosted: Mon Sep 17, 2018 5:28 pm    Post subject: Reply with quote

Hi all,

I did also unmask cryfs-0.9.9 and it worked. First I scanned the link by fedeliallalinea and noticed after some time that the patches provided were for version 0.9.8. So I assumed that they would be incorporated in the latest (masked) version in the portage tree without having to patch the package myself.

So I set this to solved now.

Kind regards,

Andreas
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum