[#6087] tests gcc.dg/glibc-uclibc-1.c and gcc.dg/glibc-uclibc-2.c fail with bfin-linux-uclibc

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6087] tests gcc.dg/glibc-uclibc-1.c and gcc.dg/glibc-uclibc-2.c fail with bfin-linux-uclibc

Submitted By: Vivi Li

Open Date

2010-07-01 07:20:06     Close Date

2011-04-27 23:15:05

Priority:

Medium     Assignee:

Mingquan Pan

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Under Debugging     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

N/A

Is this bug repeatable?:

N/A     

Summary: tests gcc.dg/glibc-uclibc-1.c and gcc.dg/glibc-uclibc-2.c fail with bfin-linux-uclibc

Details:

 

tests gcc.dg/glibc-uclibc-1.c and gcc.dg/glibc-uclibc-2.c fail with bfin-linux-uclibc only.

 

This is not a regression bug.

 

--

FAIL: gcc.dg/glibc-uclibc-1.c  (test for warnings, line )

FAIL: gcc.dg/glibc-uclibc-1.c (test for excess errors)

FAIL: gcc.dg/glibc-uclibc-2.c  (test for warnings, line )

FAIL: gcc.dg/glibc-uclibc-2.c (test for excess errors)

--

 

Bellow is the log:

--

Executing on host: bfin-linux-uclibc-gcc /home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/gcc.dg/glibc-uclibc-1.c   -mglibc -muclibc -DSTACK_SIZE=0x1f000 -DNO_TRAMPOLINES -fno-show-column   -lm  -mcpu=bf548-0.2 -o glibc-uclibc-1.exe    (timeout = 300)

 

/home/test/work/cruise/temp/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/lib/crt1.o: In function `__start':^M

libc/sysdeps/linux/bfin/crt1.S:141: undefined reference to `_main'^M

collect2: ld returned 1 exit status^M

compiler exited with status 1

 

FAIL: gcc.dg/glibc-uclibc-1.c  (test for warnings, line )

FAIL: gcc.dg/glibc-uclibc-1.c (test for excess errors)

--

 

--

Executing on host: bfin-linux-uclibc-gcc /home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/gcc.dg/glibc-uclibc-2.c   -muclibc -mglibc -DSTACK_SIZE=0x1f000 -DNO_TRAMPOLINES -fno-show-column   -lm  -mcpu=bf548-0.2 -o glibc-uclibc-2.exe    (timeout = 300)

 

/home/test/work/cruise/temp/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/lib/crt1.o: In function `__start':^M

libc/sysdeps/linux/bfin/crt1.S:141: undefined reference to `_main'^M

collect2: ld returned 1 exit status^M

compiler exited with status 1

 

FAIL: gcc.dg/glibc-uclibc-2.c  (test for warnings, line )

FAIL: gcc.dg/glibc-uclibc-2.c (test for excess errors)

--

 

Follow-ups

 

--- Robin Getz                                               2010-07-07 13:03:58

Dave:

 

Please state _why_ the priority was changed.

 

Decreasing the priority is fine - but we need to understand (and agree) with

the reason.

 

Thanks

-Robin

 

--- Stuart Henderson                                         2011-04-25 09:18:41

The problem here is that we don't throw an error when -muclibc and -mglibc are

used together, because we don't have a CHOOSE_DYNAMIC_LINKER macro (since we

always use uclibc).

 

For some reason upstream has decided that this isn't desired behaviour anyway;

with the introduction of support for bionic libc the error was removed.  Which

seems odd/wrong to me.

 

However, the fix is simple enough to warrant just doing anyway.

 

New behaviour (to ensure compatibility with the testsuite) will be:

-muclibc & -mglibc: error: they can't be used together

-mglibc: error: it's not supported

nothing or -muclibc: use /lib/ld-uClibc.so.0

 

--- Stuart Henderson                                         2011-04-26 07:35:21

checked in to trunk.  r5397.

 

--- Sonic Zhang                                              2011-04-27 00:39:46

Add Grace to validate.

 

--- Mingquan Pan                                             2011-04-27 23:15:05

Yes, the cases pass now.

 

PASS: gcc.dg/glibc-uclibc-1.c  (test for warnings, line )

PASS: gcc.dg/glibc-uclibc-1.c (test for excess errors)

PASS: gcc.dg/glibc-uclibc-2.c  (test for warnings, line )

PASS: gcc.dg/glibc-uclibc-2.c (test for excess errors)

...

 

detailed log:

Executing on host: bfin-linux-uclibc-gcc

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/gcc.dg/glibc-uclibc-1.c

  -mglibc -muclibc -DSTACK_SIZE=0x1f000 -DNO_TRAMPOLINES -fno-show-column  -lm

-mcpu=bf548-0.2  -o glibc-uclibc-1.exe    (timeout = 300)

spawn bfin-linux-uclibc-gcc

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/gcc.dg/glibc-uclibc-1.c

-mglibc -muclibc -DSTACK_SIZE=0x1f000 -DNO_TRAMPOLINES -fno-show-column -lm

-mcpu=bf548-0.2 -o glibc-uclibc-1.exe^M

bfin-linux-uclibc-gcc: -mglibc and -muclibc used together^M

compiler exited with status 1

output is:

bfin-linux-uclibc-gcc: -mglibc and -muclibc used together^M

 

PASS: gcc.dg/glibc-uclibc-1.c  (test for warnings, line )

PASS: gcc.dg/glibc-uclibc-1.c (test for excess errors)

Executing on host: bfin-linux-uclibc-gcc

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/gcc.dg/glibc-uclibc-2.c

  -muclibc -mglibc -DSTACK_SIZE=0x1f000 -DNO_TRAMPOLINES -fno-show-column  -lm

-mcpu=bf548-0.2  -o glibc-uclibc-2.exe    (timeout = 300)

spawn bfin-linux-uclibc-gcc

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/gcc.dg/glibc-uclibc-2.c

-muclibc -mglibc -DSTACK_SIZE=0x1f000 -DNO_TRAMPOLINES -fno-show-column -lm

-mcpu=bf548-0.2 -o glibc-uclibc-2.exe^M

bfin-linux-uclibc-gcc: -mglibc and -muclibc used together^M

compiler exited with status 1

output is:

bfin-linux-uclibc-gcc: -mglibc and -muclibc used together^M

 

PASS: gcc.dg/glibc-uclibc-2.c  (test for warnings, line )

PASS: gcc.dg/glibc-uclibc-2.c (test for excess errors)

 

Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes