On 10/18/2017 05:31 PM, Michael Stapelberg wrote: > [+cc steffen, karel] > > Any clues about this build failure? > > On Wed, Oct 18, 2017 at 8:22 AM, Aaron M. Ucko <u...@debian.org> wrote: >> Source: libtomcrypt >> Version: 1.18-1 >> Severity: important >> Justification: fails to build from source (but built successfully in the >> past) >> User: debian-...@lists.debian.or >> >> The latest build of libtomcrypt for x32 (admittedly not a release >> architecture) failed per the below excerpts from >> https://buildd.debian.org/status/fetch.php?pkg=libtomcrypt&arch=x32&ver=1.18.0-1&stamp=1508165690&raw=0: >> >> libtool: compile: gcc -I./src/headers/ -Wall -Wsign-compare -Wshadow >> -DLTC_SOURCE -Wextra -Wsystem-headers -Wbad-function-cast -Wcast-align >> -Wstrict-prototypes -Wpointer-arith -Wdeclaration-after-statement >> -Wwrite-strings -Wno-type-limits -O3 -funroll-loops -fomit-frame-pointer >> -DGIT_VERSION=\"1.18.0\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. >> -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat >> -Werror=format-security -DGMP_DESC -DLTM_DESC -DUSE_LTM -Wdate-time >> -D_FORTIFY_SOURCE=2 -specs=/usr/share/dpkg/pie-link.specs -Wl,-z,relro >> -Wl,-z,now -c src/ciphers/aes/aes.c -fPIC -DPIC -o >> src/ciphers/aes/.libs/aes.o >> [...] >> libtool --mode=link --tag=CC gcc -I./src/headers/ -Wall -Wsign-compare >> -Wshadow -DLTC_SOURCE -Wextra -Wsystem-headers -Wbad-function-cast >> -Wcast-align -Wstrict-prototypes -Wpointer-arith >> -Wdeclaration-after-statement -Wwrite-strings -Wno-type-limits -O3 >> -funroll-loops -fomit-frame-pointer -DGIT_VERSION=\"1.18.0\" -g -O2 >> -fdebug-prefix-map=/<<PKGBUILDDIR>>=. >> -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat >> -Werror=format-security -DGMP_DESC -DLTM_DESC -DUSE_LTM -Wdate-time >> -D_FORTIFY_SOURCE=2 -specs=/usr/share/dpkg/pie-link.specs -Wl,-z,relro >> -Wl,-z,now src/ciphers/aes/aes.lo src/ciphers/aes/aes_enc.lo >> src/ciphers/anubis.lo [...] src/stream/sober128/sober128_test.lo -lgmp >> -ltommath -o libtomcrypt.la -rpath /usr/local/lib -version-info 1:0 >> libtool: link: gcc -shared -fPIC -DPIC src/ciphers/aes/.libs/aes.o >> src/ciphers/aes/.libs/aes_enc.o src/ciphers/.libs/anubis.o [...] >> src/stream/sober128/.libs/sober128_test.o -lgmp -ltommath -O3 -g -O2 >> -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong >> -specs=/usr/share/dpkg/pie-link.specs -Wl,-z -Wl,relro -Wl,-z -Wl,now >> -Wl,-soname -Wl,libtomcrypt.so.1 -o .libs/libtomcrypt.so.1.0.0 >> /usr/bin/ld: src/ciphers/aes/.libs/aes.o: relocation R_X86_64_PC32 against >> symbol `rijndael_setup' can not be used when making a shared object; >> recompile with -fPIC >> /usr/bin/ld: final link failed: Bad value >> collect2: error: ld returned 1 exit status >> >> I'm not sure why the linker's complaining about missing an option you >> did in fact supply, but perhaps the use of pie-*.specs is somehow >> throwing things off; please try forgoing PIE on x32 for now. >> >> Thanks! >> >> -- >> Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org) >> http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu
Any updates on this? I built the library with x32 support on my local machine and that works as expected > $ file .libs/test > .libs/test: ELF 32-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /libx32/ld-linux-x32.so.2, for GNU/Linux 3.4.0, BuildID[sha1]=e747673ddc8a354679b2e0f97b12886a7c6273c2, not stripped > $ gcc -dumpversion > 5.4.0 Can I somehow create this exact environment locally so I can try to reproduce? -- Steffen Jaeckel - s_jaec...@gmx.de GnuPG fingerprint: C438 6A23 7ED4 3A47 5541 B942 7B2C D0DD 4BCF F59B My OTR key has changed on 30. Sept. 2015! jabber: jaec...@jabber.ccc.de F052DE29 4FA9A02D 44A794E5 AE5AC0FB C5865C64