[RPL/2] Issue to compile

BERTRAND Joël joel.bertrand at systella.fr
Sat Aug 4 14:00:37 CEST 2018


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


More information about the RPL2 mailing list