From owner-freebsd-hackers@freebsd.org Sun Mar 5 10:10:03 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CA654CF97EB for ; Sun, 5 Mar 2017 10:10:03 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com [IPv6:2607:f8b0:400d:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E6BE1D4C for ; Sun, 5 Mar 2017 10:10:03 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by mail-qk0-x230.google.com with SMTP id n127so234839761qkf.0 for ; Sun, 05 Mar 2017 02:10:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=7p2AOThBXphP/bfzOwgKkqhxhs1Qt0WTXihD3VQTN7M=; b=PMlNnB6RSZcNLbmN40XplaOR7lYK596W/Osk0GOSGeAV8A8yU7CM7ar84igjg/sN3S wV/7RSO+I8CU4hLE304w+XHGBcAw+Ck0PE+OSsBfBs2hMfkyWMxvZ+XSTQ0J87f+dyKI hApoyzHGnCuUOCRem+/oDoYXQFaQlM2fWX3P0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=7p2AOThBXphP/bfzOwgKkqhxhs1Qt0WTXihD3VQTN7M=; b=YwTi1jLMieqkvZbAL76B8DObr4fYOZS9jTBRLrSHOWey7RSHpJ41yqWMzajqUpSthW yIG4g5gKVQE/n278yqkg7mdOp1VW/DPasotUJV5PDzw90thQqGIgvgIsaoPI0xruwX8f lvwNkAcEhdBGgxGtWXH5YBH7pJq040S6skqLNW34kQcbZ+Oa8Z3/8WTadcZWGRbct73D eDN96B8sZjP8SqwlBNF0eB/fIAj8T9zyW6S81exT7Z8H0jx9WI9gXdpRprKG+VC3IfTX Ww8spKX6fN4koztPhrLBK8magIfpFsIaaOPY7Io+DWFsgmnlmJ6Zr+zTfPsePJz55Q1G Wuug== X-Gm-Message-State: AMke39mUawYvYadC+jWW9LrYtJZBxZzHtmk8DYId6xxmcB5oYqYqFC/9U7WZ4UDv1EAfgw== X-Received: by 10.55.104.134 with SMTP id d128mr9816486qkc.86.1488708602300; Sun, 05 Mar 2017 02:10:02 -0800 (PST) Received: from [192.168.0.11] ([186.236.217.98]) by smtp.googlemail.com with ESMTPSA id l6sm3556583qkd.66.2017.03.05.02.10.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Mar 2017 02:10:01 -0800 (PST) Subject: Re: Simple program immediately killed when running on a NFS To: freebsd-hackers@freebsd.org References: <20170305104832.56d4e358bc968c4e03eca2b2@yahoo.es> From: =?UTF-8?B?T3RhY8OtbGlv?= Message-ID: Date: Sun, 5 Mar 2017 07:09:27 -0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20170305104832.56d4e358bc968c4e03eca2b2@yahoo.es> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Mar 2017 10:10:03 -0000 Em 05/03/2017 06:48, Eduardo Morras via freebsd-hackers escreveu: > On Sat, 4 Mar 2017 23:29:57 -0300 > Otacílio wrote: > >> Dears >> >> I'm trying to compile a simple hello world program on my RPI3. The >> program is on a directory mounted using NFS and stored in the amd64 >> machine. When I compile and try to run the program in the NFS mounted >> path it does not work, when I copy the same program to a local dir it >> work, and then when I copy the program from the local dir to the NFS >> dir it works !? !?!?! Someone can, please, explain it? Look at the >> historic program. > I assume you crosscompiled it to arm, but .. DId you static linked it? If not, it gets requiered .so from nfs server and crash, becuase they are amd64 binary. > > > I'm not compiling using the server tools. I'm compiling using the RPI3 tools inside the RPI3. The server is only exporting the /usr/ports. I mounted this on PRI3 /usr/ports and I'm compiling using the RPI3 clang. On this same scenario, when using a BBB this works. []s -Otacilio