public inbox for overseers@sourceware.org
 help / color / mirror / Atom feed
* Please restore my account
@ 2016-10-18  8:03 Nam-goo Lee
  0 siblings, 0 replies; only message in thread
From: Nam-goo Lee @ 2016-10-18  8:03 UTC (permalink / raw)
  To: overseers

Hi

Today, I tried to file a bug to the bugzilla site.
After pressing the submit button, it wasn't registered and my account
was suddenly disabled.
I think your system regarded my bug report as a spam message.
I guess writing a bunch of '='s to visually separate error messages
made my report a bug.
I'm attaching the content of my bug report.
In the middle of the attachment there I mentioned the places where I
put the '='s
by saying (I added bunch of '='s here).
I hope you guys could restore my account.

Sincerely,
Nam-goo Lee


The content of my bug report is:

Hi

I'm trying to cross-compile glibc for the arm target machine. I
succeeded cross-compiling by setting the CC environment variable to
arm-linux-gnueabi-gcc, and giving --host option to configure, as
follows:

1) export CC=arm-linux-gnueabi-gcc
2) CC=$CC ../glibc/configure --prefix=[some_directory_path]
--host=arm-linux-gnueabi --with-headers=/usr/arm-linux-gnueabi/include
3) make

Nextly, I tried to give some options to CFLAGS to give the compiler
some chance to produce more efficient codes. Strangely, after adding
-march=armv7-a option to CFLAGS environment variable, the build
routine fails when trying to compile a file under the directory
sysdeps/arm/armv6.

This is how to reproduce my bug.

* Build environment
- OS : Ubuntu 16.04
- Kernel : 4.4.0-43-generic
- compiler : arm-linux-gnueabi-gcc (Ubuntu/Linaro
5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609

1) export CC=arm-linux-gnueabi-gcc
2) export CFLAGS="-g -O2 -march=armv7-a"
3) CC=$CC ../glibc/configure --prefix=[some_directory_path]
--host=arm-linux-gnueabi --with-headers=/usr/arm-linux-gnueabi/include
4) make

This is the make output:
(I added bunch of '='s here)
arm-linux-gnueabi-gcc ../sysdeps/arm/armv6/strchr.S -c
-U_FORTIFY_SOURCE   -I../include
-I/home/nglee/Workspace/glibc-build-arm-cflags2/string
-I/home/nglee/Workspace/glibc-build-arm-cflags2
-I../sysdeps/unix/sysv/linux/arm  -I../sysdeps/arm/nptl
-I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux
-I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu
-I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/arm
-I../sysdeps/unix  -I../sysdeps/posix
-I../sysdeps/arm/armv7/multiarch  -I../sysdeps/arm/armv7
-I../sysdeps/arm/armv6t2  -I../sysdeps/arm/armv6
-I../sysdeps/arm/include -I../sysdeps/arm  -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I.
-nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabi/5/include
-isystem /usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed -isystem
/usr/arm-linux-gnueabi/include  -D_LIBC_REENTRANT -include
/home/nglee/Workspace/glibc-build-arm-cflags2/libc-modules.h
-DMODULE_NAME=libc -include ../include/libc-symbols.h
-DASSEMBLER  -g -Werror=undef -Wa,--noexecstack   -o
/home/nglee/Workspace/glibc-build-arm-cflags2/string/strchr.o -MD -MP
-MF /home/nglee/Workspace/glibc-build-arm-cflags2/string/strchr.o.dt
-MT /home/nglee/Workspace/glibc-build-arm-cflags2/string/strchr.o
../sysdeps/arm/armv6/strchr.S: Assembler messages:
../sysdeps/arm/armv6/strchr.S:30: Error: selected processor does not
support `uxtb r1,r1' in ARM mode
../sysdeps/arm/armv6/strchr.S:70: Error: selected processor does not
support `ldrd r2,r3,[r0],#8' in ARM mode
../sysdeps/arm/armv6/strchr.S:79: Error: selected processor does not
support `pld [r0,#64]' in ARM mode
../sysdeps/arm/armv6/strchr.S:88: Error: selected processor does not
support `uqsub8 r4,ip,r2' in ARM mode
../sysdeps/arm/armv6/strchr.S:90: Error: selected processor does not
support `uqsub8 r5,ip,r3' in ARM mode
../sysdeps/arm/armv6/strchr.S:92: Error: selected processor does not
support `uqsub8 r6,ip,r6' in ARM mode
../sysdeps/arm/armv6/strchr.S:93: Error: selected processor does not
support `pld [r0,#128]' in ARM mode
../sysdeps/arm/armv6/strchr.S:94: Error: selected processor does not
support `uqsub8 r7,ip,r7' in ARM mode
../sysdeps/arm/armv6/strchr.S:99: Error: selected processor does not
support `ldrdeq r2,r3,[r0],#8' in ARM mode
../sysdeps/arm/armv6/strchr.S:117: Error: selected processor does not
support `rev r4,r4' in ARM mode
../sysdeps/arm/armv6/strchr.S:126: Error: selected processor does not
support `uxtb r1,r1' in ARM mode
../sysdeps/arm/armv6/strchr.S:127: Error: selected processor does not
support `uxtb r2,r2' in ARM mode
/home/nglee/Workspace/glibc-build-arm-cflags2/sysd-rules:483: recipe
for target '/home/nglee/Workspace/glibc-build-arm-cflags2/string/strchr.o'
failed
(I added bunch of '='s here)

