2008-02-08 02:54:41     can't compile

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-02-08 02:54:41     can't compile

stop go (UNITED STATES)

Message: 50843    Hi,

 

I know your FAQ recommends developing on a former release, not on live code, but the previous stable release seems too old to support the vendor I want to hack on (SRV).  I tried grabbing uClinux-dist-2008R1-RC1, but, while I can see my vendor in xconfig, it's grayed out.  So I finally moved to SVN.  I have an 08r1-8 toolchain / uclib installed, and when I try to build the kernel for my vendor:

 

  CC [M]  drivers/media/video/blackfin/blackfin_cam.o

drivers/media/video/blackfin/blackfin_cam.c:1379: error: unknown field ‘hardware’ specified in initializer

make[5]: *** [drivers/media/video/blackfin/blackfin_cam.o] Error 1

make[4]: *** [drivers/media/video/blackfin] Error 2

make[3]: *** [drivers/media/video] Error 2

make[2]: *** [drivers/media] Error 2

make[2]: *** Waiting for unfinished jobs....

 

I've also tried using the latest SVN toolchain, uclinux-dist, and u-boot together and compiling them with BuildToolScript.  This dies with:

 

*** Configuring Elf Binutils & GDB                  Thu Feb  7 23:48:18 PST 2008

*** Building Elf Binutils & GDB                     Thu Feb  7 23:48:20 PST 2008

*** Installing Elf Binutils & GDB                   Thu Feb  7 23:51:43 PST 2008

*** Linking newlib and libgloss                     Thu Feb  7 23:51:54 PST 2008

*** Configuring GCC                                 Thu Feb  7 23:51:54 PST 2008

*** Building GCC                                    Thu Feb  7 23:51:55 PST 2008

Build error Thu Feb  7 23:52:39 PST 2008

Last logfile entries:

        /bin/sh /home/stopgo/robot/uclinux/toolchain/gcc-4.1/gcc/mkconfig.sh bconfig.h

make[2]: *** No rule to make target `../../build-i686-pc-linux-gnu/libiberty/libiberty.a', needed by `build/genmodes'.  Stop.

make[2]: *** Waiting for unfinished jobs....

/bin/sh /home/stopgo/robot/uclinux/toolchain/gcc-4.1/gcc/../move-if-change tmp-optionlist optionlist

echo timestamp > s-options

5279 translated messages, 77 fuzzy translations, 549 untranslated messages.

make[2]: Leaving directory `/home/stopgo/robot/uclinux/gcc-build/gcc_build-4.1/gcc'

make[1]: *** [all-gcc] Error 2

make[1]: Leaving directory `/home/stopgo/robot/uclinux/gcc-build/gcc_build-4.1'

make: *** [all] Error 2

