Patrick Winnertz
2009-Mar-12 09:02 UTC
[Lustre-discuss] troubles compiling e2fsprogs on powerpc
Hey, I''ve slight problems with e2fsprogs on powerpc: The build aborts while linking lfsck: -------------------------------------------------------------------- LD lfsck cc -static -pthread -I /usr/src/lustre/lustre/include -Wall lfsck_common.o lfsck.o -o lfsck -L /usr/src/lustre/lustre/utils -llustreapi -ldb-4.4 lfsck_common.o: In function `cputole_mds_hdr'': lfsck_common.c:(.text+0x908): undefined reference to `ext2fs_swab64'' lfsck_common.c:(.text+0x934): undefined reference to `ext2fs_swab64'' lfsck_common.c:(.text+0x960): undefined reference to `ext2fs_swab64'' lfsck_common.c:(.text+0x990): undefined reference to `ext2fs_swab64'' lfsck_common.c:(.text+0x9dc): undefined reference to `ext2fs_swab64'' lfsck_common.o:lfsck_common.c:(.text+0xa68): more undefined references to `ext2fs_swab64'' follow lfsck_common.o: In function `cputole_mds_dirent'': lfsck_common.c:(.text+0xd88): undefined reference to `ext2fs_swab32'' lfsck_common.c:(.text+0xdb8): undefined reference to `ext2fs_swab32'' lfsck_common.c:(.text+0xde0): undefined reference to `ext2fs_swab32'' lfsck_common.o: In function `letocpu_mds_dirent'': lfsck_common.c:(.text+0xe34): undefined reference to `ext2fs_swab32'' lfsck_common.c:(.text+0xe64): undefined reference to `ext2fs_swab32'' lfsck_common.o:lfsck_common.c:(.text+0xe8c): more undefined references to `ext2fs_swab32'' follow lfsck_common.o: In function `cputole_mds_szinfo'': lfsck_common.c:(.text+0xee0): undefined reference to `ext2fs_swab64'' lfsck_common.c:(.text+0xf04): undefined reference to `ext2fs_swab32'' lfsck_common.c:(.text+0xf24): undefined reference to `ext2fs_swab16'' lfsck_common.c:(.text+0xf48): undefined reference to `ext2fs_swab64'' lfsck_common.c:(.text+0xf74): undefined reference to `ext2fs_swab64'' lfsck_common.c:(.text+0xf98): undefined reference to `ext2fs_swab32'' lfsck_common.o: In function `letocpu_mds_szinfo'': [ ...] collect2: ld returned 1 exit status ----------------------------------------------------------------------- Has someone a hint which is going wrong on powerpc but working well on all other arches? Greetings Winnie -- Patrick Winnertz Tel.: +49 (0) 2161 / 4643 - 0 credativ GmbH, HRB M?nchengladbach 12080 Hohenzollernstr. 133, 41061 M?nchengladbach Gesch?ftsf?hrung: Dr. Michael Meskes, J?rg Folz
Andreas Dilger
2009-Mar-12 19:54 UTC
[Lustre-discuss] troubles compiling e2fsprogs on powerpc
On Mar 12, 2009 10:02 +0100, Patrick Winnertz wrote:> I''ve slight problems with e2fsprogs on powerpc: > The build aborts while linking lfsck:Running servers on PPC (or any big-endian machine) is not currently supported because the ext3-patched on-disk data structures are not handled in an endian-safe manner. When we move to an ext4-based ldiskfs this problem will be resolved. That said, this compile problem is in the lfsck code (which is not in upstream e2fsprogs) so it should probably be fixed at some point, unless we finish the migration of lfsck into Lustre first.> -------------------------------------------------------------------- > LD lfsck > cc -static -pthread -I /usr/src/lustre/lustre/include -Wall lfsck_common.o > lfsck.o -o lfsck -L /usr/src/lustre/lustre/utils -llustreapi -ldb-4.4 > lfsck_common.o: In function `cputole_mds_hdr'': > lfsck_common.c:(.text+0x908): undefined reference to `ext2fs_swab64'' > lfsck_common.c:(.text+0x934): undefined reference to `ext2fs_swab64'' > lfsck_common.c:(.text+0x960): undefined reference to `ext2fs_swab64'' > lfsck_common.c:(.text+0x990): undefined reference to `ext2fs_swab64'' > lfsck_common.c:(.text+0x9dc): undefined reference to `ext2fs_swab64'' > lfsck_common.o:lfsck_common.c:(.text+0xa68): more undefined references to > `ext2fs_swab64'' follow > lfsck_common.o: In function `cputole_mds_dirent'': > lfsck_common.c:(.text+0xd88): undefined reference to `ext2fs_swab32'' > lfsck_common.c:(.text+0xdb8): undefined reference to `ext2fs_swab32'' > lfsck_common.c:(.text+0xde0): undefined reference to `ext2fs_swab32'' > lfsck_common.o: In function `letocpu_mds_dirent'': > lfsck_common.c:(.text+0xe34): undefined reference to `ext2fs_swab32'' > lfsck_common.c:(.text+0xe64): undefined reference to `ext2fs_swab32'' > lfsck_common.o:lfsck_common.c:(.text+0xe8c): more undefined references to > `ext2fs_swab32'' follow > lfsck_common.o: In function `cputole_mds_szinfo'': > lfsck_common.c:(.text+0xee0): undefined reference to `ext2fs_swab64'' > lfsck_common.c:(.text+0xf04): undefined reference to `ext2fs_swab32'' > lfsck_common.c:(.text+0xf24): undefined reference to `ext2fs_swab16'' > lfsck_common.c:(.text+0xf48): undefined reference to `ext2fs_swab64'' > lfsck_common.c:(.text+0xf74): undefined reference to `ext2fs_swab64'' > lfsck_common.c:(.text+0xf98): undefined reference to `ext2fs_swab32'' > lfsck_common.o: In function `letocpu_mds_szinfo'': > [ ...] > collect2: ld returned 1 exit status > ----------------------------------------------------------------------- > > Has someone a hint which is going wrong on powerpc but working well on all > other arches? > > Greetings > Winnie > -- > Patrick Winnertz > Tel.: +49 (0) 2161 / 4643 - 0 > > credativ GmbH, HRB M?nchengladbach 12080 > Hohenzollernstr. 133, 41061 M?nchengladbach > Gesch?ftsf?hrung: Dr. Michael Meskes, J?rg Folz > _______________________________________________ > Lustre-discuss mailing list > Lustre-discuss at lists.lustre.org > http://lists.lustre.org/mailman/listinfo/lustre-discussCheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc.