Opened 17 years ago
Closed 12 years ago
#149 closed defect (fixed)
Cross silo build for pure 64bit Sparc V9 broken
Reported by: | David B | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | CLFS Standard 1.2.0 |
Component: | BOOK | Version: | CLFS Standard GIT |
Keywords: | Tools silo broken | Cc: |
Description
I was cross-compilling silo for the Pure 64 bit boot method of the SVN book. This is the error I get.
171.
sparc64-unknown-linux-gnu-gcc -O2 -Wall -I. -I../include -DVERSION='"1.4.13"' -DIMGVERSION='"0.99"' -c silo.c
172.
In file included from /tools/include/asm/types.h:5,
173.
from ../include/ext2fs/ext2fs.h:53,
174.
from silo.c:54:
175.
/tools/include/asm-sparc64/types.h:31: error: conflicting types for 's64'
176.
/tools/include/ext2fs/ext2_types.h:116: error: previous declaration of 's64' was here
177.
/tools/include/asm-sparc64/types.h:32: error: conflicting types for 'u64'
178.
/tools/include/ext2fs/ext2_types.h:99: error: previous declaration of 'u64' was here
179.
In file included from ../include/ext2fs/ext2fs.h:78,
180.
from silo.c:54:
181.
../include/ext2fs/ext2_err.h:108: warning: 'struct et_list' declared inside parameter list
182.
../include/ext2fs/ext2_err.h:108: warning: its scope is only this definition or declaration, which is probably not what you want
183.
In file included from ../include/ext2fs/ext2fs.h:227,
184.
from silo.c:54:
185.
../include/ext2fs/bitops.h: In function 'ext2fs_set_bit':
186.
../include/ext2fs/bitops.h:224: warning: cast from pointer to integer of different size
187.
../include/ext2fs/bitops.h: In function 'ext2fs_clear_bit':
188.
../include/ext2fs/bitops.h:252: warning: cast from pointer to integer of different size
189.
silo.c: In function 'read_sb':
190.
silo.c:245: warning: pointer targets in passing argument 1 of 'devopen' differ in signedness
191.
silo.c:256: warning: pointer targets in passing argument 1 of 'devopen' differ in signedness
192.
silo.c:265: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness
193.
silo.c:276: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness
194.
silo.c: In function 'write_block_device':
195.
silo.c:484: warning: pointer targets in passing argument 1 of 'devopen' differ in signedness
196.
silo.c: In function 'write_block_tables':
197.
silo.c:569: warning: pointer targets in passing argument 1 of 'devopen' differ in signedness
198.
silo.c:616: warning: pointer targets in passing argument 1 of 'builtin_strncpy' differ in signedness
199.
silo.c: In function 'get_device':
200.
silo.c:1082: warning: pointer targets in assignment differ in signedness
201.
silo.c:1083: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness
202.
silo.c:1084: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness
203.
silo.c:1084: warning: pointer targets in assignment differ in signedness
204.
silo.c:1085: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness
205.
silo.c: In function 'main':
206.
silo.c:1281: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
207.
silo.c:1281: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
208.
silo.c:1281: warning: pointer targets in passing argument 1 of 'builtin_strcmp' differ in signedness
209.
silo.c:1281: warning: pointer targets in passing argument 2 of 'builtin_strcmp' differ in signedness
210.
silo.c:1281: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
211.
silo.c:1281: warning: pointer targets in passing argument 1 of 'builtin_strcmp' differ in signedness
212.
silo.c:1281: warning: pointer targets in passing argument 2 of 'builtin_strcmp' differ in signedness
213.
silo.c:1281: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
214.
silo.c:1281: warning: pointer targets in passing argument 1 of 'builtin_strcmp' differ in signedness
215.
silo.c:1281: warning: pointer targets in passing argument 2 of 'builtin_strcmp' differ in signedness
216.
silo.c:1281: warning: pointer targets in passing argument 1 of 'builtin_strcmp' differ in signedness
217.
silo.c:1281: warning: pointer targets in passing argument 2 of 'builtin_strcmp' differ in signedness
218.
silo.c:1298: warning: pointer targets in assignment differ in signedness
219.
silo.c:1410: warning: pointer targets in passing argument 1 of 'examine_bootblock' differ in signedness
220.
silo.c:1420: warning: pointer targets in passing argument 1 of 'install_first_stage' differ in signedness
221.
make[1]: * [silo.o] Error 1
222.
make[1]: Leaving directory `/opt/sparc/sources/silo-1.4.13/silo'
223.
make: * [all] Error 1
224.
clfs:/opt/sparc/sources/silo-1.4.13$
http://pastebin.cross-lfs.org/5206
Dave
Change History (7)
comment:1 by , 16 years ago
Milestone: | CLFS Standard 1.1.0 → CLFS Standard 1.2.0 |
---|---|
Version: | CLFS Standard 1.0.0 → CLFS Standard 1.2.0 |
comment:2 by , 16 years ago
Version: | CLFS Standard 1.2.0 → CLFS Standard SVN |
---|
comment:3 by , 16 years ago
I'll have a look into this as I will be building Pure64 Sparc over the next week or so. If it is to do with the kernel headers then a patch will be made. This issue may have been fixed in Silo 1.4.14.
comment:4 by , 15 years ago
For now we can use this for kernel headers >= 2.6.25 I ripped this change from Debian Perhaps include this at the end of a fixes-2.patch
diff -Naur silo-1.4.14.orig/include/ext2fs/ext2fs.h silo-1.4.14/include/ext2fs/ext2fs.h --- silo-1.4.14.orig/include/ext2fs/ext2fs.h 2008-06-12 16:39:12.000000000 +0000 +++ silo-1.4.14/include/ext2fs/ext2fs.h 2009-07-25 17:59:07.483824698 +0000 @@ -39,7 +39,7 @@ */ #define EXT2_LIB_CURRENT_REV 0 -#ifdef HAVE_SYS_TYPES_H +#if defined(HAVE_SYS_TYPES_H) && !defined(_LINUX_TYPES_H) #include <sys/types.h> #endif diff -Naur silo-1.4.14.orig/second/main.c silo-1.4.14/second/main.c --- silo-1.4.14.orig/second/main.c 2008-06-12 16:39:12.000000000 +0000 +++ silo-1.4.14/second/main.c 2009-07-25 17:59:18.943825030 +0000 @@ -25,8 +25,7 @@ /* TODO: This file is a good candidate for rewrite from scratch. */ #include <silo.h> -#include <asm/page.h> -#include <linux/elf.h> +#include <elf.h> #include <stringops.h> #ifndef NULL
-William
comment:5 by , 15 years ago
Someone on the mailing list said that they were unable to compile Silo on Multilib too. They tried the git version of silo and that wouldn't compile either.
comment:6 by , 13 years ago
I compiled Silo 1.4.14 with the fixies-2 patch in chapter 7 using Git 20120206 sparc64-64 book today without any issues.
comment:7 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Cosmo has apparently fixed this. Verified in chat and closing this ticket.
This is because of using newer kernel headers. Pushing off to after 1.1.0