Next I tried to cross-compile with different -march option.

export CFLAGS="-g -O2 -march=armv6"

It also produced some similar error:
(I added bunch of '='s here)
arm-linux-gnueabi-gcc ../sysdeps/arm/armv6/strchr.S -c
-U_FORTIFY_SOURCE   -I../include
-I/home/nglee/Workspace/glibc-build-arm-cflags1/string
-I/home/nglee/Workspace/glibc-build-arm-cflags1
-I../sysdeps/unix/sysv/linux/arm  -I../sysdeps/arm/nptl
-I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux
-I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu
-I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/arm
-I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/arm/armv6
-I../sysdeps/arm/include -I../sysdeps/arm  -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I.
-nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabi/5/include
-isystem /usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed -isystem
/usr/arm-linux-gnueabi/include  -D_LIBC_REENTRANT -include
/home/nglee/Workspace/glibc-build-arm-cflags1/libc-modules.h
-DMODULE_NAME=libc -include ../include/libc-symbols.h
-DASSEMBLER  -g -Werror=undef -Wa,--noexecstack   -o
/home/nglee/Workspace/glibc-build-arm-cflags1/string/strchr.o -MD -MP
-MF /home/nglee/Workspace/glibc-build-arm-cflags1/string/strchr.o.dt
-MT /home/nglee/Workspace/glibc-build-arm-cflags1/string/strchr.o

../sysdeps/arm/armv6/strchr.S: Assembler messages:
../sysdeps/arm/armv6/strchr.S:30: Error: selected processor does not
support `uxtb r1,r1' in ARM mode
../sysdeps/arm/armv6/strchr.S:70: Error: selected processor does not
support `ldrd r2,r3,[r0],#8' in ARM mode
../sysdeps/arm/armv6/strchr.S:79: Error: selected processor does not
support `pld [r0,#64]' in ARM mode
../sysdeps/arm/armv6/strchr.S:88: Error: selected processor does not
support `uqsub8 r4,ip,r2' in ARM mode
../sysdeps/arm/armv6/strchr.S:90: Error: selected processor does not
support `uqsub8 r5,ip,r3' in ARM mode
../sysdeps/arm/armv6/strchr.S:92: Error: selected processor does not
support `uqsub8 r6,ip,r6' in ARM mode
../sysdeps/arm/armv6/strchr.S:93: Error: selected processor does not
support `pld [r0,#128]' in ARM mode
../sysdeps/arm/armv6/strchr.S:94: Error: selected processor does not
support `uqsub8 r7,ip,r7' in ARM mode
../sysdeps/arm/armv6/strchr.S:99: Error: selected processor does not
support `ldrdeq r2,r3,[r0],#8' in ARM mode
../sysdeps/arm/armv6/strchr.S:117: Error: selected processor does not
support `rev r4,r4' in ARM mode
../sysdeps/arm/armv6/strchr.S:126: Error: selected processor does not
support `uxtb r1,r1' in ARM mode
../sysdeps/arm/armv6/strchr.S:127: Error: selected processor does not
support `uxtb r2,r2' in ARM mode
/home/nglee/Workspace/glibc-build-arm-cflags1/sysd-rules:381: recipe
for target '/home/nglee/Workspace/glibc-build-arm-cflags1/string/strchr.o'
failed
(I added bunch of '='s here)

Since sysdeps/arm/armv6/strchr.S does not define NO_THUMB macro before
#include <sysdep.h>, the ARM directive ".thumb" is added instead of
".arm". You can check this behavior at lines 139~145 of
sysdeps/arm/sysdep.h. So I assume assembly in
sysdeps/arm/armv6/strchr.S should be compiled in thumb mode, but the
error message seems that the compiler tries to compile in arm mode.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-18  8:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-18  8:03 Please restore my account Nam-goo Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).