tar: Removing leading `/' from member names

 

Can you recommend me a good course of action?

QuoteReplyEditDelete

 

 

2008-02-08 11:22:28     Re: can't compile

Mike Frysinger (UNITED STATES)

Message: 50856    svn kernel is going to be a little unstable since we just updated it to 2.6.24

QuoteReplyEditDelete

 

 

2008-02-09 02:08:32     Re: can't compile

stop go (UNITED STATES)

Message: 50868    So this appears to be a problem with building gcc.

 

http://archives.devshed.com/forums/development-94/new-gmake-no-rule-to-make-target-libiberty-libiberty-a-892826.html

 

And indeed if I build in that subdirectory, I get that error.  And when I build in the higher level directory, it compiles.  Any idea what's up?  Or can you point to what script I need to modify so that it builds in the correct directory instead of the subdirectory?

QuoteReplyEditDelete

 

 

2008-02-09 13:01:17     Re: can't compile

Mike Frysinger (UNITED STATES)

Message: 50883    libiberty.a failing tends to not be the real error.  you have to look at the full log and compare it to a good run to find out where things went wrong originally.

QuoteReplyEditDelete

 

 

2008-02-14 03:54:29     Re: can't compile

stop go (UNITED STATES)

Message: 51025    Where can I find a log of a good run?

QuoteReplyEditDelete

 

 

2008-02-14 07:01:38     Re: can't compile

Robin Getz (UNITED STATES)

Message: 51043    Stop:

 

Are you looking for logs of toolchain, or kernel?

 

-Robin

QuoteReplyEditDelete

 

 

2008-02-14 19:50:41     Re: can't compile

stop go (UNITED STATES)

Message: 51076    The toolchain, I presume, as I'm choking on gcc when I run toolchain/buildscript/BuildToolChain.

QuoteReplyEditDelete

 

 

2008-02-14 21:35:52     Re: can't compile

Robin Getz (UNITED STATES)

Message: 51077    Can you try:

 

toolchain/buildscript/BuildToolChain -p

 

You should see something like:

 

rgetz@imhotep:~/blackfin/trunk> ./toolchain/buildscript/BuildToolChain -p

Checking for development packages (skip checks with the -D option)

Check http://gcc.gnu.org/install/prerequisites.html for more information

   autoconf (GNU Autoconf) 2.60

   automake (GNU automake) 1.9.6

   GNU Awk 3.1.5

   GNU bash, version 3.1.17(1)-release (i586-suse-linux-gnu)

   bison (GNU Bison) 2.3

   cp (GNU coreutils) 6.4

   echo seems to be a shell builtin

   flex 2.5.33

   gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux)

   gettext (GNU gettext-runtime) 0.15

   grep (GNU grep) 2.5.1

   ln (GNU coreutils) 6.4

   GNU M4 1.4.6

   GNU Make 3.81

   makeinfo (GNU texinfo) 4.8

   mkdir (GNU coreutils) 6.4

   msgfmt (GNU gettext-tools) 0.15

   mv (GNU coreutils) 6.4

   rm (GNU coreutils) 6.4

   GNU sed version 4.1.5

   tail (GNU coreutils) 6.4

   wc (GNU coreutils) 6.4

   GNU which v2.13, Copyright (C) 1999, 2000 Carlo Wood. GNU which comes with ABSOLUTELY NO WARRANTY;

   ping utility, iputils-ss021109

** Could not find version of /usr/bin/rsh

** /usr/bin/rsh: setuid ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.4, stripped

** Could not find version of /usr/bin/rcp

** /usr/bin/rcp: setuid ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.4, stripped

   bc 1.06

   kill seems to be a shell builtin

   killall (PSmisc) 22.3

   pstree (PSmisc) 22.3

   Expect version is 5.43.0 Tcl version is 8.4 Framework version is 1.4.4

** Could not find version of /usr/bin/Xvfb

** /usr/bin/Xvfb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux 2.6.4, stripped

   SHELL = /bin/bash

Done checking for prerequisites

 

-Robin

QuoteReplyEditDelete

 

 

2008-02-15 01:16:38     Re: can't compile

stop go (UNITED STATES)

Message: 51079    Checking for development packages (skip checks with the -D option)

Check http://gcc.gnu.org/install/prerequisites.html for more information

   autoconf (GNU Autoconf) 2.61

   automake (GNU automake) 1.10

** Could not find version of /usr/bin/awk

** /usr/bin/awk: symbolic link to `/etc/alternatives/awk'

* /etc/alternatives/awk: symbolic link to `/usr/bin/mawk'

* /usr/bin/mawk: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), stripped

** Could not find version of /bin/sh

** /bin/sh: symbolic link to `dash'

* dash: ERROR: cannot open `dash' (No such file or directory)

   bison (GNU Bison) 2.3

   cp (GNU coreutils) 5.97

   echo seems to be a shell builtin

   flex 2.5.33

   gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

   gettext (GNU gettext-runtime) 0.16.1

   grep (GNU grep) 2.5.1

   ln (GNU coreutils) 5.97

   m4 (GNU M4) 1.4.10

   GNU Make 3.81

   makeinfo (GNU texinfo) 4.8

   mkdir (GNU coreutils) 5.97

   msgfmt (GNU gettext-tools) 0.16.1

   mv (GNU coreutils) 5.97

   rm (GNU coreutils) 5.97

   GNU sed version 4.1.5

   tail (GNU coreutils) 5.97

   wc (GNU coreutils) 5.97

** Could not find version of /usr/bin/which

** /usr/bin/which: symbolic link to `/bin/which'

* /bin/which: POSIX shell script text executable

   ping utility, iputils-sss20070202

** Could not find version of /usr/bin/rsh

** /usr/bin/rsh: symbolic link to `/etc/alternatives/rsh'

* /etc/alternatives/rsh: symbolic link to `/usr/bin/ssh'

* /usr/bin/ssh: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, stripped

** Could not find version of /usr/bin/rcp

** /usr/bin/rcp: symbolic link to `/etc/alternatives/rcp'

* /etc/alternatives/rcp: symbolic link to `/usr/bin/scp'

* /usr/bin/scp: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, stripped

   bc 1.06

   kill seems to be a shell builtin

   killall (PSmisc) 22.5

   pstree (PSmisc) 22.5

!! runtest: could not be found

** Could not find version of /usr/bin/Xvfb

** /usr/bin/Xvfb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped

   SHELL = /bin/bash

Done checking for prerequisites

 

Ah... where can I get runtest?

QuoteReplyEditDelete

 

 

2008-02-15 06:06:54     Re: can't compile

Jie Zhang (UNITED STATES)

