On Mon, May 07, 2001 at 12:03:43AM +0200, Just a friendly Jedi Knight wrote:
>  You mean XFS from Linus kernel tree? there are some patches on
>  penguinppc.org

This is not in Linus's kernel tree. Are you using SGI's 1.0 release?
In any case, that should not affect the compilation of the tools much.

>  Anyway i have trouble compiling mkfs.xfs I tried:
>  gcc version 2.95.4 20010319 (Debian prerelease)
>  gcc version 3.0 20010402 (Debian prerelease) and xfsprogs 1.2.4 Debian
>  source package as well as source taken from penguinppc.org. I always get
>  this:

you should stick to gcc 2.95 for compiling the kernel, and probably the
userspace tools, too.

> gcc -O1 -g -DNDEBUG -funsigned-char -Wall  -I../include '-DVERSION="1.2.4"' 
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DXFS_BIG_FILES=1 
> -DXFS_BIG_FILESYSTEMS=1 -o xfs_db -L../libxfs  addr.o agf.o agfl.o agi.o 
> attr.o attrshort.o bit.o block.o bmap.o bmapbt.o bmroot.o bnobt.o check.o 
> cntbt.o command.o convert.o data.o dbread.o debug.o dir.o dir2.o dir2sf.o 
> dirshort.o dquot.o echo.o faddr.o field.o flist.o fprint.o frag.o freesp.o 
> hash.o help.o init.o inobt.o inode.o input.o io.o malloc.o mount.o output.o 
> print.o quit.o sb.o uuid.o sig.o strvec.o type.o write.o main.o   -lxfs 
> /usr/lib/libuuid.a
> ../libxfs/libxfs.a(xfs_inode.o): In function `libxfs_xlate_dinode_core':
> /opt/src/robert/XFS/xfsprogs-1.2.4/libxfs/xfs_inode.c:563: undefined 
> reference to `__fswab64'
> /opt/src/robert/XFS/xfsprogs-1.2.4/libxfs/xfs_inode.c:563: relocation 
> truncated to fit: R_PPC_REL24 __fswab64
> /opt/src/robert/XFS/xfsprogs-1.2.4/libxfs/xfs_inode.c:563: undefined 
> reference to `__fswab64'
> /opt/src/robert/XFS/xfsprogs-1.2.4/libxfs/xfs_inode.c:563: relocation 
> truncated to fit: R_PPC_REL24 __fswab64
> /opt/src/robert/XFS/xfsprogs-1.2.4/libxfs/xfs_inode.c:564: undefined 
> reference to `__fswab64'
> /opt/src/robert/XFS/xfsprogs-1.2.4/libxfs/xfs_inode.c:564: relocation 
> truncated to fit: R_PPC_REL24 __fswab64
> /opt/src/robert/XFS/xfsprogs-1.2.4/libxfs/xfs_inode.c:564: undefined 
> reference to `__fswab64'
> /opt/src/robert/XFS/xfsprogs-1.2.4/libxfs/xfs_inode.c:564: relocation 
> truncated to fit: R_PPC_REL24 __fswab64
> ../libxfs/libxfs.a(xfs_mount.o): In function `libxfs_xlate_sb':
> /opt/src/robert/XFS/xfsprogs-1.2.4/libxfs/xfs_mount.c:205: undefined 
> reference to `__fswab64'
> /opt/src/robert/XFS/xfsprogs-1.2.4/libxfs/xfs_mount.c:205: relocation 
> truncated to fit: R_PPC_REL24 __fswab64
> collect2: ld returned 1 exit status
> make[2]: *** [xfs_db] Error 1
> make[1]: *** [default] Error 2
> make[1]: Leaving directory `/opt/src/robert/XFS/xfsprogs-1.2.4'
> make: *** [built] Error 2

grepping my xfsprogs tree, I get:
./include/libxfs.h:extern __inline__ __const__ __u64 __fswab64 (__u64 x);

maybe your GCC isn't inlining the function?
note that this declaration has "/* ick */" on the line above it. But I think
the relocation truncated to fit: R_PPC_REL24 __fswab64 messages are important.
I'll leave it to someone more knowledgable about GCC and ELF to comment on
that.

> These are the only errors I get... This must be some bug in gcc on powerpc as
> it compiles cleanly on i386 (and from looking on ftp.debian.org on other
> platforms also). I don't even have idea how to bite this...

I'm only on x86 here, so all I can say is "yeah" :)

-- 
-> -/-                       - Rahul Jain -                       -\- <-
-> -\- http://linux.rice.edu/~rahul -=- mailto:[EMAIL PROTECTED] -/- <-
-> -/- "I never could get the hang of Thursdays." - HHGTTG by DNA -\- <-
|--|--------|--------------|----|-------------|------|---------|-----|-|
   Version 11.423.999.220020101.23.50110101.042
   (c)1996-2000, All rights reserved. Disclaimer available upon request.


Reply via email to