This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/16704] New: toolchain building for x86_64 x32 fails on Debian 7
- From: "wbx at openadk dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 14 Mar 2014 10:58:29 +0000
- Subject: [Bug build/16704] New: toolchain building for x86_64 x32 fails on Debian 7
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16704
Bug ID: 16704
Summary: toolchain building for x86_64 x32 fails on Debian 7
Product: glibc
Version: 2.19
Status: NEW
Severity: minor
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: wbx at openadk dot org
CC: carlos at redhat dot com
Hi Developers,
while creating a cross-compiler for x86_64 with x32 ABI I encountered a small
issue regarding the usage of echo.
In sysdeps/unix/make-syscalls.sh following line is used:
296 echo 'asm (\".globl __GI_${strong}\\n\"'; \\
----
$ dash -c "echo '\\n'"
$ bash -c "echo '\\n'"
\n
$ mksh -c "echo '\\n'"
____
Debian uses a symlink /bin/sh -> /bin/dash. After changing it to
/bin/sh -> /bin/bash the toolchain build completes without errors.
I am not sure how to make it portable. Should printf be used?
The \n for echo seems not standardized.
http://pubs.opengroup.org/onlinepubs/009695399/utilities/echo.html
"It is not possible to use echo portably across all POSIX systems unless both
-n (as the first argument) and escape sequences are omitted."
thanks
Waldemar
--
You are receiving this mail because:
You are on the CC list for the bug.