Skip to contentSkip to conversation

build failure mbstate_t not declared

Buildroot Joseph G. Boike 2 participants 6 messages Jul 10, 2008 – Jul 11, 2008

lore
Share & tools
lore
#0 lore raw

Hi,
I checked out the latest buildroot and tried to build it but keep getting errors regarding mbstate_t not being declared. Here's a section of the output (there are many more lines with the same error, but I wanted to keep the post short.)
Any suggestions?
Regards,
Joe

/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/./gcc/xgcc -B/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/./gcc/
-B/usr/arm-linux-uclibc/bin/ -B/usr/arm-linux-uclibc/lib/ -isystem
/usr/arm-linux-uclibc/include -isystem /usr/arm-linux-uclibc/sys-include
-DHAVE_CONFIG_H -I.
-I/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1/libssp -I. -Wall
-g -Os -MT sprintf-chk.lo -MD -MP -MF .deps/sprintf-chk.Tpo -c /home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1/libssp/sprintf-chk.c
-o sprintf-chk.o >/dev/null 2>&1
if /bin/sh ./libtool --mode=compile /home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/./gcc/xgcc -B/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/./gcc/
-B/usr/arm-linux-uclibc/bin/ -B/usr/arm-linux-uclibc/lib/ -isystem
/usr/arm-linux-uclibc/include -isystem /usr/arm-linux-uclibc/sys-include
-DHAVE_CONFIG_H -I.
-I/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1/libssp -I.
-Wall -g -Os -MT stpcpy-chk.lo -MD -MP -MF ".deps/stpcpy-chk.Tpo" -c -o
stpcpy-chk.lo
/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1/libssp/stpcpy-chk.c; \
then mv -f ".deps/stpcpy-chk.Tpo" ".deps/stpcpy-chk.Plo"; else rm -f
".deps/stpcpy-chk.Tpo"; exit 1; fi
if /bin/sh ./libtool --mode=compile /home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/./gcc/xgcc -B/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/./gcc/
-B/usr/arm-linux-uclibc/bin/ -B/usr/arm-linux-uclibc/lib/ -isystem
/usr/arm-linux-uclibc/include -isystem /usr/arm-linux-uclibc/sys-include
-DHAVE_CONFIG_H -I.
-I/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1/libssp -I.
-Wall -g -Os -MT strcat-chk.lo -MD -MP -MF ".deps/strcat-chk.Tpo" -c -o
strcat-chk.lo
/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1/libssp/strcat-chk.c; \
then mv -f ".deps/strcat-chk.Tpo" ".deps/strcat-chk.Plo"; else rm -f
".deps/strcat-chk.Tpo"; exit 1; fi
In file included from /home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/bits/postypes.h:46,
from
/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/iosfwd:49,
from
/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/bits/stl_algobase.h:70,
from
/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/algorithm:65,
from
/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1/libstdc++-v3/include/precompiled/stdc++.h:55:
/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/cwchar:72:
error: '::mbstate_t' has not been declared
In file included from /home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/iosfwd:49,
from
/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/bits/stl_algobase.h:70,
from
/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/algorithm:65,
from
/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1/libstdc++-v3/include/precompiled/stdc++.h:55:
/home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/bits/postypes.h:211:
error: 'mbstate_t' was not declared in this scope /home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/bits/postypes.h:211:
error: template argument 1 is invalid /home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/bits/postypes.h:211:
error: invalid type in declaration before ';' token /home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/bits/postypes.h:213:
error: 'mbstate_t' was not declared in this scope /home/lorenzo/buildroot/toolchain_build_arm/gcc-4.2.1-final/arm-linux-uclibc/libstdc++-v3/include/bits/postypes.h:213:
error: template argument 1 is invalid

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joseph G. Boike skrev:

| Hi,
| I checked out the latest buildroot and tried to build it but keep
| getting errors regarding mbstate_t not being declared.
| Here's a section of the output (there are many more lines with the same
| error, but I wanted to keep the post short.)
| Any suggestions?

Try building an existing board which is known to work.

$ make at91sam9260dfc_defconfig
$ make

BR
Ulf Samuelsson.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIdoCTAyRRH5cXxqwRAgMtAKCuPTXcUEcKMhemlv94qQC7P3ubTACfd2xo Bk5agvqg6UaAf/3Fj2D34wQ=
=po97
-----END PGP SIGNATURE-----

#2 lore raw
Quoted 19 lines · Ulf Samuelsson

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joseph G. Boike skrev:

| Hi,
| I checked out the latest buildroot and tried to build it but keep
| getting errors regarding mbstate_t not being declared.
| Here's a section of the output (there are many more lines with the same
| error, but I wanted to keep the post short.)
| Any suggestions?

Try building an existing board which is known to work.

$ make at91sam9260dfc_defconfig
$ make

BR
Ulf Samuelsson.

Quoted 8 lines

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIdoCTAyRRH5cXxqwRAgMtAKCuPTXcUEcKMhemlv94qQC7P3ubTACfd2xo Bk5agvqg6UaAf/3Fj2D34wQ=
=po97
-----END PGP SIGNATURE-----

Did make at91sam9260dfc_defconfig w/ the default setting everywhere except I chose 2.6.26 kernel and I still see the same results. Regards,
Joe

