From: Tim Bird <tim.bird@am.sony.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] link error on first compile
Date: Thu, 03 Feb 2005 17:17:33 -0800 [thread overview]
Message-ID: <4202CD2D.4060606@am.sony.com> (raw)
Hi all,
On a fresh untar; make xxx_config; make all, I get an error linking
the example program hello_world with start.o.
This can be worked around by removing 'examples' from the list of
SUBDIRS in the top-level Makefile.
After building, I added 'examples' back in. Strangely, for one set
of builds, this solved my problem (and hello_world linked OK, even
after a 'make distclean'), but for another set of builds, hello_world
wouldn't link even when cpu/arm925t/start.o was present.
I haven't been able to figure out the problem, but I thought I'd
report it. This is with a home-built gcc:
arm-sony-linux-gcc (GCC) 3.4.3
-- Tim
----------------
[tbird at timdesk u-boot-1.1.2]$ make all
make[1]: Entering directory `/home/tbird/work/innovator/u-boot-1.1.2/tools'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/tbird/work/innovator/u-boot-1.1.2/tools'
make[1]: Entering directory `/home/tbird/work/innovator/u-boot-1.1.2/examples'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/tbird/work/innovator/u-boot-1.1.2/examples'
make[1]: Entering directory `/home/tbird/work/innovator/u-boot-1.1.2/post'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/tbird/work/innovator/u-boot-1.1.2/post'
make[1]: Entering directory `/home/tbird/work/innovator/u-boot-1.1.2/post/cpu'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/tbird/work/innovator/u-boot-1.1.2/post/cpu'
make -C tools all
make[1]: Entering directory `/home/tbird/work/innovator/u-boot-1.1.2/tools'
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -c mkimage.c
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -c crc32.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -o mkimage mkimage.o crc32.o
strip mkimage
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -c envcrc.c
gcc -g -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -c environment.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -c gen_eth_addr.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/home/tbird/work/innovator/u-boot-1.1.2/include/bmp_logo.h
make[1]: Leaving directory `/home/tbird/work/innovator/u-boot-1.1.2/tools'
make -C examples all
make[1]: Entering directory `/home/tbird/work/innovator/u-boot-1.1.2/examples'
arm-sony-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -malignment-traps -msoft-float -D__KERNEL__ -DTEXT_BASE=0x11080000 -I/home/tbird/work/innovator/u-boot-1.1.2/include
-fno-builtin -ffreestanding -nostdinc -isystem /home/local/arm-sony-linux/devel/bin/../lib/gcc/arm-sony-linux/3.4.3/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -Wall
-Wstrict-prototypes -c -o stubs.o stubs.c
arm-sony-linux-ar crv libstubs.a stubs.o
a - stubs.o
arm-sony-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -malignment-traps -msoft-float -D__KERNEL__ -DTEXT_BASE=0x11080000 -I/home/tbird/work/innovator/u-boot-1.1.2/include
-fno-builtin -ffreestanding -nostdinc -isystem /home/local/arm-sony-linux/devel/bin/../lib/gcc/arm-sony-linux/3.4.3/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -Wall
-Wstrict-prototypes -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -malignment-traps -msoft-float -D__KERNEL__ -DTEXT_BASE=0x11080000 -I/home/tbird/work/innovator/u-boot-1.1.2/include
-fno-builtin -ffreestanding -nostdinc -isystem /home/local/arm-sony-linux/devel/bin/../lib/gcc/arm-sony-linux/3.4.3/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -I.. -Bstatic -T
/home/tbird/work/innovator/u-boot-1.1.2/board/omap1510inn/u-boot.lds -Ttext 0x11080000 hello_world.c -o hello_world
/home/local/arm-sony-linux/devel/bin/../lib/gcc/arm-sony-linux/3.4.3/../../../../arm-sony-linux/bin/ld: cannot find cpu/arm925t/start.o
collect2: ld returned 1 exit status
make[1]: *** [hello_world] Error 1
make[1]: Leaving directory `/home/tbird/work/innovator/u-boot-1.1.2/examples'
make: *** [examples] Error 2
-----
=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Electronics
=============================
next reply other threads:[~2005-02-04 1:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-04 1:17 Tim Bird [this message]
2005-02-04 2:59 ` [U-Boot-Users] link error on first compile Yang Yang
2005-02-04 17:40 ` Jon Loeliger
2005-02-04 21:03 ` Wolfgang Denk
2005-02-04 21:47 ` Jon Loeliger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4202CD2D.4060606@am.sony.com \
--to=tim.bird@am.sony.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.