Skip to contentSkip to conversation

New: binutils-2.23.2/gas fails with undefined reference to `mbstowcs'

Buildroot bugzilla at busybox.net 1 participant 6 messages Apr 25, 2013 – Aug 18, 2014

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=6218

Summary: binutils-2.23.2/gas fails with undefined reference to
`mbstowcs'
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: a.nielsen at shikadi.net
CC: buildroot at uclibc.org
Estimated Hours: 0.0

I am building for arm7tdmi using the git version of buildroot, with binutils-2.23.2, but it fails:

libtool: link: [...] -o as-new [...]
read.o: In function `read_symbol_name':
read.c:(.text+0x3634): undefined reference to `mbstowcs'
collect2: error: ld returned 1 exit status
make[5]: *** [as-new] Error 1
make[5]: Leaving directory `buildroot/build/binutils-2.23.2/gas' make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `buildroot/build/binutils-2.23.2/gas' make[3]: *** [all] Error 2
make[3]: Leaving directory `buildroot/build/binutils-2.23.2/gas' make[2]: *** [all-gas] Error 2
make[2]: Leaving directory `buildroot/build/binutils-2.23.2' make[1]: *** [all] Error 2
make[1]: Leaving directory `buildroot/build/binutils-2.23.2'

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 6218] binutils-2.23.2/gas fails with undefined reference to `mbstowcs'

https://bugs.busybox.net/show_bug.cgi?id=6218

--- Comment #1 from Thomas Petazzoni <[email protected]> 2013-04-25 13:36:58 UTC --- Does this happen after a complete 'make clean; make' cycle?

If so, could you attach your Buildroot .config file to the bug?

Thanks!

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 6218] binutils-2.23.2/gas fails with undefined reference to `mbstowcs'

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=6218

--- Comment #2 from Thomas Petazzoni <[email protected]> 2013-05-26 13:36:14 UTC --- Adam, do you still have this problem? If so, would you mind answering the
questions asked on April, 25th in this bug report, so that we can investigate?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 6218] binutils-2.23.2/gas fails with undefined reference to `mbstowcs'

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=6218

--- Comment #3 from Thomas De Schampheleire <[email protected]> 2014-02-13 15:02:35 UTC --- I built a toolchain based on current buildroot git (more or less 2014.02-rc1),
for arm7tdmi, using binutils-2.23.2, and did not see any problem.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 6218] binutils-2.23.2/gas fails with undefined reference to `mbstowcs'

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=6218

Thomas De Schampheleire <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #4 from Thomas De Schampheleire <[email protected]> 2014-02-14 11:53:46 UTC --- No response on questions from submitter, and problem not reproducible: this bug
will be closed.

Please reopen if you still experience the same problem, and provide more details.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 6218] binutils-2.23.2/gas fails with undefined reference to `mbstowcs'

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=6218

--- Comment #5 from Alexey Brodkin <[email protected]> 2014-08-18 15:22:57 UTC --- This happens on ARC too when building native binutils.
It's because in uClibc "mbstowcs" is only gets built-in if WCHAR support is enabled.

So proper fix would be to add WCHAR support in toolchain as a dependency for native binutils.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.