Hi,

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


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


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

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

make[5]: stopped in /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
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure 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

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


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


Would anyone be able to help?


Many thanks.


Kaya

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to