Message: 51087    runtest is from DejaGNU. But if you don't test toolchain, you won't need it.

QuoteReplyEditDelete

 

 

2008-02-15 08:17:35     Re: can't compile

Robin Getz (UNITED STATES)

Message: 51106    I think the issue is actually mawk - it is not the same as awk, and does not work well when building toolchains.

 

Have a look at:

http://docs.blackfin.uclinux.org/doku.php?id=installing_linux#apt-get_based_distributions

 

and make sure all the necessary (mandatory prerequisites for building c, c++ and kernel compiling) are installed.

 

-Robin

QuoteReplyEditDelete

 

 

2008-02-16 02:28:14     Re: can't compile

stop go (UNITED STATES)

Message: 51138    Checking for development packages (skip checks with the -D option)

Check http://gcc.gnu.org/install/prerequisites.html for more information

   autoconf (GNU Autoconf) 2.61

   automake (GNU automake) 1.10

   GNU Awk 3.1.5

** Could not find version of /bin/sh

** /bin/sh: symbolic link to `dash'

* dash: ERROR: cannot open `dash' (No such file or directory)

   bison (GNU Bison) 2.3

   cp (GNU coreutils) 5.97

   echo seems to be a shell builtin

   flex 2.5.33

   gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

   gettext (GNU gettext-runtime) 0.16.1

   grep (GNU grep) 2.5.1

   ln (GNU coreutils) 5.97

   m4 (GNU M4) 1.4.10

   GNU Make 3.81

   makeinfo (GNU texinfo) 4.8

   mkdir (GNU coreutils) 5.97

   msgfmt (GNU gettext-tools) 0.16.1

   mv (GNU coreutils) 5.97

   rm (GNU coreutils) 5.97

   GNU sed version 4.1.5

   tail (GNU coreutils) 5.97

   wc (GNU coreutils) 5.97

** Could not find version of /usr/bin/which

** /usr/bin/which: symbolic link to `/bin/which'

* /bin/which: POSIX shell script text executable

   ping utility, iputils-sss20070202

** Could not find version of /usr/bin/rsh

** /usr/bin/rsh: symbolic link to `/etc/alternatives/rsh'

* /etc/alternatives/rsh: symbolic link to `/usr/bin/netkit-rsh'

* /usr/bin/netkit-rsh: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), stripped

** Could not find version of /usr/bin/rcp

** /usr/bin/rcp: symbolic link to `/etc/alternatives/rcp'

* /etc/alternatives/rcp: symbolic link to `/usr/bin/netkit-rcp'

* /usr/bin/netkit-rcp: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), stripped

   bc 1.06

   kill seems to be a shell builtin

   killall (PSmisc) 22.5

   pstree (PSmisc) 22.5

   Expect version is 5.43.0 Tcl version is 8.4 Framework version is 1.4.99

** Could not find version of /usr/bin/Xvfb

** /usr/bin/Xvfb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped

   SHELL = /bin/bash

Done checking for prerequisites

 

I followed the instructions at that link, and I also uninstalled mawk and installed gawk, but still the same problem.  Any more ideas?

QuoteReplyEditDelete

 

 

2008-02-16 02:54:20     Re: can't compile

Mike Frysinger (UNITED STATES)

Message: 51139    just post the full build log as an attachment

QuoteReplyEditDelete

 

 

2008-02-16 03:30:56     Re: can't compile

stop go (UNITED STATES)

Message: 51140    Here it is.

log

QuoteReplyEditDelete

 

 

2008-02-16 04:06:13     Re: can't compile

Mike Frysinger (UNITED STATES)

Message: 51141    if it fails the same way every time, you can try two things:

- run BuildToolChain with "-j 1"

- change /bin/sh to point to /bin/bash

QuoteReplyEditDelete

 

 

2008-02-16 05:51:03     Re: can't compile

stop go (UNITED STATES)

Message: 51154    It does fail the same way every time.  Neither of those two approaches worked, unfortunately.

QuoteReplyEditDelete

 

 

2008-02-16 07:15:47     Re: can't compile

Mike Frysinger (UNITED STATES)

Message: 51155    please post the log file from running with -j1 ... it's much easier to find problems when it is not run in parallel

QuoteReplyEditDelete

 

 

2008-02-16 20:49:24     Re: can't compile

stop go (UNITED STATES)

Message: 51159    Here it is with -j 1 passed in.

log

QuoteReplyEditDelete

 

 

2008-02-17 20:00:50     Re: can't compile

stop go (UNITED STATES)

Message: 51164    Got it to compile.  I trashed the entire directory and pulled it from svn again.  I guess maybe some remnant from bad compile attempts (because of dash or mawk) were left behind and getting in my way.  Anyway, it builds now.  Thanks!

Attachments

Outcomes