All of lore.kernel.org
 help / color / mirror / Atom feed
* Compile error on IA64
@ 2009-09-15 15:34 Allan Willems Joergensen
  2009-09-15 17:54 ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: Allan Willems Joergensen @ 2009-09-15 15:34 UTC (permalink / raw)
  To: fio

Hi,

I'm trying to compile fio on a Linux/IA64 machine; it fails.

# make
     CC gettime.o
     CC fio.o
     CC ioengines.o
     CC init.o
     CC stat.o
     CC log.o
     CC time.o
     CC filesetup.o
     CC eta.o
     CC verify.o
verify.c: In function `verify_async_init':
verify.c:896: warning: implicit declaration of function `write_barrier'
     CC memory.o
     CC io_u.o
     CC parse.o
     CC mutex.o
     CC options.o
     CC rbtree.o
     CC diskutil.o
     CC fifo.o
     CC blktrace.o
     CC smalloc.o
     CC filehash.o
     CC crc/crc7.o
     CC crc/crc16.o
     CC crc/crc32.o
     CC crc/crc32c.o
     CC crc/crc32c-intel.o
     CC crc/crc64.o
     CC crc/sha1.o
     CC crc/sha256.o
     CC crc/sha512.o
     CC crc/md5.o
     CC engines/cpu.o
     CC engines/libaio.o
     CC engines/mmap.o
     CC engines/posixaio.o
     CC engines/sg.o
     CC engines/splice.o
     CC engines/sync.o
     CC engines/null.o
     CC engines/net.o
     CC engines/syslet-rw.o
     CC engines/guasi.o
     DEP depend
     CC fio
verify.o(.text+0x52): In function `verify_async_exit':
/usr/local/src/fio/verify.c:907: undefined reference to `write_barrier'
verify.o(.text+0x7a2): In function `verify_async_init':
/usr/local/src/fio/verify.c:896: undefined reference to `write_barrier'
collect2: ld returned 1 exit status
make: *** [fio] Error 1

# uname -a
Linux xxxxxxxx 2.6.5-7.315-default #1 SMP Wed Nov 26 13:03:18 UTC 2008 
ia64 ia64 ia64 GNU/Linux

# cat /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (ia64)
VERSION = 9
PATCHLEVEL = 3

Any ideas? Am I missing something (devel package, library) or is it a 
platform issue?

tia,

-- 
Med venlig hilsen / Best regards
Allan Willems Joergensen

"The weak die, the strong survive" - Toq


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compile error on IA64
  2009-09-15 15:34 Compile error on IA64 Allan Willems Joergensen
@ 2009-09-15 17:54 ` Jens Axboe
  2009-09-15 18:03   ` Allan Willems Joergensen
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Axboe @ 2009-09-15 17:54 UTC (permalink / raw)
  To: Allan Willems Joergensen; +Cc: fio

On Tue, Sep 15 2009, Allan Willems Joergensen wrote:
> Hi,
>
> I'm trying to compile fio on a Linux/IA64 machine; it fails.

Apparently I'm good at that typo, the below should get you going.


diff --git a/arch/arch-ia64.h b/arch/arch-ia64.h
index 2f92684..a8bb23a 100644
--- a/arch/arch-ia64.h
+++ b/arch/arch-ia64.h
@@ -20,7 +20,7 @@
 
 #define nop		asm volatile ("hint @pause" ::: "memory");
 #define read_barrier()	asm volatile ("mf" ::: "memory")
-#define writebarrier()	asm volatile ("mf" ::: "memory")
+#define write_barrier()	asm volatile ("mf" ::: "memory")
 
 #define ia64_popcnt(x)							\
 ({									\

-- 
Jens Axboe


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: Compile error on IA64
  2009-09-15 17:54 ` Jens Axboe
@ 2009-09-15 18:03   ` Allan Willems Joergensen
  0 siblings, 0 replies; 3+ messages in thread
From: Allan Willems Joergensen @ 2009-09-15 18:03 UTC (permalink / raw)
  To: Jens Axboe; +Cc: fio

On 2009-09-15 19:54, Jens Axboe wrote:

>> I'm trying to compile fio on a Linux/IA64 machine; it fails.
> Apparently I'm good at that typo, the below should get you going.

It worked wonders, thank you.

mvh
-- 
Med venlig hilsen / Best regards
Allan Willems Joergensen

"The weak die, the strong survive" - Toq

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-15 18:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-15 15:34 Compile error on IA64 Allan Willems Joergensen
2009-09-15 17:54 ` Jens Axboe
2009-09-15 18:03   ` Allan Willems Joergensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.