[erlang-questions] remsh failing silently

Ben Hood 0x6e6562@REDACTED
Wed Jan 2 11:43:54 CET 2019


On Sun, Dec 30, 2018 at 2:34 PM Mikael Pettersson <mikpelinux@REDACTED> wrote:
> For the record, I just built OTP 17.5.6.10 natively on
> powerpc64-unknown-linux-gnu, and ^G works just fine there in the
> Erlang shell.
>
> I'd have to suspect your cross compilation setup.  Could be some
> ./configure test not doing the right thing in the cross compile case.

That sounds quite plausible.

This is the way that I configured the cross compile for ppc (I'm
trying to link openssl and ncurses statically, so that these versions
are independent of the package manager on the target machine).

There seems to be configure options to link openssl statically, but
fewer options for ncurses - does this look vaguely sane?

CONFIGURE_ARGS := --host=$(TARGET_ARCH) \
--disable-hipe \
--enable-smp-support \
--enable-threads \
--enable-kernel-poll \
--with-termcap \
--with-ssl=$(OPENSSL_DIST_PATH) \
--disable-dynamic-ssl-lib \
--build=$(BUILD_ARCH) \
--enable-native-libs \
--enable-static-nifs
LDFLAGS := "-L$(NCURSES_DIST_PATH)/lib -L$(OPENSSL_DIST_PATH)/lib
-L/opt/at12.0/$(TARGET_ARCH)/lib64"
LIBS := $(OPENSSL_STATIC_LIB)
CFLAGS := "-D_GNU_SOURCE -I$(NCURSES_DIST_PATH)/include
-I$(OPENSSL_DIST_PATH)/include -mcpu=$(TARGET_CPU)
-mtune=$(TARGET_CPU) -O3 -pthread"

$(OTP_SRC_DIR)/make/output.mk: $(SKIP_LIBS) $(NCURSES_STATIC_LIB)
$(OPENSSL_STATIC_LIB) $(OTP_SRC_DIR)/$(BOOTSTRAP_BEAM)
cd $(OTP_SRC_DIR) && erl_xcomp_sysroot=$(ERL_TOP) \
CC=$(CC) \
CXX=$(CXX) \
LD=$(LD) \
LDFLAGS=$(LDFLAGS) \
CFLAGS=$(CFLAGS) \
LIBS=$(LIBS) \
./configure $(CONFIGURE_ARGS) --prefix=$(OTP_INSTALL_DIR)



More information about the erlang-questions mailing list