Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jul 2019 00:11:09 +0100
From:      Kaya Saman <kayasaman@optiplex-networks.com>
To:        ports@FreeBSD.org
Subject:   Lcdproc support for AARCH64 Pine64-LTS
Message-ID:  <39e0868d-28a5-b7ec-6964-725e1b413134@optiplex-networks.com>

next in thread | raw e-mail | index | archive | help
Hi,


I would like to run Lcdproc on my Pine64-LTS but it seems the current=20
port is only x86/x64 compatible. I am aware that there are a few Linux=20
distros that have compiled Lcdproc into a ARM64 package, though I would=20
really love to see this on FreeBSD.


In the port itself I changed the Makefile and added aarch64 under the=20
supported platforms. During compilation I get this error:


--- pylcd.o ---
cc -DHAVE_CONFIG_H -I. -I../..=C2=A0 -I../..=C2=A0 -I/usr/local/include -=
fPIC=20
-Wall -O2 -pipe=C2=A0 -I/usr/local/include -fstack-protector-strong=20
-fno-strict-aliasing -Wno-unused-function -c -o pylcd.o pylcd.c
--- rawserial.o ---
cc -DHAVE_CONFIG_H -I. -I../..=C2=A0 -I../..=C2=A0 -I/usr/local/include -=
fPIC=20
-Wall -O2 -pipe=C2=A0 -I/usr/local/include -fstack-protector-strong=20
-fno-strict-aliasing -Wno-unused-function -c -o rawserial.o rawserial.c
--- SureElec.o ---
cc -DHAVE_CONFIG_H -I. -I../..=C2=A0 -I../..=C2=A0 -I/usr/local/include -=
fPIC=20
-Wall -O2 -pipe=C2=A0 -I/usr/local/include -fstack-protector-strong=20
-fno-strict-aliasing -Wno-unused-function -c -o SureElec.o SureElec.c
--- serialPOS.o ---
cc -DHAVE_CONFIG_H -I. -I../..=C2=A0 -I../..=C2=A0 -I/usr/local/include -=
fPIC=20
-Wall -O2 -pipe=C2=A0 -I/usr/local/include -fstack-protector-strong=20
-fno-strict-aliasing -Wno-unused-function -c -o serialPOS.o serialPOS.c
--- serialVFD.o ---
cc -DHAVE_CONFIG_H -I. -I../..=C2=A0 -I../..=C2=A0 -I/usr/local/include -=
fPIC=20
-Wall -O2 -pipe=C2=A0 -I/usr/local/include -fstack-protector-strong=20
-fno-strict-aliasing -Wno-unused-function -c -o serialVFD.o serialVFD.c
--- serialVFD_displays.o ---
cc -DHAVE_CONFIG_H -I. -I../..=C2=A0 -I../..=C2=A0 -I/usr/local/include -=
fPIC=20
-Wall -O2 -pipe=C2=A0 -I/usr/local/include -fstack-protector-strong=20
-fno-strict-aliasing -Wno-unused-function -c -o serialVFD_displays.o=20
serialVFD_displays.c
--- serialVFD_io.o ---
cc -DHAVE_CONFIG_H -I. -I../..=C2=A0 -I../..=C2=A0 -I/usr/local/include -=
fPIC=20
-Wall -O2 -pipe=C2=A0 -I/usr/local/include -fstack-protector-strong=20
-fno-strict-aliasing -Wno-unused-function -c -o serialVFD_io.o=20
serialVFD_io.c
In file included from serialVFD_io.c:45:
./port.h:344:32: error: invalid output constraint '=3Da' in asm
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 __asm__ volatile ("inb %1,%0"=
:"=3Da" (value)
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 ^
./port.h:351:36: error: invalid input constraint 'a' in asm
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 __asm__ volatile ("outb %0,%1=
\n"::"a" (val), "d"(port)
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 ^
serialVFD_io.c:190:15: warning: unused variable 'p' [-Wunused-variable]
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 PrivateData *p =3D drvthis->p=
rivate_data;
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^
1 warning and 2 errors generated.
*** [serialVFD_io.o] Error code 1

make[5]: stopped in=20
/usr/ports/sysutils/lcdproc/work/lcdproc-0.5.9/server/drivers
1 error

make[5]: stopped in=20
/usr/ports/sysutils/lcdproc/work/lcdproc-0.5.9/server/drivers
*** [all-recursive] Error code 1

make[4]: stopped in /usr/ports/sysutils/lcdproc/work/lcdproc-0.5.9/server
1 error

make[4]: stopped in /usr/ports/sysutils/lcdproc/work/lcdproc-0.5.9/server
*** [all-recursive] Error code 1

make[3]: stopped in /usr/ports/sysutils/lcdproc/work/lcdproc-0.5.9
1 error

make[3]: stopped in /usr/ports/sysutils/lcdproc/work/lcdproc-0.5.9
*** [all] Error code 2

make[2]: stopped in /usr/ports/sysutils/lcdproc/work/lcdproc-0.5.9
1 error

make[2]: stopped in /usr/ports/sysutils/lcdproc/work/lcdproc-0.5.9
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failur=
e to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/lcdproc
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/lcdproc

=3D=3D=3D>>> make build failed for sysutils/lcdproc
=3D=3D=3D>>> Aborting update


Currently I am running FreeBSD 13.0-CURRENT r347033 GENERIC arm64. The=20
UART ports on the Pine64-LTS have been activated using Overlays and I=20
additionally have added an RS232 converter. The LCD display itself is=20
hd44780 compatible so there should be no issues of getting it working as=20
long as the port itself will build.


Would anyone be able to help?


Many thanks.


Kaya




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39e0868d-28a5-b7ec-6964-725e1b413134>