From andrea.girotto at gmail.com Sat Aug 4 11:57:27 2018 From: andrea.girotto at gmail.com (Andrea Girotto) Date: Sat, 4 Aug 2018 11:57:27 +0200 Subject: [RPL/2] Issue to compile Message-ID: Hello, I have an issue trying to compile RPL2: $ make ? BUILD? rpl.inc make? all-am make[1]: Entering directory '/home/andr3a/Projects/personal/aur4/rpl2/rpl-4.1.28/src' ? CXXLD??? rpl /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/../../../../lib/Scrt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:1258: rpl] Error 1 make[1]: Leaving directory '/home/andr3a/Projects/personal/aur4/rpl2/rpl-4.1.28/src' make: *** [Makefile:1144: all] Error 2 The "main" function is contained in "init.c", but it seems that it is not linked. Any suggestion? I'm using: $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp Thread model: posix gcc version 8.1.1 20180531 (GCC) Thank you, best regards, A. -- Please note that unencrypted emails can be easily intercepted and read by third parties. For transmitting confidential information please consider encrypting your emails. My GnuPG/PGP key fingerprint is CAA9 E043 E398 DDAB 8E02 E380 99DA 87DC 49D6 8B25. https://keys.mailvelope.com/pks/lookup?op=get&search=0x99DA87DC49D68B25 From joel.bertrand at systella.fr Sat Aug 4 14:00:37 2018 From: joel.bertrand at systella.fr (=?UTF-8?Q?BERTRAND_Jo=c3=abl?=) Date: Sat, 4 Aug 2018 14:00:37 +0200 Subject: [RPL/2] Issue to compile In-Reply-To: References: Message-ID: <6f0f3604-c3fc-3bf9-d87b-94092f4ebd42@systella.fr> Andrea Girotto a ?crit?: > Hello, Hello, > I have an issue trying to compile RPL2: > > $ make > ? BUILD? rpl.inc > make? all-am > make[1]: Entering directory > '/home/andr3a/Projects/personal/aur4/rpl2/rpl-4.1.28/src' > ? CXXLD??? rpl > /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/../../../../lib/Scrt1.o: In > function `_start': > (.text+0x20): undefined reference to `main' > collect2: error: ld returned 1 exit status > make[1]: *** [Makefile:1258: rpl] Error 1 > make[1]: Leaving directory > '/home/andr3a/Projects/personal/aur4/rpl2/rpl-4.1.28/src' > make: *** [Makefile:1144: all] Error 2 > > > The "main" function is contained in "init.c", but it seems that it is > not linked. > Any suggestion? Init.c is not used to build RPL/2, but its transliteration (init-conv.c). > I'm using: > > $ gcc -v > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/lto-wrapper > Target: x86_64-pc-linux-gnu > Configured with: /build/gcc/src/gcc/configure --prefix=/usr > --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man > --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ > --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared > --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl > --enable-__cxa_atexit --disable-libunwind-exceptions > --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp > --enable-gnu-unique-object --enable-linker-build-id --enable-lto > --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu > --enable-gnu-indirect-function --enable-multilib --disable-werror > --enable-checking=release --enable-default-pie --enable-default-ssp > Thread model: posix > gcc version 8.1.1 20180531 (GCC) > Can you check that $(build_dir)/src/*-conv.* are not empty ? These files are generated by $(build_dir)/rpliconv/rpliconv and $(build_dir)/rplawk/rplawk. You can check also that both executables exist. Can you post here, for the user that tries to build RPL/2, the result of: locale charmap | awk '/\=/ { print $$3;} !/\=/ { print $$1;}' ? You should obtain your locale (for example UTF-8). If result is empty, you can force encoding with --enable-final-encoding=UTF-8 Best regards, JKB From andrea.girotto at gmail.com Sun Aug 5 10:15:10 2018 From: andrea.girotto at gmail.com (Andrea Girotto) Date: Sun, 5 Aug 2018 10:15:10 +0200 Subject: [RPL/2] Issue to compile In-Reply-To: <6f0f3604-c3fc-3bf9-d87b-94092f4ebd42@systella.fr> References: <6f0f3604-c3fc-3bf9-d87b-94092f4ebd42@systella.fr> Message-ID: Hello, thank you for your answer, as you predicted: On 04/08/18 14:00, BERTRAND Jo?l wrote: > Can you check that $(build_dir)/src/*-conv.* are not empty ? These every file *-conv.c and *-conf.h is of length 0. Specifically: $ ls -la? *init*@(c|h|o) -rw-r--r-- 1 andr3a andr3a? 962 Aug? 3? 2017 init.c -rw-r--r-- 1 andr3a andr3a??? 0 Aug? 4 12:28 init-conv.c -rw-r--r-- 1 andr3a andr3a 1320 Aug? 4 12:29 rpl-init-conv.o > files are generated by $(build_dir)/rpliconv/rpliconv and > $(build_dir)/rplawk/rplawk. You can check also that both executables exist. Yes, I have them: $ ls -la rpliconv/rpliconv -rwxr-xr-x 1 andr3a andr3a 1552560 Aug? 4 12:25 rpliconv/rpliconv $ file rpliconv/rpliconv rpliconv/rpliconv: ELF 64-bit LSB pie executable x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=c3a7bb0c351bdbd6c4bf457954ac6eb882638c5a, with debug_info, not stripped $ ls -la rplawk/rplawk -rwxr-xr-x 1 andr3a andr3a 413304 Aug? 4 12:25 rplawk/rplawk $ file rplawk/rplawk rplawk/rplawk: ELF 64-bit LSB pie executable x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=1e8264640f0f05dfc97b3552d1b5c48eb27024a7, with debug_info, not stripped > Can you post here, for the user that tries to build RPL/2, the result of: > > locale charmap | awk '/\=/ { print $$3;} !/\=/ { print $$1;}' ? > > You should obtain your locale (for example UTF-8). If result is empty, > you can force encoding with --enable-final-encoding=UTF-8 $ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC=en_IE.UTF-8 LC_TIME=en_IE.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=en_IE.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=en_IE.UTF-8 LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT=en_IE.UTF-8 LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= $ locale charmap | awk '/\=/ { print $$3;} !/\=/ { print $$1;}' UTF-8 Any suggestion on how I can generate the files *-conv.c and *-conv.h? Thank you. A. -- Please note that unencrypted emails can be easily intercepted and read by third parties. For transmitting confidential information please consider encrypting your emails. My GnuPG/PGP key fingerprint is CAA9 E043 E398 DDAB 8E02 E380 99DA 87DC 49D6 8B25. https://keys.mailvelope.com/pks/lookup?op=get&search=0x99DA87DC49D68B25 From joel.bertrand at systella.fr Sun Aug 5 10:34:53 2018 From: joel.bertrand at systella.fr (=?UTF-8?Q?BERTRAND_Jo=c3=abl?=) Date: Sun, 5 Aug 2018 10:34:53 +0200 Subject: [RPL/2] Issue to compile In-Reply-To: References: <6f0f3604-c3fc-3bf9-d87b-94092f4ebd42@systella.fr> Message-ID: <9ad02270-954b-e7d7-d30c-4eb17d00d065@systella.fr> Andrea Girotto a ?crit?: > Hello, > thank you for your answer, as you predicted: > > On 04/08/18 14:00, BERTRAND Jo?l wrote: >> Can you check that $(build_dir)/src/*-conv.* are not empty ? These > every file *-conv.c and *-conf.h is of length 0. Strange. > Specifically: > > $ ls -la? *init*@(c|h|o) > -rw-r--r-- 1 andr3a andr3a? 962 Aug? 3? 2017 init.c > -rw-r--r-- 1 andr3a andr3a??? 0 Aug? 4 12:28 init-conv.c > -rw-r--r-- 1 andr3a andr3a 1320 Aug? 4 12:29 rpl-init-conv.o > >> files are generated by $(build_dir)/rpliconv/rpliconv and >> $(build_dir)/rplawk/rplawk. You can check also that both executables exist. > Yes, I have them: > > $ ls -la rpliconv/rpliconv > -rwxr-xr-x 1 andr3a andr3a 1552560 Aug? 4 12:25 rpliconv/rpliconv > > $ file rpliconv/rpliconv > rpliconv/rpliconv: ELF 64-bit LSB pie executable x86-64, version 1 > (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for > GNU/Linux 3.2.0, BuildID[sha1]=c3a7bb0c351bdbd6c4bf457954ac6eb882638c5a, > with debug_info, not stripped > > $ ls -la rplawk/rplawk > -rwxr-xr-x 1 andr3a andr3a 413304 Aug? 4 12:25 rplawk/rplawk > > $ file rplawk/rplawk > rplawk/rplawk: ELF 64-bit LSB pie executable x86-64, version 1 (SYSV), > dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for > GNU/Linux 3.2.0, BuildID[sha1]=1e8264640f0f05dfc97b3552d1b5c48eb27024a7, > with debug_info, not stripped > >> Can you post here, for the user that tries to build RPL/2, the result of: >> >> locale charmap | awk '/\=/ { print $$3;} !/\=/ { print $$1;}' ? >> >> You should obtain your locale (for example UTF-8). If result is empty, >> you can force encoding with --enable-final-encoding=UTF-8 > $ locale > LANG=en_US.UTF-8 > LC_CTYPE="en_US.UTF-8" > LC_NUMERIC=en_IE.UTF-8 > LC_TIME=en_IE.UTF-8 > LC_COLLATE="en_US.UTF-8" > LC_MONETARY=en_IE.UTF-8 > LC_MESSAGES="en_US.UTF-8" > LC_PAPER=en_IE.UTF-8 > LC_NAME="en_US.UTF-8" > LC_ADDRESS="en_US.UTF-8" > LC_TELEPHONE="en_US.UTF-8" > LC_MEASUREMENT=en_IE.UTF-8 > LC_IDENTIFICATION="en_US.UTF-8" > LC_ALL= > > $ locale charmap | awk '/\=/ { print $$3;} !/\=/ { print $$1;}' > UTF-8 OK. There are some issues with very special encoding parameters. > Any suggestion on how I can generate the files *-conv.c and *-conv.h? To build algebre_lineaire1-conv.c, Makefile calls (from $(builddir)/src) : ../rpliconv/rpliconv -f `../tools/file-5.33/src/rplfile -m ../tools/file-5.33/magic/magic -i ../../rpl/src/algebre_lineaire1.c | gawk -F= '{print $2;}'` -t UTF-8//TRANSLIT ../../rpl/src/algebre_lineaire1.c | expand -t 4 > algebre_lineaire1-conv.c Can you check that : ../tools/file-5.33/src/rplfile -m ../tools/file-5.33/magic/magic -i ../../rpl/src/algebre_lineaire1.c | gawk -F= '{print $2;}' returns : iso-8859-1 Please test also : ../rpliconv/rpliconv -f iso-8859-1 -t UTF-8//TRANSLIT ../../rpl/src/algebre_lineaire1.c And check you have installed expand. Best regards, JKB From andrea.girotto at gmail.com Sun Aug 5 11:48:09 2018 From: andrea.girotto at gmail.com (Andrea Girotto) Date: Sun, 5 Aug 2018 11:48:09 +0200 Subject: [RPL/2] Issue to compile In-Reply-To: <9ad02270-954b-e7d7-d30c-4eb17d00d065@systella.fr> References: <6f0f3604-c3fc-3bf9-d87b-94092f4ebd42@systella.fr> <9ad02270-954b-e7d7-d30c-4eb17d00d065@systella.fr> Message-ID: Hello, On 05/08/18 10:34, BERTRAND Jo?l wrote: > Can you check that : > > ../tools/file-5.33/src/rplfile -m ../tools/file-5.33/magic/magic -i > ../../rpl/src/algebre_lineaire1.c | gawk -F= '{print $2;}' > > returns : iso-8859-1 Here I have an issue (from rpl-4.1.28/src directory): $ ../tools/file-5.33/src/rplfile -m ../tools/file-5.33/magic/magic -i algebre_lineaire1.c Bad system call the file ../tools/file-5.33/magic/magic is missing (there is "magic.mgc" but no "magic"). I re-run the rplfile tool using strace (it seems a complicate issue): $ strace ../tools/file-5.33/src/rplfile -m ../tools/file-5.33/magic/magic -i algebre_lineaire1.c execve("../tools/file-5.33/src/rplfile", ["../tools/file-5.33/src/rplfile", "-m", "../tools/file-5.33/magic/magic", "-i", "algebre_lineaire1.c"], 0x7ffd12007cf0 /* 54 vars */) = 0 brk(NULL)?????????????????????????????? = 0x559ec8742000 access("/etc/ld.so.preload", R_OK)????? = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=373733, ...}) = 0 mmap(NULL, 373733, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc16ad5b000 close(3)??????????????????????????????? = 0 openat(AT_FDCWD, "/usr/lib/libseccomp.so.2", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\371\1\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=267984, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc16ad59000 mmap(NULL, 2363424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc16a951000 mprotect(0x7fc16a97d000, 2097152, PROT_NONE) = 0 mmap(0x7fc16ab7d000, 90112, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2c000) = 0x7fc16ab7d000 close(3)??????????????????????????????? = 0 openat(AT_FDCWD, "/usr/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320!\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=91912, ...}) = 0 mmap(NULL, 2187280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc16a73a000 mprotect(0x7fc16a750000, 2093056, PROT_NONE) = 0 mmap(0x7fc16a94f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7fc16a94f000 close(3)??????????????????????????????? = 0 openat(AT_FDCWD, "/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 ]\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=146664, ...}) = 0 mmap(NULL, 2216504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc16a51c000 mprotect(0x7fc16a535000, 2093056, PROT_NONE) = 0 mmap(0x7fc16a734000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7fc16a734000 mmap(0x7fc16a736000, 12856, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc16a736000 close(3)??????????????????????????????? = 0 openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2001\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=2105608, ...}) = 0 mmap(NULL, 3914128, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc16a160000 mprotect(0x7fc16a313000, 2093056, PROT_NONE) = 0 mmap(0x7fc16a512000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b2000) = 0x7fc16a512000 mmap(0x7fc16a518000, 14736, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc16a518000 close(3)??????????????????????????????? = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc16ad57000 arch_prctl(ARCH_SET_FS, 0x7fc16ad57b80) = 0 mprotect(0x7fc16a512000, 16384, PROT_READ) = 0 mprotect(0x7fc16a734000, 4096, PROT_READ) = 0 mprotect(0x7fc16a94f000, 4096, PROT_READ) = 0 mprotect(0x7fc16ab7d000, 86016, PROT_READ) = 0 mprotect(0x559ec70f4000, 8192, PROT_READ) = 0 mprotect(0x7fc16adb7000, 4096, PROT_READ) = 0 munmap(0x7fc16ad5b000, 373733)????????? = 0 set_tid_address(0x7fc16ad57e50)???????? = 8058 set_robust_list(0x7fc16ad57e60, 24)???? = 0 rt_sigaction(SIGRTMIN, {sa_handler=0x7fc16a521790, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7fc16a52da80}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7fc16a521830, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fc16a52da80}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 brk(NULL)?????????????????????????????? = 0x559ec8742000 brk(0x559ec8763000)???????????????????? = 0x559ec8763000 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=3613552, ...}) = 0 mmap(NULL, 3613552, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc169ded000 close(3)??????????????????????????????? = 0 prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)? = 0 prctl(PR_SET_DUMPABLE, SUID_DUMP_DISABLE) = 0 prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)? = 0 seccomp(SECCOMP_SET_MODE_STRICT, 1, NULL) = -1 EINVAL (Invalid argument) seccomp(SECCOMP_SET_MODE_FILTER, 0, 0x559ec8744100) = 0 access(0x559ec8744350, R_OK)??????????? = -1 ENOENT (No such file or directory) openat(AT_FDCWD, 0x559ec8744350, O_RDONLY) = 3 fstat(3, 0x7ffcce7a52a0)??????????????? = 0 mmap(NULL, 5187176, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0x7fc1698fa000 close(3)??????????????????????????????? = 0 mprotect(0x7fc1698fa000, 5187176, PROT_READ) = 0 openat(AT_FDCWD, 0x7fc16a2e1d38, O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, 0x7ffcce7a5080, O_RDONLY|O_CLOEXEC) = 3 fstat(3, 0x7ffcce7a4f10)??????????????? = 0 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 4096 brk(0x559ec8784000)???????????????????? = 0x559ec8784000 read(3, 0x559ec87466b0, 4096)?????????? = 4096 read(3, 0x559ec87466b0, 4096)?????????? = 3034 read(3, "", 4096)?????????????????????? = 0 close(3)??????????????????????????????? = 0 futex(0x7fc16a517868, FUTEX_WAKE_PRIVATE, 2147483647) = ? +++ killed by SIGSYS +++ Bad system call (core dumped) > Please test also : > > ../rpliconv/rpliconv -f iso-8859-1 -t UTF-8//TRANSLIT > ../../rpl/src/algebre_lineaire1.c > > And check you have installed expand. Yes, it is part of the coreutils package: $ which expand /usr/bin/expand $ pacman -Qo expand /usr/bin/expand is owned by coreutils 8.29-1 Thank you for your help. A. -- Please note that unencrypted emails can be easily intercepted and read by third parties. For transmitting confidential information please consider encrypting your emails. My GnuPG/PGP key fingerprint is CAA9 E043 E398 DDAB 8E02 E380 99DA 87DC 49D6 8B25. https://keys.mailvelope.com/pks/lookup?op=get&search=0x99DA87DC49D68B25 From joel.bertrand at systella.fr Sun Aug 5 12:17:36 2018 From: joel.bertrand at systella.fr (=?UTF-8?Q?BERTRAND_Jo=c3=abl?=) Date: Sun, 5 Aug 2018 12:17:36 +0200 Subject: [RPL/2] Issue to compile In-Reply-To: References: <6f0f3604-c3fc-3bf9-d87b-94092f4ebd42@systella.fr> <9ad02270-954b-e7d7-d30c-4eb17d00d065@systella.fr> Message-ID: <5058af8a-212c-9be1-65f8-a3b69f24905f@systella.fr> Andrea Girotto a ?crit?: > Hello, > > On 05/08/18 10:34, BERTRAND Jo?l wrote: >> Can you check that : >> >> ../tools/file-5.33/src/rplfile -m ../tools/file-5.33/magic/magic -i >> ../../rpl/src/algebre_lineaire1.c | gawk -F= '{print $2;}' >> >> returns : iso-8859-1 > Here I have an issue (from rpl-4.1.28/src directory): > > $ ../tools/file-5.33/src/rplfile -m ../tools/file-5.33/magic/magic -i > algebre_lineaire1.c > Bad system call > > the file ../tools/file-5.33/magic/magic is missing (there is "magic.mgc" > but no "magic"). You can added .mgc, but extension is automatically added by rplfile. In a first time, you can replace rplfile by file (rplfile is a packaged file to provide this utility on non POSIX systems). > I re-run the rplfile tool using strace (it seems a complicate issue): > > $ strace ../tools/file-5.33/src/rplfile -m > ../tools/file-5.33/magic/magic -i algebre_lineaire1.c > execve("../tools/file-5.33/src/rplfile", > ["../tools/file-5.33/src/rplfile", "-m", > "../tools/file-5.33/magic/magic", "-i", "algebre_lineaire1.c"], > 0x7ffd12007cf0 /* 54 vars */) = 0 > brk(NULL)?????????????????????????????? = 0x559ec8742000 > access("/etc/ld.so.preload", R_OK)????? = -1 ENOENT (No such file or > directory) > openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > fstat(3, {st_mode=S_IFREG|0644, st_size=373733, ...}) = 0 > mmap(NULL, 373733, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc16ad5b000 > close(3)??????????????????????????????? = 0 > openat(AT_FDCWD, "/usr/lib/libseccomp.so.2", O_RDONLY|O_CLOEXEC) = 3 > read(3, > "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\371\1\0\0\0\0\0"..., > 832) = 832 > fstat(3, {st_mode=S_IFREG|0755, st_size=267984, ...}) = 0 > mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) > = 0x7fc16ad59000 > mmap(NULL, 2363424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, > 0) = 0x7fc16a951000 > mprotect(0x7fc16a97d000, 2097152, PROT_NONE) = 0 > mmap(0x7fc16ab7d000, 90112, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2c000) = 0x7fc16ab7d000 > close(3)??????????????????????????????? = 0 > openat(AT_FDCWD, "/usr/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 > read(3, > "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320!\0\0\0\0\0\0"..., > 832) = 832 > fstat(3, {st_mode=S_IFREG|0755, st_size=91912, ...}) = 0 > mmap(NULL, 2187280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, > 0) = 0x7fc16a73a000 > mprotect(0x7fc16a750000, 2093056, PROT_NONE) = 0 > mmap(0x7fc16a94f000, 8192, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7fc16a94f000 > close(3)??????????????????????????????? = 0 > openat(AT_FDCWD, "/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 > read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 > ]\0\0\0\0\0\0"..., 832) = 832 > fstat(3, {st_mode=S_IFREG|0755, st_size=146664, ...}) = 0 > mmap(NULL, 2216504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, > 0) = 0x7fc16a51c000 > mprotect(0x7fc16a535000, 2093056, PROT_NONE) = 0 > mmap(0x7fc16a734000, 8192, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7fc16a734000 > mmap(0x7fc16a736000, 12856, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc16a736000 > close(3)??????????????????????????????? = 0 > openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 > read(3, > "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2001\2\0\0\0\0\0"..., > 832) = 832 > fstat(3, {st_mode=S_IFREG|0755, st_size=2105608, ...}) = 0 > mmap(NULL, 3914128, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, > 0) = 0x7fc16a160000 > mprotect(0x7fc16a313000, 2093056, PROT_NONE) = 0 > mmap(0x7fc16a512000, 24576, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b2000) = 0x7fc16a512000 > mmap(0x7fc16a518000, 14736, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc16a518000 > close(3)??????????????????????????????? = 0 > mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) > = 0x7fc16ad57000 > arch_prctl(ARCH_SET_FS, 0x7fc16ad57b80) = 0 > mprotect(0x7fc16a512000, 16384, PROT_READ) = 0 > mprotect(0x7fc16a734000, 4096, PROT_READ) = 0 > mprotect(0x7fc16a94f000, 4096, PROT_READ) = 0 > mprotect(0x7fc16ab7d000, 86016, PROT_READ) = 0 > mprotect(0x559ec70f4000, 8192, PROT_READ) = 0 > mprotect(0x7fc16adb7000, 4096, PROT_READ) = 0 > munmap(0x7fc16ad5b000, 373733)????????? = 0 > set_tid_address(0x7fc16ad57e50)???????? = 8058 > set_robust_list(0x7fc16ad57e60, 24)???? = 0 > rt_sigaction(SIGRTMIN, {sa_handler=0x7fc16a521790, sa_mask=[], > sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7fc16a52da80}, NULL, 8) = 0 > rt_sigaction(SIGRT_1, {sa_handler=0x7fc16a521830, sa_mask=[], > sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fc16a52da80}, > NULL, 8) = 0 > rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 > prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, > rlim_max=RLIM64_INFINITY}) = 0 > brk(NULL)?????????????????????????????? = 0x559ec8742000 > brk(0x559ec8763000)???????????????????? = 0x559ec8763000 > openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 > fstat(3, {st_mode=S_IFREG|0644, st_size=3613552, ...}) = 0 > mmap(NULL, 3613552, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc169ded000 > close(3)??????????????????????????????? = 0 > prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)? = 0 > prctl(PR_SET_DUMPABLE, SUID_DUMP_DISABLE) = 0 > prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)? = 0 > seccomp(SECCOMP_SET_MODE_STRICT, 1, NULL) = -1 EINVAL (Invalid argument) > seccomp(SECCOMP_SET_MODE_FILTER, 0, 0x559ec8744100) = 0 > access(0x559ec8744350, R_OK)??????????? = -1 ENOENT (No such file or > directory) > openat(AT_FDCWD, 0x559ec8744350, O_RDONLY) = 3 > fstat(3, 0x7ffcce7a52a0)??????????????? = 0 > mmap(NULL, 5187176, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = > 0x7fc1698fa000 > close(3)??????????????????????????????? = 0 > mprotect(0x7fc1698fa000, 5187176, PROT_READ) = 0 > openat(AT_FDCWD, 0x7fc16a2e1d38, O_RDONLY) = -1 ENOENT (No such file or > directory) > openat(AT_FDCWD, 0x7ffcce7a5080, O_RDONLY|O_CLOEXEC) = 3 > fstat(3, 0x7ffcce7a4f10)??????????????? = 0 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > brk(0x559ec8784000)???????????????????? = 0x559ec8784000 > read(3, 0x559ec87466b0, 4096)?????????? = 4096 > read(3, 0x559ec87466b0, 4096)?????????? = 3034 > read(3, "", 4096)?????????????????????? = 0 > close(3)??????????????????????????????? = 0 > futex(0x7fc16a517868, FUTEX_WAKE_PRIVATE, 2147483647) = ? > +++ killed by SIGSYS +++ > Bad system call (core dumped) Maybe you should analyze coredump to find faulty system. I think there is a bug womewhere in file. If you can open an ssh access to your workstation, I could investigate. I'm unable to reproduce this bug. JKB