* [Buildroot] compile error with 'crtstuff.c'
@ 2009-10-02 18:37 Heyendal, Carl
2009-10-05 9:18 ` Asbjoern Laurberg
0 siblings, 1 reply; 4+ messages in thread
From: Heyendal, Carl @ 2009-10-02 18:37 UTC (permalink / raw)
To: buildroot
Hi,
First post.
I'm getting this error when I using Buildroot regarding the cross compiler tools. I searched the archives of this mailing list (nothing) for this problem. I also Googled the net for the problem, lots of hits but there was no definitive fix that I could find.
Attached is my Buildroot config file. Any help would be appreciated. Please, I'm a newbie, be verbose.
thanx
/carl h
.....
[snip]
......
make[2]: Entering directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/fixincludes'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/fixincludes'
make[2]: Entering directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/gcc'
make[2]: Leaving directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/gcc'
Checking multilib configuration for libgcc...
make[2]: Entering directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/arm-linux-uclibc/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/./gcc/xgcc -B/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/./gcc/ -B/home/heyendal/buildroot/output/staging/usr/arm-linux-uclibc/bin/ -B/home/heyendal/buildroot/output/staging/usr/arm-linux-uclibc/lib/ -isystem /home/heyendal/buildroot/output/staging/usr/arm-linux-uclibc/include -isystem /home/heyendal/buildroot/output/staging/usr/arm-linux-uclibc/sys-include -g -Os -O2 -g -Os -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc/. -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc/../include -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc/../libcpp/include -I/home/heyendal/buildroot/output/toolchain/gmp/include -I/home/heyendal/buildroot/output/toolchain/mpfr/include -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc/../libdecnumber -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc/../libdecnumber/dpd -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -I. -I. -I../.././gcc -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/. -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../include -o crtbegin.o -MT crtbegin.o -MD -MP -MF crtbegin.dep \
-c /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c -DCRT_BEGIN
/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c: In function '__do_global_dtors_aux':
/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306: error: '__DTOR_LIST__' undeclared (first use in this function)
/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306: error: (Each undeclared identifier is reported only once
/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306: error: for each function it appears in.)
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/arm-linux-uclibc/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial'
make: *** [/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/.compiled] Error 2
heyendal at carl-desktop:~/buildroot$<mailto:heyendal@carl-desktop:~/buildroot$>
Carl Heyendal
Senior Embedded S/W Designer
Stanley Healthcare Solutions
309 Legget Drive
Ottawa, ON K2K 3A3
Canada
Tel: 613-592-6997 ext. 265
Fax: 613 592-4296
cheyendal at stanleyworks.com<mailto:cheyendal@stanleyworks.com>
www.stanleyhealthcare.com<http://www.stanleyhealthcare.com/>
Same products, same team, with a new Corporate Identity
New! My e-mail address has changed.
This e-mail, including any attached files, is intended only for the person to whom or the entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091002/73781bc7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config
Type: application/octet-stream
Size: 19338 bytes
Desc: config
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091002/73781bc7/attachment-0001.obj>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] compile error with 'crtstuff.c'
2009-10-02 18:37 [Buildroot] compile error with 'crtstuff.c' Heyendal, Carl
@ 2009-10-05 9:18 ` Asbjoern Laurberg
2009-10-05 20:44 ` Heyendal, Carl
0 siblings, 1 reply; 4+ messages in thread
From: Asbjoern Laurberg @ 2009-10-05 9:18 UTC (permalink / raw)
To: buildroot
Heyendal, Carl wrote:
> Hi,
Hi,
> /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c
> -DCRT_BEGIN
> /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:
> In function '__do_global_dtors_aux':
> /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306:
> error: '__DTOR_LIST__' undeclared (first use in this function)
> /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306:
> error: (Each undeclared identifier is reported only once
> /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306:
> error: for each function it appears in.)
To get GCC compiling in Buildroot with a ARM926 + EABI-configuration the
following post+patch was the solution:
http://www.mail-archive.com/gcc-bugs at gcc.gnu.org/msg115966.html
--
Best regards,
Asbjoern Laurberg
Development Engineer
Thrane & Thrane A/S
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] compile error with 'crtstuff.c'
2009-10-05 9:18 ` Asbjoern Laurberg
@ 2009-10-05 20:44 ` Heyendal, Carl
0 siblings, 0 replies; 4+ messages in thread
From: Heyendal, Carl @ 2009-10-05 20:44 UTC (permalink / raw)
To: buildroot
Hi Asbjoern,
I have another problem that may be related to the patch you gave me.
At the link you gave me there is an ominous warning that this patch may break something elsewhere in the build.
"The patch itself is definitely wrong though (breaks other arches) - it's
probably a matter of adding the right #include somewhere (not familiar with gcc
internals to figure out what exactly should be done)."
Do you know how to get around the new problem below?
/carl h.
------------------
make[1]: Entering directory `/home/heyendal/buildroot/output/toolchain/uClibc-0.9.30.1'
install -d /home/heyendal/buildroot/output/target/lib
install -m 644 lib/lib*-0.9.30.1.so \
/home/heyendal/buildroot/output/target/lib
cd lib && tar -cf - *.so.* | tar -xf - -C /home/heyendal/buildroot/output/target/lib
make[1]: Leaving directory `/home/heyendal/buildroot/output/toolchain/uClibc-0.9.30.1'
touch -c /home/heyendal/buildroot/output/target/lib/libc.so.0
mkdir -p /home/heyendal/buildroot/output/toolchain/gcc-4.3.4-final
# Important! Required for limits.h to be fixed.
ln -snf ../include/ /home/heyendal/buildroot/output/staging/usr/arm-linux-uclibcgnueabi/sys-include
ln: creating symbolic link `/home/heyendal/buildroot/output/staging/usr/arm-linux-uclibcgnueabi/sys-include': No such file or directory
make: *** [/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-final/.configured] Error 1
heyendal at carl-desktop:~/buildroot$
-----Original Message-----
From: Heyendal, Carl
Sent: Monday, October 05, 2009 4:30 PM
To: 'Asbjoern Laurberg'
Subject: RE: [Buildroot] compile error with 'crtstuff.c'
Hello Asbjoern,
Thanks for the patch. I can proceed with the build now.
/carl
-----Original Message-----
From: buildroot-bounces@busybox.net [mailto:buildroot-bounces at busybox.net] On Behalf Of Asbjoern Laurberg
Sent: Monday, October 05, 2009 5:18 AM
To: buildroot at busybox.net
Subject: Re: [Buildroot] compile error with 'crtstuff.c'
Heyendal, Carl wrote:
> Hi,
Hi,
> /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crts
> tuff.c
> -DCRT_BEGIN
> /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:
> In function '__do_global_dtors_aux':
> /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306:
> error: '__DTOR_LIST__' undeclared (first use in this function)
> /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306:
> error: (Each undeclared identifier is reported only once
> /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306:
> error: for each function it appears in.)
To get GCC compiling in Buildroot with a ARM926 + EABI-configuration the following post+patch was the solution:
http://www.mail-archive.com/gcc-bugs at gcc.gnu.org/msg115966.html
--
Best regards,
Asbjoern Laurberg
Development Engineer
Thrane & Thrane A/S
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] compile error with 'crtstuff.c'
@ 2009-10-02 20:20 Heyendal, Carl
0 siblings, 0 replies; 4+ messages in thread
From: Heyendal, Carl @ 2009-10-02 20:20 UTC (permalink / raw)
To: buildroot
Hi,
I'm getting this error below when I'm using Buildroot regarding the cross compiler tools. I searched the net for references to the same problem, lots of hits but there was no definitive solution that I could find.
Attached is my Buildroot config file. Any help would be appreciated. Please, I'm a newbie, be verbose.
thanx
/carl h
.....
[snip]
......
make[2]: Entering directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/fixincludes'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/fixincludes'
make[2]: Entering directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/gcc'
make[2]: Leaving directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/gcc'
Checking multilib configuration for libgcc...
make[2]: Entering directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/arm-linux-uclibc/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/./gcc/xgcc -B/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/./gcc/ -B/home/heyendal/buildroot/output/staging/usr/arm-linux-uclibc/bin/ -B/home/heyendal/buildroot/output/staging/usr/arm-linux-uclibc/lib/ -isystem /home/heyendal/buildroot/output/staging/usr/arm-linux-uclibc/include -isystem /home/heyendal/buildroot/output/staging/usr/arm-linux-uclibc/sys-include -g -Os -O2 -g -Os -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc/. -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc/../include -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc/../libcpp/include -I/home/heyendal/buildroot/output/toolchain/gmp/include -I/home/heyendal/buildroot/output/toolchain/mpfr/include -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc/../libdecnumber -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/gcc/../libdecnumber/dpd -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -I. -I. -I../.././gcc -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/. -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc -I/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../include -o crtbegin.o -MT crtbegin.o -MD -MP -MF crtbegin.dep \
-c /home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c -DCRT_BEGIN
/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c: In function '__do_global_dtors_aux':
/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306: error: '__DTOR_LIST__' undeclared (first use in this function)
/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306: error: (Each undeclared identifier is reported only once
/home/heyendal/buildroot/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306: error: for each function it appears in.)
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/arm-linux-uclibc/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial'
make: *** [/home/heyendal/buildroot/output/toolchain/gcc-4.3.4-initial/.compiled] Error 2
heyendal at carl-desktop:~/buildroot$<mailto:heyendal@carl-desktop:~/buildroot$>
Carl Heyendal
Senior Embedded S/W Designer
Stanley Healthcare Solutions
309 Legget Drive
Ottawa, ON K2K 3A3
Canada
Tel: 613-592-6997 ext. 265
Fax: 613 592-4296
cheyendal at stanleyworks.com<mailto:cheyendal@stanleyworks.com>
www.stanleyhealthcare.com<http://www.stanleyhealthcare.com/>
Same products, same team, with a new Corporate Identity
New! My e-mail address has changed.
This e-mail, including any attached files, is intended only for the person to whom or the entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091002/fb0eeff0/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config
Type: application/octet-stream
Size: 19338 bytes
Desc: config
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091002/fb0eeff0/attachment-0001.obj>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-05 20:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-02 18:37 [Buildroot] compile error with 'crtstuff.c' Heyendal, Carl
2009-10-05 9:18 ` Asbjoern Laurberg
2009-10-05 20:44 ` Heyendal, Carl
-- strict thread matches above, loose matches on Subject: below --
2009-10-02 20:20 Heyendal, Carl
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.