#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joseph G. Boike skrev:

| Ulf Samuelsson wrote:
| Joseph G. Boike skrev:
| | Hi,
| | I checked out the latest buildroot and tried to build it but keep
| | getting errors regarding mbstate_t not being declared.
| | Here's a section of the output (there are many more lines with the same
| | error, but I wanted to keep the post short.)
| | Any suggestions?
|
| Try building an existing board which is known to work.
|
| $ make at91sam9260dfc_defconfig
| $ make
|
| BR
| Ulf Samuelsson.
|
| Did make at91sam9260dfc_defconfig w/ the default setting everywhere
| except I chose 2.6.26 kernel and I still see the same results.

google -> mbstate_t is defined in wchar.h which gets included if you enable WCHAR.
You are sure you did not disable this in buildroot?

BR
Ulf Samuelsson

| Regards,
| Joe

| _______________________________________________
| buildroot mailing list
| buildroot at uclibc.org
| http://busybox.net/mailman/listinfo/buildroot

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIdufQAyRRH5cXxqwRAiBFAJ9ZSQTw29WCBi2KM924Rhgrim/z/wCggG7r gA9MQ4KOcQ+xBN543QlrpK4=
=yre7
-----END PGP SIGNATURE-----

#4 lore raw
Quoted 41 lines · Ulf Samuelsson

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joseph G. Boike skrev:

| Ulf Samuelsson wrote:
| Joseph G. Boike skrev:
| | Hi,
| | I checked out the latest buildroot and tried to build it but keep
| | getting errors regarding mbstate_t not being declared.
| | Here's a section of the output (there are many more lines with the 
same
| | error, but I wanted to keep the post short.)
| | Any suggestions?
|
| Try building an existing board which is known to work.
|
| $ make at91sam9260dfc_defconfig
| $ make
|
| BR
| Ulf Samuelsson.
|
| Did make at91sam9260dfc_defconfig w/ the default setting everywhere
| except I chose 2.6.26 kernel and I still see the same results.

google -> mbstate_t is defined in wchar.h which gets included if you enable WCHAR.
You are sure you did not disable this in buildroot?

BR
Ulf Samuelsson

| Regards,
| Joe

| _______________________________________________
| buildroot mailing list
| buildroot at uclibc.org
| http://busybox.net/mailman/listinfo/buildroot
Quoted 8 lines

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIdufQAyRRH5cXxqwRAiBFAJ9ZSQTw29WCBi2KM924Rhgrim/z/wCggG7r gA9MQ4KOcQ+xBN543QlrpK4=
=yre7
-----END PGP SIGNATURE-----

In my earlier build (rev 22508) yes I had it disabled.
But last night when I ran the "make at91...defconfig" (after doing "make distclean") it set BR2_USE_WCHAR=y
Does "make distclean" clear the previous toolchain?
Joe

#5 lore raw
In reply to Ulf Samuelsson
Quoted 41 lines · Ulf Samuelsson

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joseph G. Boike skrev:

| Ulf Samuelsson wrote:
| Joseph G. Boike skrev:
| | Hi,
| | I checked out the latest buildroot and tried to build it but keep
| | getting errors regarding mbstate_t not being declared.
| | Here's a section of the output (there are many more lines with the 
same
| | error, but I wanted to keep the post short.)
| | Any suggestions?
|
| Try building an existing board which is known to work.
|
| $ make at91sam9260dfc_defconfig
| $ make
|
| BR
| Ulf Samuelsson.
|
| Did make at91sam9260dfc_defconfig w/ the default setting everywhere
| except I chose 2.6.26 kernel and I still see the same results.

google -> mbstate_t is defined in wchar.h which gets included if you enable WCHAR.
You are sure you did not disable this in buildroot?

BR
Ulf Samuelsson

| Regards,
| Joe

| _______________________________________________
| buildroot mailing list
| buildroot at uclibc.org
| http://busybox.net/mailman/listinfo/buildroot
Quoted 8 lines

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIdufQAyRRH5cXxqwRAiBFAJ9ZSQTw29WCBi2KM924Rhgrim/z/wCggG7r gA9MQ4KOcQ+xBN543QlrpK4=
=yre7
-----END PGP SIGNATURE-----

Ok, I deleted everything under toolchain_build_arm and tried to make the at91sam9260dfc_defconfig again with 2.6.26 kernel.
I got an immediate failure that ftp://...2.6.26.tar.bz2 not found. (See snippet below)
So I selected latest stable kernel (2.6.25.10) and ran make again. This time had success!
So moral is "make distclean" doesn't effect the toolchain and they need to be removed manually.
Thanks,
Joe

wget --passive-ftp -nd -P /usr/local/install/downloads
http://ftp.kernel.org/pub/linux/kernel/v2.6//linux-2.6.26.tar.bz2
--15:49:12--
http://ftp.kernel.org/pub/linux/kernel/v2.6//linux-2.6.26.tar.bz2

           => `/usr/local/install/downloads/linux-2.6.26.tar.bz2'

Resolving ftp.kernel.org... 204.152.191.37, 204.152.191.5 Connecting to ftp.kernel.org|204.152.191.37|:80... connected. HTTP request sent, awaiting response... 404 Not Found 15:49:12 ERROR 404: Not Found.