screen(1) crashes plus weird output for screen -ls

Ralf Wenk iz-rpi03 at hs-karlsruhe.de
Mon Apr 14 20:34:13 UTC 2014


Andreas Schwarz <freebsd.asc at strcmp.org> wrote:
> On 10.04.14, Ralf Wenk wrote:
> 
> > I was not successful in compiling a gcc from the ports on armv6.
> > ONLY_FOR_ARCHS prohibits it. [...]
> 
> The legacy standard freebsd gcc is still included in the source tree, you can use the 
> WITH_GCC/WITH_GNUCXX options in scr.conf when building and installing world.

I had some minor trouble to get it going. Adding both options terminates
the build here with

-- gnu/lib/libsupc++__L ---
/root/rpi/head/gnu/lib/libsupc++/../../../contrib/libstdc++/libsupc++/eh_arm.cc
:44:1: error: functions that differ only in their return type cannot be 
overloaded
__cxa_type_match(_Unwind_Exception* ue_header,
^

Just setting WITH_GCC got me finally a successful build.
Now back to the problem with screen on arm.


Compiling screen with gcc instead of clang using the standard optimization
(-O) results in a correct working screen as "screen -ls" prints

 There is a screen on:
         3164.pts-2.raspberry-pi (Detached)
 1 Socket in /tmp/screens/S-pi.

while a fresh with clang -O compiled screen prints

 There is a screen on:
         3164.pts-2.raspberry-pi (Detached)
 -1073746600 Socket
                   Рá in ðõÿ¿8è.

Compiling screen with clang -O0 results in the same output as gcc.
I think this supports my idea of suspecting the clang optimizations.

The gcc used is

$ gcc -v
Using built-in specs.
Target: armv6-undermydesk-freebsd
Configured with: FreeBSD/armv6 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]
$


Ralf



More information about the freebsd-arm mailing list