List Info

Thread: cross compile problem, building netbsd-3 for sparc on i386




cross compile problem, building netbsd-3 for sparc on i386
user name
2006-09-29 22:51:59

This command completes successfully:


   ./build.sh -u -U -m sparc tools


===> Tools built to /tew/004/NetBSD/tools
===> build.sh started: Fri Sep 29 17:30:46 CDT 2006
===> build.sh ended:   Fri Sep 29 17:31:18 CDT 2006
===> Summary of results:
         build.sh command: ./build.sh -u -U -m sparc tools
         build.sh started: Fri Sep 29 17:30:46 CDT 2006
         No nonexistent/bin/nbmake, needs building.
         Bootstrapping nbmake
         MACHINE:          sparc
         MACHINE_ARCH:     sparc
         TOOLDIR path:     /tew/004/NetBSD/tools
         DESTDIR path:
/tew/003/src/NetBSD/NetBSD-3/src/obj.sparc/destdir.sparc
         RELEASEDIR path:
/tew/003/src/NetBSD/NetBSD-3/src/obj.sparc/releasedir
         Created /tew/004/NetBSD/tools/bin/nbmake
         makewrapper:     
/tew/004/NetBSD/tools/bin/nbmake-sparc
         Updated /tew/004/NetBSD/tools/bin/nbmake-sparc
         Tools built to /tew/004/NetBSD/tools
         build.sh started: Fri Sep 29 17:30:46 CDT 2006
         build.sh ended:   Fri Sep 29 17:31:18 CDT 2006


 However, "./build.sh -u -U -m sparc -T
/tew/004/NetBSD/tools
distribution" fails, complaining that it cannot find
sparc--netbsdelf-gcc:

install ===> tools/compat
do-lib-csu ===> .
dependall ===> lib/csu
dependall ===> lib/csu/sparc_elf
#    create  sparc_elf/crtn.d
CC=/tew/004/NetBSD/tools/bin/sparc--netbsdelf-gcc
/tew/004/NetBSD/tools/bin/nbmkdep -f crtn.d --      -I-
-I/tew/003/src/NetBSD/NetBSD-3/src/lib/csu/sparc_elf
-DLIBC_SCCS -DPIC
-DDYNAMIC -DELFSIZE=32
-I/tew/003/src/NetBSD/NetBSD-3/src/libexec/ld.elf_so
-I/tew/003/src/NetBSD/NetBSD-3/src/lib/csu/sparc_elf/../comm
on_elf
-I/tew/003/src/NetBSD/NetBSD-3/src/lib/libc/dlfcn
-DDWARF2_EH -DJCR
-DDSO_HANDLE  -nostdinc -isystem
/tew/003/src/NetBSD/NetBSD-3/src/obj.sparc/destdir.sparc/usr
/include
/tew/003/src/NetBSD/NetBSD-3/src/lib/csu/sparc_elf/../common
_elf/crtn.c
nbmkdep: /tew/004/NetBSD/tools/bin/sparc--netbsdelf-gcc: not
found: No
such file or directory


 And indeed, there is no sparc--netbsdelf-gcc.

 Anyone have any ideas?

 I'm running the build on sparc/i386.

 -johan

cross compile problem, building netbsd-3 for sparc on i386
user name
2006-10-01 21:08:21

  I fixed this, but am not entirely sure how.  I mv'd my
/etc/mk.conf out
of the way to test if it was a bad effect of something i'd
set in there.
That seemed to fix the problem, in that "build.sh ...
tools" installed a
sparc--netbsdelf-gcc.

 Next, i did a make clean, and then removed the newly-creaed
"obj"
directories from /usr/src/tools.  My mk.conf sets
MAKEOBJDIRPREFIX and
OBJMACHINE, so i figured i'd need to clean up since the
build had run with
those set.  Then i mv'd mk.conf back to /etc, and it
continued to
work. Maybe there was some cruft in my source tree.

 -johan


"Johan A. van Zanten" <johangiantfoo.org> wrote:
> 
> 
> This command completes successfully:
> 
> 
>    ./build.sh -u -U -m sparc tools
> 
> 
> ===> Tools built to /tew/004/NetBSD/tools
> ===> build.sh started: Fri Sep 29 17:30:46 CDT 2006
> ===> build.sh ended:   Fri Sep 29 17:31:18 CDT 2006
> ===> Summary of results:
>          build.sh command: ./build.sh -u -U -m sparc
tools
>          build.sh started: Fri Sep 29 17:30:46 CDT 2006
>          No nonexistent/bin/nbmake, needs building.
>          Bootstrapping nbmake
>          MACHINE:          sparc
>          MACHINE_ARCH:     sparc
>          TOOLDIR path:     /tew/004/NetBSD/tools
>          DESTDIR path:
>
/tew/003/src/NetBSD/NetBSD-3/src/obj.sparc/destdir.sparc
>          RELEASEDIR path:
> /tew/003/src/NetBSD/NetBSD-3/src/obj.sparc/releasedir
>          Created /tew/004/NetBSD/tools/bin/nbmake
>          makewrapper:     
/tew/004/NetBSD/tools/bin/nbmake-sparc
>          Updated /tew/004/NetBSD/tools/bin/nbmake-sparc
>          Tools built to /tew/004/NetBSD/tools
>          build.sh started: Fri Sep 29 17:30:46 CDT 2006
>          build.sh ended:   Fri Sep 29 17:31:18 CDT 2006
> 
> 
>  However, "./build.sh -u -U -m sparc -T
/tew/004/NetBSD/tools
> distribution" fails, complaining that it cannot
find sparc--netbsdelf-gcc:
> 
> install ===> tools/compat
> do-lib-csu ===> .
> dependall ===> lib/csu
> dependall ===> lib/csu/sparc_elf
> #    create  sparc_elf/crtn.d
> CC=/tew/004/NetBSD/tools/bin/sparc--netbsdelf-gcc
> /tew/004/NetBSD/tools/bin/nbmkdep -f crtn.d --      -I-
> -I/tew/003/src/NetBSD/NetBSD-3/src/lib/csu/sparc_elf
-DLIBC_SCCS -DPIC
> -DDYNAMIC -DELFSIZE=32
> -I/tew/003/src/NetBSD/NetBSD-3/src/libexec/ld.elf_so
>
-I/tew/003/src/NetBSD/NetBSD-3/src/lib/csu/sparc_elf/../comm
on_elf
> -I/tew/003/src/NetBSD/NetBSD-3/src/lib/libc/dlfcn
-DDWARF2_EH -DJCR
> -DDSO_HANDLE  -nostdinc -isystem
>
/tew/003/src/NetBSD/NetBSD-3/src/obj.sparc/destdir.sparc/usr
/include
>
/tew/003/src/NetBSD/NetBSD-3/src/lib/csu/sparc_elf/../common
_elf/crtn.c
> nbmkdep:
/tew/004/NetBSD/tools/bin/sparc--netbsdelf-gcc: not found:
No
> such file or directory
> 
> 
>  And indeed, there is no sparc--netbsdelf-gcc.
> 
>  Anyone have any ideas?
> 
>  I'm running the build on sparc/i386.
> 
>  -johan
> 
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )