Skip to contentSkip to conversation

make Image fails

parisc-linux Ulrich Strelow 5 participants 5 messages Feb 29, 2000 – Mar 2, 2000

lore
Share & tools
lore
#0 lore raw
Quoted 12 lines · --- [email protected] wrote:
Quoted 1 line · Ulrich Strelow

Building the cvs version 20000227 with defconfig

fails

Quoted 1 line

with unsatified symbol __cmpdi2.

[snip]

Quoted 3 lines

I did not find any reference in the source code.
Grepping through object files as well finds a
reference in arch/parisc/hpux/fs.o and hpux.o.

Quoted 7 lines

__cmpdi2 is one of the `help, help, i don't know how to compile this
arithmetic op' symbols that gcc puts into libgcc1. Let me have a look
and wee what's producing this. It may vary depending on gcc version;
what version of gcc are you using?

I am using gcc version 2.8.1. I must admit that this is a bit old, but it was sufficient until now to build parisc-linux kernels (and SOM executables for HP-UX).

Ulrich
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

#1 lore raw

[parisc-linux] make Image currently fails here too.

My unsatisfied symbols are different, though:

ld: Unsatisfied symbols:
fcacheline (code)
pcacheline (code)

--
Brian S. Julin

#2 lore raw

Re: [parisc-linux] make Image currently fails here too.

=
= My unsatisfied symbols are different, though:
=
= ld: Unsatisfied symbols:
= fcacheline (code)
= pcacheline (code)

That code doesn't get much maintenance these days. The usual cause of failures is that code using headers from the palinux tree which define macros which call functions which aren't part of that boot loader.

	-P
#3 lore raw

Re: [parisc-linux] make Image currently fails here too.

In reply to Brian S. Julin

Brian,

| 
| My unsatisfied symbols are different, though:
| 
| ld: Unsatisfied symbols:
|    fcacheline (code)
|    pcacheline (code)
| 

I ran into this yesterday, and in poking around with Bonsai, I believe that this is because sammy's net/drivers/lasi_82596.c code includes calls to these macros to do the cacheline flushes and purges, but prumpf removed their definitions from include/asm-parisc/cache.h.

KMB
--

+============================================================+
|       Kirk Bresniker    	(916) 748-2393		     |
|       8000 Foothills Blvd                                  |
|       Roseville, CA 95747-5649                             |
|       [email protected]                                    |
#4 lore raw

Re: [parisc-linux] make Image currently fails here too.

In reply to Brian S. Julin
Quoted 5 lines

My unsatisfied symbols are different, though:

ld: Unsatisfied symbols:
fcacheline (code)
pcacheline (code)

That's the (buggy IMHO) Lasi ethernet driver that uses strange custom macros to flush the cache rather than the standard ones. Basically

#define fcacheline(x) dma_cache_wback(&x, 32)
#define pcacheline(x) dma_cache_inv(&x, 32)

_might_ make it compile again.

It alse uses phys_to_virt/virt_to_phys rather than bus_to_virt/virt_to_bus and generally needs to be fixed for the new DMA API soon. If you're happy just using a ramdisk, don't compile it in.

Philipp Rumpf