Bug 181220 - make xdev for arm installation fails
Summary: make xdev for arm installation fails
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-11 02:30 UTC by Christopher Abbey
Modified: 2013-09-11 00:20 UTC (History)
0 users

See Also:


Attachments
file.diff (953 bytes, patch)
2013-08-11 02:30 UTC, Christopher Abbey
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Abbey 2013-08-11 02:30:00 UTC
When building xdev:
    make XDEV=arm XDEV_ARCH=armv6 xdev

It fails with the output:

set -e; cd /usr/src/include; make buildincludes; make installincludes
creating osreldate.h from newvers.sh
*** [osreldate.h] Error code 1

Stop in /usr/src/include.
*** [includes] Error code 1

Stop in /usr/src/include.
*** [include.includes__D] Error code 1

Stop in /usr/src.
*** [_xi-includes] Error code 1

Stop in /usr/src.
*** [xdev] Error code 1

Stop in /usr/src.


The problem file appears to be:
/usr/src/sys/conf/newvers.sh

It looks like ${0} is printing sh instead of the script name

Fix: Hard coding the script name into the script. 

Patch attached with submission follows:
How-To-Repeat: make XDEV=arm XDEV_ARCH=armv6 xdev
Comment 1 Ian Lepore freebsd_committer freebsd_triage 2013-08-11 15:13:26 UTC
On Sun, 2013-08-11 at 01:20 +0000, Christopher Abbey wrote:
> >Number:         181220
> >Category:       arm
> >Synopsis:       make xdev for arm installation fails
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       low
> >Responsible:    freebsd-arm
> >State:          open
> >Quarter:        
> >Keywords:       
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Sun Aug 11 01:30:00 UTC 2013
> >Closed-Date:
> >Last-Modified:
> >Originator:     Christopher Abbey
> >Release:        9.1
> >Organization:
> >Environment:
> FreeBSD robolace.localdomain 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
> 
> >Description:
> When building xdev:
>     make XDEV=arm XDEV_ARCH=armv6 xdev
> 
> It fails with the output:
> 
> set -e; cd /usr/src/include; make buildincludes; make installincludes
> creating osreldate.h from newvers.sh
> *** [osreldate.h] Error code 1
> 
> Stop in /usr/src/include.
> *** [includes] Error code 1
> 
> Stop in /usr/src/include.
> *** [include.includes__D] Error code 1
> 
> Stop in /usr/src.
> *** [_xi-includes] Error code 1
> 
> Stop in /usr/src.
> *** [xdev] Error code 1
> 
> Stop in /usr/src.
> 
> 
> The problem file appears to be:
> /usr/src/sys/conf/newvers.sh
> 
> It looks like ${0} is printing sh instead of the script name
> [snip]

There were two checkins yesterday that appear to be potential fixes for
this problem, r254184 and r254217.  Could you please apply those and see
if it fixes the problem without hard-coding a pathname?

-- Ian
Comment 2 Christopher Abbey 2013-08-11 15:24:10 UTC
I applied them and they did fix the problem without hard coding path =)


On Mon, Aug 12, 2013 at 12:13 AM, Ian Lepore <ian@freebsd.org> wrote:

> On Sun, 2013-08-11 at 01:20 +0000, Christopher Abbey wrote:
> > >Number:         181220
> > >Category:       arm
> > >Synopsis:       make xdev for arm installation fails
> > >Confidential:   no
> > >Severity:       non-critical
> > >Priority:       low
> > >Responsible:    freebsd-arm
> > >State:          open
> > >Quarter:
> > >Keywords:
> > >Date-Required:
> > >Class:          sw-bug
> > >Submitter-Id:   current-users
> > >Arrival-Date:   Sun Aug 11 01:30:00 UTC 2013
> > >Closed-Date:
> > >Last-Modified:
> > >Originator:     Christopher Abbey
> > >Release:        9.1
> > >Organization:
> > >Environment:
> > FreeBSD robolace.localdomain 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825:
> Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
>  amd64
> >
> > >Description:
> > When building xdev:
> >     make XDEV=arm XDEV_ARCH=armv6 xdev
> >
> > It fails with the output:
> >
> > set -e; cd /usr/src/include; make buildincludes; make installincludes
> > creating osreldate.h from newvers.sh
> > *** [osreldate.h] Error code 1
> >
> > Stop in /usr/src/include.
> > *** [includes] Error code 1
> >
> > Stop in /usr/src/include.
> > *** [include.includes__D] Error code 1
> >
> > Stop in /usr/src.
> > *** [_xi-includes] Error code 1
> >
> > Stop in /usr/src.
> > *** [xdev] Error code 1
> >
> > Stop in /usr/src.
> >
> >
> > The problem file appears to be:
> > /usr/src/sys/conf/newvers.sh
> >
> > It looks like ${0} is printing sh instead of the script name
> > [snip]
>
> There were two checkins yesterday that appear to be potential fixes for
> this problem, r254184 and r254217.  Could you please apply those and see
> if it fixes the problem without hard-coding a pathname?
>
> -- Ian
>
>
>
Comment 3 Luiz Otavio O Souza,+55 (14) 99772-1255 freebsd_committer freebsd_triage 2013-09-11 00:20:38 UTC
State Changed
From-To: open->closed

The problem was fixed by r254184 and r254217. Close by the submitter 
request.