On Sun, May 06, 2001 at 09:58:02PM -0500, Rahul Jain wrote: > 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? No.. This is APUS kernel tree (based on bitkeeper PowerPC IIRC) Kernel compiles just fine (with gcc-3.0; haven't tried gcc-2.95.4). And yes XFS patches are from 1.0 release (and i;m running this kernel just now) This is 2.4.3 kernel source
> > > Anyway i have trouble compiling mkfs.xfs I tried: It should rather read that "i have trouble compiling xfsprogs" which is more apropriate > > 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. Most probably you are right.. I used gcc-3.0 because i heard that it compiles reiserfs code (big endian) correctly. So far i have no problems with kernel built with gcc-3.0 > > > 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 > If it's not clear it's libxfs.a (which is in the same source tree) that causes problems.. There is no error while compiling sources of libxfs itself. Only when ld tries to link with that (freshly built) library > > maybe your GCC isn't inlining the function? most probably this is the case.. I thought it's matter of optimization but i get the same even if i turn off optimization (-O0) > 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. From what i gather it just can't find code for __fswab64 "function". -- Robert Ramiega | [EMAIL PROTECTED] IRC: _Jedi_ | Do not underestimate UIN: 13201047 | http://www.plukwa.net/ | the power of Source