From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Oct 8 12:01:07 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 82DF3B79 for ; Wed, 8 Oct 2014 12:01:07 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 68E8E38E for ; Wed, 8 Oct 2014 12:01:07 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s98C17o9017475 for ; Wed, 8 Oct 2014 12:01:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 194239] New: gnustep-base on arm - package needs libiconv and binaries segfault Date: Wed, 08 Oct 2014 12:01:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: direct727@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2014 12:01:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194239 Bug ID: 194239 Summary: gnustep-base on arm - package needs libiconv and binaries segfault Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: direct727@gmail.com Can compile gnustep-base on a Raspberry Pi now. The first time I've been able to compile gnustep-base. However binaries built using gnustep-base are segfaulting 1. The gnustep-base package won't compile unless the libiconv package being installed. So the libiconv needs to be added as a hard dependency, which it isn't at the moment. 2. GNU step binaries are segfaulting when they call into the Foundation library. For instance if I create GNUstep "Hello World" program and call printf("Hello World"), this runs. However if I change the printf call to NSLog(@"Hello World"), the program segfaults. # uname -a FreeBSD raspberry-pi 10.1-RC1 FreeBSD 10.1-RC1 #0 r272463: Fri Oct 3 07:27:18 UTC 2014 root@releng1.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI-B arm Compiled libobjc2 and gnustep-base with the following environment variables set:- WITH_DEBUG=yes CFLAGS=-integrated-as source.m ----------------------- #include int main (int argc, char ** argv) { NSLog(@"Hello world..."); } GNUmakefile ----------------------- include $(GNUSTEP_MAKEFILES)/common.make debug=yes ${TOOL_NAME}_OBJCFLAGS = -fobjc-arc TOOL_NAME = hello hello_OBJC_FILES = source.m include $(GNUSTEP_MAKEFILES)/tool.make Compilation... ---------- $ ls GNUmakefile obj source.m $ game This is gnustep-make 2.6.6. Type 'gmake print-gnustep-make-help' for help. Making all for tool hello... Compiling file source.m ... Linking tool hello ... $ ./obj/hello Segmentation fault (core dumped) gdb -------------- $ gdb obj/hello hello.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "armv6-marcel-freebsd"...(no debugging symbols found)... Core was generated by `hello'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/local/GNUstep/System/Library/Libraries/libgnustep-base.so.1.24...done. Loaded symbols for /usr/local/GNUstep/System/Library/Libraries/libgnustep-base.so.1.24 Reading symbols from /usr/local/lib/libobjc.so.4.6...done. Loaded symbols for /usr/local/lib/libobjc.so.4.6 Reading symbols from /usr/local/lib/libgmp.so.10...done. Loaded symbols for /usr/local/lib/libgmp.so.10 Reading symbols from /usr/local/lib/libgnutls.so.28...done. Loaded symbols for /usr/local/lib/libgnutls.so.28 Reading symbols from /usr/local/lib/libgcrypt.so.20...done. Loaded symbols for /usr/local/lib/libgcrypt.so.20 Reading symbols from /usr/local/lib/libxslt.so.2...done. Loaded symbols for /usr/local/lib/libxslt.so.2 Reading symbols from /usr/local/lib/libxml2.so.2...done. Loaded symbols for /usr/local/lib/libxml2.so.2 Reading symbols from /lib/libz.so.6...done. Loaded symbols for /lib/libz.so.6 Reading symbols from /lib/libm.so.5...done. Loaded symbols for /lib/libm.so.5 Reading symbols from /usr/local/lib/libffi.so.6...done. Loaded symbols for /usr/local/lib/libffi.so.6 Reading symbols from /lib/libkvm.so.6...done. Loaded symbols for /lib/libkvm.so.6 Reading symbols from /usr/lib/librt.so.1...done. Loaded symbols for /usr/lib/librt.so.1 Reading symbols from /lib/libthr.so.3...done. Loaded symbols for /lib/libthr.so.3 Reading symbols from /usr/local/lib/libicui18n.so.53...done. Loaded symbols for /usr/local/lib/libicui18n.so.53 Reading symbols from /usr/local/lib/libicuuc.so.53...done. Loaded symbols for /usr/local/lib/libicuuc.so.53 Reading symbols from /usr/local/lib/libicudata.so.53...done. Loaded symbols for /usr/local/lib/libicudata.so.53 Reading symbols from /usr/local/lib/libdispatch.so.0...done. Loaded symbols for /usr/local/lib/libdispatch.so.0 Reading symbols from /lib/libc.so.7...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/libcxxrt.so.1...done. Loaded symbols for /lib/libcxxrt.so.1 Reading symbols from /usr/local/lib/libp11-kit.so.0...done. Loaded symbols for /usr/local/lib/libp11-kit.so.0 Reading symbols from /usr/local/lib/libtspi.so.1...done. Loaded symbols for /usr/local/lib/libtspi.so.1 Reading symbols from /usr/local/lib/libtasn1.so.6...done. Loaded symbols for /usr/local/lib/libtasn1.so.6 Reading symbols from /usr/local/lib/libnettle.so.4...done. Loaded symbols for /usr/local/lib/libnettle.so.4 Reading symbols from /usr/local/lib/libhogweed.so.2...done. Loaded symbols for /usr/local/lib/libhogweed.so.2 Reading symbols from /usr/local/lib/libgpg-error.so.0...done. Loaded symbols for /usr/local/lib/libgpg-error.so.0 Reading symbols from /usr/lib/liblzma.so.5...done. Loaded symbols for /usr/lib/liblzma.so.5 Reading symbols from /usr/lib/libc++.so.1...done. Loaded symbols for /usr/lib/libc++.so.1 Reading symbols from /usr/lib/libBlocksRuntime.so.0...done. Loaded symbols for /usr/lib/libBlocksRuntime.so.0 Reading symbols from /lib/libcrypto.so.7...done. Loaded symbols for /lib/libcrypto.so.7 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x20645400 in objc_msgSend_fpret () from /usr/local/lib/libobjc.so.4.6 [New Thread 23003300 (LWP 100113/hello)] (gdb) (gdb) bt full #0 0x20645400 in objc_msgSend_fpret () from /usr/local/lib/libobjc.so.4.6 No symbol table info available. #1 0x202f7db4 in NSLogv (format=0x121c8, args={__ap = 0xbffff6c4}) at NSLog.m:327 pid = 0 prefix = (class NSString *) 0xf6 message = (class NSString *) 0xbffff6c4 arp = (class NSAutoreleasePool *) 0xbffff6c4 #2 0xbffff6c4 in ?? () No symbol table info available. Cannot access memory at address 0xf6 -- You are receiving this mail because: You are the assignee for the bug.