pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/51653 pkgsrc breaks on RPI - evbarm vs. earm

The following reply was made to PR pkg/51653; it has been noted by GNATS.

From: Yasushi Oshima <>
Subject: Re: pkg/51653 pkgsrc breaks on RPI - evbarm vs. earm 
Date: Thu, 16 Mar 2017 01:38:43 +0900 (JST)

 I wrote:
 >>>  3. Problem of linker. Go ELF linker sets p_align of ELF Header
 >>>     to 4K somehow.
 >>>     I think this is not a problem in only NetBSD, nor only ARM CPUs.
 It has been changed from 4K to 64K on 2017-1-4:
 It is included in Go 1.8 released on 2017-2-16
 When cross-building using Go with other arch (include NetBSD/{amd64,i386})
 like bellow, Go 1.8 runtime which will work on NetBSD/earmv{6,7}hf.
 Case for earmv6hf:
 $ cd /foo/bar/go/src
 $ GOROOT_BOOTSTRAP=/where/host-goroot GOOS=netbsd GOARCH=arm GOARM=6 ./bootstrap.bash
 Case for earmv7hf:
 $ cd /foo/bar/go/src
 $ GOROOT_BOOTSTRAP=/where/host-goroot GOOS=netbsd GOARCH=arm GOARM=7 ./bootstrap.bash
 NOTE: can not build for earmv5 or earlier.
 For pkgsrc,
 I think there are two ways.
  - Back port changes in Go 1.7 to Go 1.4.
     It is necessary to change some sources from Go to C.
     Also, it will be its own change because Go 1.4 may be EOL.
 - Create a binary for bootstrap by cross building in advance and use it
    when building under pkgsrc.
     Like an openjdk-bootstrap binary.
     It is necessary to prepare for both earmv6hf and earmv7hf.
 I do not know which is better...
 Yasushi Oshima

Home | Main Index | Thread Index | Old Index