[#5738] Linux Blackfin arch is missing __cmpdi2

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

[#5738] Linux Blackfin arch is missing __cmpdi2

Submitted By: Mike Frysinger

Open Date

2009-12-03 18:19:25     Close Date

2010-01-19 01:20:38

Priority:

Medium     Assignee:

Bernd Schmidt

Jie Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc-4.1 trunk 3760

App binary format:

N/A     

Summary: Linux Blackfin arch is missing __cmpdi2

Details:

 

to reproduce:

- make BF537-STAMP_defconfig

- enable FSCACHE and SLOW_WORK_DEBUG

- build

 

....

kernel/built-in.o: In function `slow_work_runqueue_index':

kernel/slow-work-debugfs.c:117: undefined reference to `__cmpdi2'

kernel/slow-work-debugfs.c:117: undefined reference to `__cmpdi2'

kernel/slow-work-debugfs.c:117: undefined reference to `__cmpdi2'

make: *** [.tmp_vmlinux1] Error 1

 

most other arches are including this gcc symbol already

 

Follow-ups

 

--- Bernd Schmidt                                            2009-12-03 20:24:21

This isn't happening here, and it really shouldn't happen - gcc knows how to

perform a 64 bit comparison in 32 bit pieces.

 

Please make sure you're using an unmodified compiler, and attach a preprocessed

file that can be compiled to contain calls to __cmpdi2.

 

--- Mike Frysinger                                           2009-12-03 20:48:42

it's with gcc-4.1.  gcc-4.3 seems to work correctly.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

slow-work-debugfs.i    application/octet-stream    298562    Mike Frysinger

Attachments

Outcomes