Advertisement
Marionumber1

bigbang and kernel warnings

Jun 26th, 2014
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 55.75 KB | None | 0 0
  1. cd libc; make i386 CCBASE="i586-elf"
  2. make[1]: Entering directory '/home/George/darkside-kernel/libc'
  3. i586-elf-gcc -o build/math.o -c src/math.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bootvid/include
  4. i586-elf-gcc -o build/stdio.o -c src/stdio.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bootvid/include
  5. i586-elf-gcc -o build/stdlib.o -c src/stdlib.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bootvid/include
  6. i586-elf-gcc -o build/string.o -c src/string.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bootvid/include
  7. i586-elf-ar rs -o build/libc-i386.a `find build -type f -name *.o`
  8. i586-elf-ar: creating build/libc-i386.a
  9. make[1]: Leaving directory '/home/George/darkside-kernel/libc'
  10. cd libadt; make i386 CCBASE="i586-elf"
  11. make[1]: Entering directory '/home/George/darkside-kernel/libadt'
  12. i586-elf-gcc -o build/array.o -c src/array.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include
  13. i586-elf-gcc -o build/dict.o -c src/dict.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include
  14. i586-elf-gcc -o build/list.o -c src/list.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include
  15. i586-elf-gcc -o build/map.o -c src/map.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include
  16. i586-elf-gcc -o build/tree.o -c src/tree.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include
  17. i586-elf-ar rs -o build/libadt-i386.a `find build -type f -name *.o`
  18. i586-elf-ar: creating build/libadt-i386.a
  19. make[1]: Leaving directory '/home/George/darkside-kernel/libadt'
  20. cd bootvid/pc; make i386 CCBASE="i586-elf"
  21. make[1]: Entering directory '/home/George/darkside-kernel/bootvid/pc'
  22. i586-elf-gcc -o build/ports.o -c src/ports.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../libc/include
  23. i586-elf-gcc -o build/vga.o -c src/vga.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../libc/include
  24. i586-elf-ar rs -o build/libbootvid-i386.a `find build -type f -name *.o`
  25. i586-elf-ar: creating build/libbootvid-i386.a
  26. cp build/libbootvid-i386.a ../build/libbootvid-i386.a
  27. make[1]: Leaving directory '/home/George/darkside-kernel/bootvid/pc'
  28. cd bal/pc; make ext2 CCBASE="i586-elf"
  29. make[1]: Entering directory '/home/George/darkside-kernel/bal/pc'
  30. # Build each stage
  31. cd stage1; make all
  32. make[2]: Entering directory '/home/George/darkside-kernel/bal/pc/stage1'
  33. nasm -f bin -o build/stage1.bin src/stage1.s
  34. make[2]: Leaving directory '/home/George/darkside-kernel/bal/pc/stage1'
  35. cd stage2; make ext2
  36. make[2]: Entering directory '/home/George/darkside-kernel/bal/pc/stage2'
  37. nasm -f bin -o build/stage2.bin src/ext2.s
  38. make[2]: Leaving directory '/home/George/darkside-kernel/bal/pc/stage2'
  39. cd stage3; make all CCBASE="i586-elf"
  40. make[2]: Entering directory '/home/George/darkside-kernel/bal/pc/stage3'
  41. i586-elf-gcc -o build/firmware/acpi.o -c src/firmware/acpi.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  42. src/firmware/acpi.c: In function 'map_acpi_table':
  43. src/firmware/acpi.c:41:36: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  44.   struct acpi_table_header *table = (struct acpi_table_header*) (virtual_address + (physical_address & 0xFFF));
  45.                                     ^
  46. src/firmware/acpi.c: In function 'acpi_init':
  47. src/firmware/acpi.c:197:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  48.   loader_block->rsdp = (paddr_t) rsdp;
  49.                        ^
  50. i586-elf-gcc -o build/firmware/memory.o -c src/firmware/memory.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  51. i586-elf-gcc -o build/firmware/topology.o -c src/firmware/topology.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  52. src/firmware/topology.c: In function 'per_cpu_numa_area_alloc':
  53. src/firmware/topology.c:66:30: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  54.   void *data = ((void*) madt) + sizeof(struct madt);
  55.                               ^
  56. src/firmware/topology.c:99:8: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  57.    data += entry->length;
  58.         ^
  59. src/firmware/topology.c:122:40: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  60.     memset((void*)numa_domain_data_area + j, 0, 0x1000);
  61.                                         ^
  62. src/firmware/topology.c:144:24: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  63.   data = ((void*) srat) + sizeof(struct srat);
  64.                         ^
  65. src/firmware/topology.c:166:42: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  66.       memset((void*)numa_domain_data_area + j, 0, 0x1000);
  67.                                           ^
  68. src/firmware/topology.c:194:8: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  69.    data += entry->length;
  70.         ^
  71. i586-elf-gcc -o build/fs/ext2.o -c src/fs/ext2.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  72. src/fs/ext2.c: In function 'read_bgdesc':
  73. src/fs/ext2.c:49:42: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  74.   memcpy(buffer, superblock->block_buffer + bgdesc_offset, sizeof(ext2_bgdesc_t));
  75.                                           ^
  76. src/fs/ext2.c: In function 'read_inode':
  77. src/fs/ext2.c:81:42: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  78.   memcpy(buffer, superblock->block_buffer + table_offset, superblock->inode_size);
  79.                                           ^
  80. src/fs/ext2.c: In function 'read_block_pointer':
  81. src/fs/ext2.c:142:44: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  82.     memcpy(buffer, superblock->block_buffer + *offset, length);
  83.                                             ^
  84. src/fs/ext2.c:118:12: warning: unused variable 'bytes_left' [-Wunused-variable]
  85.    uint32_t bytes_left = 0;
  86.             ^
  87. src/fs/ext2.c:178:11: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  88.     buffer += bytes_read;
  89.            ^
  90. src/fs/ext2.c: In function 'ext2_inode_read':
  91. src/fs/ext2.c:209:10: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  92.    buffer += bytes_read;
  93.           ^
  94. src/fs/ext2.c:218:10: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  95.    buffer += bytes_read;
  96.           ^
  97. src/fs/ext2.c:224:10: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  98.    buffer += bytes_read;
  99.           ^
  100. src/fs/ext2.c:230:10: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  101.    buffer += bytes_read;
  102.           ^
  103. src/fs/ext2.c:195:21: warning: unused variable 'superblock' [-Wunused-variable]
  104.   ext2_superblock_t *superblock = (ext2_superblock_t*) node->filesystem->extension;
  105.                      ^
  106. src/fs/ext2.c: In function 'ext2_init':
  107. src/fs/ext2.c:359:2: warning: passing argument 1 of 'fs_register' discards 'const' qualifier from pointer target type [enabled by default]
  108.   fs_register("ext2", &ext2_filesystem_ops);
  109.   ^
  110. In file included from src/fs/ext2.c:9:0:
  111. ../../include/fs/fs.h:10:5: note: expected 'char *' but argument is of type 'const char *'
  112.  int fs_register(char *fs_name, filesystem_ops_t *ops);
  113.      ^
  114. i586-elf-gcc -o build/fs/fs.o -c src/fs/fs.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  115. src/fs/fs.c: In function 'root_inode_finddir':
  116. src/fs/fs.c:167:57: warning: unused parameter 'name' [-Wunused-parameter]
  117.  static inode_t *root_inode_finddir(inode_t *node, char *name)
  118.                                                          ^
  119. i586-elf-gcc -o build/graphics/graphics.o -c src/graphics/graphics.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  120. src/graphics/graphics.c: In function 'framebuffer_create':
  121. src/graphics/graphics.c:19:11: warning: variable 'status' set but not used [-Wunused-but-set-variable]
  122.   uint32_t status = vbe_set_mode(mode);
  123.            ^
  124. src/graphics/graphics.c: In function 'graphics_init':
  125. src/graphics/graphics.c:51:2: warning: passing argument 2 of 'strncpy' discards 'const' qualifier from pointer target type [enabled by default]
  126.   strncpy(controller_info->signature, "VBE2", 4);
  127.   ^
  128. In file included from src/graphics/graphics.c:2:0:
  129. ../../../libc/include/string.h:14:7: note: expected 'char *' but argument is of type 'const char *'
  130.  char *strncpy(char *dest, char *src, size_t count);
  131.        ^
  132. i586-elf-gcc -o build/init/kernel.o -c src/init/kernel.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  133. src/init/kernel.c: In function 'bal_enter_kernel':
  134. src/init/kernel.c:10:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  135.   printf("About to jump to kernel at 0x%08X\n", entry_point);
  136.   ^
  137. i586-elf-gcc -o build/init/main.o -c src/init/main.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  138. src/init/main.c: In function 'bal_main':
  139. src/init/main.c:54:6: warning: unused variable 'status' [-Wunused-variable]
  140.   int status = acpi_init(loader_block);
  141.       ^
  142. i586-elf-gcc -o build/mm/e820.o -c src/mm/e820.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  143. src/mm/e820.c: In function 'e820_map_sanitize':
  144. src/mm/e820.c:157:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  145.    if (entry->flags == flags)
  146.                     ^
  147. i586-elf-gcc -o build/mm/pmm.o -c src/mm/pmm.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  148. i586-elf-gcc -o build/mm/vmm.o -c src/mm/vmm.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  149. i586-elf-gcc -o build/mm/watermark.o -c src/mm/watermark.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  150. src/mm/watermark.c: In function 'free':
  151. src/mm/watermark.c:15:17: warning: unused parameter 'ptr' [-Wunused-parameter]
  152.  void free(void *ptr)
  153.                  ^
  154. i586-elf-gcc -o build/storage/blockdev.o -c src/storage/blockdev.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  155. i586-elf-gcc -o build/storage/disk.o -c src/storage/disk.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  156. src/storage/disk.c: In function 'disk_read':
  157. src/storage/disk.c:14:43: warning: unused parameter 'blockdev' [-Wunused-parameter]
  158.  /*static */uint64_t disk_read(blockdev_t *blockdev, void *buffer, uint64_t start, uint64_t numsectors)
  159.                                            ^
  160. src/storage/disk.c: In function 'disk_write':
  161. src/storage/disk.c:20:40: warning: unused parameter 'blockdev' [-Wunused-parameter]
  162.  static uint64_t disk_write(blockdev_t *blockdev, void *buffer, uint64_t start, uint64_t numsectors)
  163.                                         ^
  164. i586-elf-gcc -o build/storage/mbr.o -c src/storage/mbr.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  165. src/storage/mbr.c: In function 'mbr_get_partition':
  166. src/storage/mbr.c:86:42: warning: 'entry' may be used uninitialized in this function [-Wmaybe-uninitialized]
  167.   partition->numsectors = (uint64_t) entry->length;
  168.                                           ^
  169. i586-elf-gcc -o build/storage/storage.o -c src/storage/storage.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../../include -I../../../libc/include -I../../../libadt/include -I../../../bootvid/include
  170. nasm -f elf src/graphics/vbe.s -o build/graphics/vbe.o
  171. nasm -f elf src/init/loader.s -o build/init/loader.o
  172. nasm -f elf src/storage/bios.s -o build/storage/bios.o
  173. rm -f build/stage3.o
  174. i586-elf-ld -r -o build/stage3.o build/init/loader.o `find build -type f -name *.o ! -name loader.o` -L ../../../libgcc/build -L ../../../libc/build -L ../../../libadt/build -L ../../../bootvid/build -lgcc-i386 -lc-i386 -ladt-i386 -lbootvid-i386
  175. cp build/stage3.o build/../../../build/bal.o
  176. make[2]: Leaving directory '/home/George/darkside-kernel/bal/pc/stage3'
  177. # Get a clean MBR image
  178. cp img/mbr_master.img img/mbr.img
  179. # Copy stage1 and stage2 to the MBR and VBR
  180. dd if=stage1/build/stage1.bin of=img/mbr.img bs=440 conv=notrunc
  181. 1+0 records in
  182. 1+0 records out
  183. 440 bytes (440 B) copied, 0.00177285 s, 248 kB/s
  184. dd if=stage2/build/stage2.bin of=../../img/images/ext2.img bs=1024 conv=notrunc
  185. 1+0 records in
  186. 1+0 records out
  187. 1024 bytes (1.0 kB) copied, 0.00137525 s, 745 kB/s
  188. #sudo dd if=stage2/build/stage2.bin of=/dev/sda3 bs=1024 conv=notrunc
  189. dd if=img/mbr.img of=../../img/images/os.img bs=512 count=2048 conv=notrunc
  190. 2048+0 records in
  191. 2048+0 records out
  192. 1048576 bytes (1.0 MB) copied, 0.01994 s, 52.6 MB/s
  193. make[1]: Leaving directory '/home/George/darkside-kernel/bal/pc'
  194. cd kldr; make all CCBASE="i586-elf"
  195. make[1]: Entering directory '/home/George/darkside-kernel/kldr'
  196. i586-elf-gcc -o build/executable/elf.o -c src/executable/elf.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bal/include -I../libc/include -I../libadt/include -I../bootvid/include
  197. src/executable/elf.c: In function 'elf_executable_load_executable':
  198. src/executable/elf.c:92:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  199.     for (int j = 0; j < file_size; j += 0x1000)
  200.                       ^
  201. src/executable/elf.c:100:61: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  202.       bytes_read = fs_read(elf, (void*) phdr.virtual_address + j, phdr.offset + j, phdr.file_size);
  203.                                                              ^
  204. src/executable/elf.c:104:61: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  205.       bytes_read = fs_read(elf, (void*) phdr.virtual_address + j, phdr.offset + j, 0x1000);
  206.                                                              ^
  207. src/executable/elf.c:119:41: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  208.      memset((void*) phdr.virtual_address + file_size, 0, phdr.mem_size);
  209.                                          ^
  210. src/executable/elf.c:124:41: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  211.      memset((void*) phdr.virtual_address + file_size, 0, to_next_page);
  212.                                          ^
  213. src/executable/elf.c:131:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  214.     for (int j = 0; j < mem_size; j += 0x1000)
  215.                       ^
  216. src/executable/elf.c:139:42: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  217.       memset((void*) phdr.virtual_address + j, 0, phdr.mem_size);
  218.                                           ^
  219. src/executable/elf.c:143:42: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  220.       memset((void*) phdr.virtual_address + j, 0, 0x1000);
  221.                                           ^
  222. src/executable/elf.c: In function 'elf_executable_load_object':
  223. src/executable/elf.c:172:48: warning: unused parameter 'filename' [-Wunused-parameter]
  224.  executable_t *elf_executable_load_object(char *filename, vaddr_t address)
  225.                                                 ^
  226. src/executable/elf.c:172:66: warning: unused parameter 'address' [-Wunused-parameter]
  227.  executable_t *elf_executable_load_object(char *filename, vaddr_t address)
  228.                                                                   ^
  229. src/executable/elf.c: In function 'elf_init':
  230. src/executable/elf.c:188:2: warning: passing argument 1 of 'executable_format_register' discards 'const' qualifier from pointer target type [enabled by default]
  231.   executable_format_register("elf", &elf_executable_ops);
  232.   ^
  233. In file included from src/executable/elf.c:7:0:
  234. ./include/executable/executable.h:31:5: note: expected 'char *' but argument is of type 'const char *'
  235.  int executable_format_register(char *format_name, executable_ops_t *ops);
  236.      ^
  237. i586-elf-gcc -o build/executable/executable.o -c src/executable/executable.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bal/include -I../libc/include -I../libadt/include -I../bootvid/include
  238. i586-elf-gcc -o build/init/draw.o -c src/init/draw.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bal/include -I../libc/include -I../libadt/include -I../bootvid/include
  239. src/init/draw.c: In function 'drawing_demo':
  240. src/init/draw.c:14:2: warning: implicit declaration of function 'inportb' [-Wimplicit-function-declaration]
  241.   uint8_t status = inportb(0x64);
  242.   ^
  243. src/init/draw.c:44:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  244.        if (x < fb->width)
  245.              ^
  246. src/init/draw.c:56:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  247.        if (y < fb->height)
  248.              ^
  249. src/init/draw.c:16:10: warning: variable 'shift' set but not used [-Wunused-but-set-variable]
  250.   uint8_t shift = 0;
  251.           ^
  252. src/init/draw.c: In function 'draw_bmp_32':
  253. src/init/draw.c:124:2: warning: implicit declaration of function 'panic' [-Wimplicit-function-declaration]
  254.   if(header.header_field != 0x4D42) panic("Invalid BMP header field: %04X.\n", header.header_field);
  255.   ^
  256. src/init/draw.c:134:28: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  257.    fs_read(file, fb->buffer + fb_offset, file_offset, header.bpp / 8 * header.width);
  258.                             ^
  259. src/init/draw.c:116:59: warning: unused parameter 'x' [-Wunused-parameter]
  260.  void draw_bmp_32(framebuffer_t *fb, char *fname, uint32_t x, uint32_t y)
  261.                                                            ^
  262. src/init/draw.c:116:71: warning: unused parameter 'y' [-Wunused-parameter]
  263.  void draw_bmp_32(framebuffer_t *fb, char *fname, uint32_t x, uint32_t y)
  264.                                                                        ^
  265. i586-elf-gcc -o build/init/main.o -c src/init/main.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bal/include -I../libc/include -I../libadt/include -I../bootvid/include
  266. src/init/main.c: In function 'ba_main':
  267. src/init/main.c:19:2: warning: passing argument 2 of 'fs_mount' discards 'const' qualifier from pointer target type [enabled by default]
  268.   int status = fs_mount(storage_get_boot_device(), "/", "ext2");
  269.   ^
  270. In file included from src/init/main.c:11:0:
  271. ../bal/include/fs/fs.h:14:5: note: expected 'char *' but argument is of type 'const char *'
  272.  int fs_mount(device_t *device, char *path, char *fs_name);
  273.      ^
  274. src/init/main.c:19:2: warning: passing argument 3 of 'fs_mount' discards 'const' qualifier from pointer target type [enabled by default]
  275.   int status = fs_mount(storage_get_boot_device(), "/", "ext2");
  276.   ^
  277. In file included from src/init/main.c:11:0:
  278. ../bal/include/fs/fs.h:14:5: note: expected 'char *' but argument is of type 'const char *'
  279.  int fs_mount(device_t *device, char *path, char *fs_name);
  280.      ^
  281. src/init/main.c:36:2: warning: implicit declaration of function 'elf_executable_load_executable' [-Wimplicit-function-declaration]
  282.   executable_t *kernel = elf_executable_load_executable("/boot/kernel-i386.elf");
  283.   ^
  284. src/init/main.c:36:25: warning: initialization makes pointer from integer without a cast [enabled by default]
  285.   executable_t *kernel = elf_executable_load_executable("/boot/kernel-i386.elf");
  286.                          ^
  287. src/init/main.c:49:2: warning: implicit declaration of function 'per_cpu_numa_area_alloc' [-Wimplicit-function-declaration]
  288.   per_cpu_numa_area_alloc(loader_block, kernel->end);
  289.   ^
  290. src/init/main.c:53:2: warning: implicit declaration of function 'memory_numa_domains_detect' [-Wimplicit-function-declaration]
  291.   memory_numa_domains_detect(loader_block);
  292.   ^
  293. src/init/main.c:61:2: warning: implicit declaration of function 'dma_bitmap_alloc' [-Wimplicit-function-declaration]
  294.   dma_bitmap_alloc(loader_block);
  295.   ^
  296. src/init/main.c:65:2: warning: implicit declaration of function 'hyperspace_alloc' [-Wimplicit-function-declaration]
  297.   hyperspace_alloc(loader_block);
  298.   ^
  299. i586-elf-gcc -o build/mm/dma_bitmap.o -c src/mm/dma_bitmap.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bal/include -I../libc/include -I../libadt/include -I../bootvid/include
  300. i586-elf-gcc -o build/mm/hyperspace.o -c src/mm/hyperspace.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bal/include -I../libc/include -I../libadt/include -I../bootvid/include
  301. i586-elf-gcc -o build/mm/pfn.o -c src/mm/pfn.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bal/include -I../libc/include -I../libadt/include -I../bootvid/include
  302. src/mm/pfn.c: In function 'pfn_database_alloc':
  303. src/mm/pfn.c:91:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  304.     if (to_next_page && get_mapping(pfn_database - to_next_page) == -1)
  305.                                                                  ^
  306. src/mm/pfn.c:108:32: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  307.     memset((void*) pfn_database + needed_space, 0, space_remaining);
  308.                                 ^
  309. i586-elf-gcc -o build/modules/modreg.o -c src/modules/modreg.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bal/include -I../libc/include -I../libadt/include -I../bootvid/include
  310. src/modules/modreg.c: In function 'module_registry_init':
  311. src/modules/modreg.c:23:2: warning: pointer targets in passing argument 1 of 'strtok_r' differ in signedness [-Wpointer-sign]
  312.   char *line = strtok_r(registry_data, "\n", &saveptr);
  313.   ^
  314. In file included from src/modules/modreg.c:2:0:
  315. ../libc/include/string.h:20:7: note: expected 'char *' but argument is of type 'uint8_t *'
  316.  char *strtok_r(char *str, const char *delimeter, char **saveptr);
  317.        ^
  318. src/modules/modreg.c:47:5: warning: passing argument 1 of 'strncmp' discards 'const' qualifier from pointer target type [enabled by default]
  319.      if(!strncmp("@NAME", line, 5))
  320.      ^
  321. In file included from src/modules/modreg.c:2:0:
  322. ../libc/include/string.h:17:5: note: expected 'char *' but argument is of type 'const char *'
  323.  int strncmp(char *s1, char *s2, size_t num);
  324.      ^
  325. src/modules/modreg.c:51:5: warning: passing argument 1 of 'strncmp' discards 'const' qualifier from pointer target type [enabled by default]
  326.      else if(!strncmp("@DESC", line, 5))
  327.      ^
  328. In file included from src/modules/modreg.c:2:0:
  329. ../libc/include/string.h:17:5: note: expected 'char *' but argument is of type 'const char *'
  330.  int strncmp(char *s1, char *s2, size_t num);
  331.      ^
  332. src/modules/modreg.c:55:5: warning: passing argument 1 of 'strncmp' discards 'const' qualifier from pointer target type [enabled by default]
  333.      else if(!strncmp("@AUTHOR", line, 7))
  334.      ^
  335. In file included from src/modules/modreg.c:2:0:
  336. ../libc/include/string.h:17:5: note: expected 'char *' but argument is of type 'const char *'
  337.  int strncmp(char *s1, char *s2, size_t num);
  338.      ^
  339. src/modules/modreg.c:59:5: warning: passing argument 1 of 'strncmp' discards 'const' qualifier from pointer target type [enabled by default]
  340.      else if(!strncmp("@PATH", line, 5))
  341.      ^
  342. In file included from src/modules/modreg.c:2:0:
  343. ../libc/include/string.h:17:5: note: expected 'char *' but argument is of type 'const char *'
  344.  int strncmp(char *s1, char *s2, size_t num);
  345.      ^
  346. src/modules/modreg.c:63:5: warning: passing argument 1 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  347.      else if(!strcmp("@REQBOOT", line))
  348.      ^
  349. In file included from src/modules/modreg.c:2:0:
  350. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  351.  int strcmp(char *s1, char *s2);
  352.      ^
  353. src/modules/modreg.c:67:5: warning: passing argument 1 of 'strncmp' discards 'const' qualifier from pointer target type [enabled by default]
  354.      else if(!strncmp("@VERSION", line, 8))
  355.      ^
  356. In file included from src/modules/modreg.c:2:0:
  357. ../libc/include/string.h:17:5: note: expected 'char *' but argument is of type 'const char *'
  358.  int strncmp(char *s1, char *s2, size_t num);
  359.      ^
  360. src/modules/modreg.c:106:4: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  361.     if(!strcmp(line, "@MODULE"))
  362.     ^
  363. In file included from src/modules/modreg.c:2:0:
  364. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  365.  int strcmp(char *s1, char *s2);
  366.      ^
  367. src/modules/modreg.c:112:4: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  368.     else if(strcmp(line, ""))
  369.     ^
  370. In file included from src/modules/modreg.c:2:0:
  371. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  372.  int strcmp(char *s1, char *s2);
  373.      ^
  374. i586-elf-gcc -o build/modules/text_utils.o -c src/modules/text_utils.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bal/include -I../libc/include -I../libadt/include -I../bootvid/include
  375. i586-elf-gcc -o build/modules/tree_utils.o -c src/modules/tree_utils.c -std=c99 -O2 -W -Wall -Wextra -Wshadow -Wcast-align -Wwrite-strings -Wredundant-decls -Winline -Wno-endif-labels -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wswitch -Wsystem-headers -Wno-pragmas -Wdisabled-optimization -Wpointer-arith -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../bal/include -I../libc/include -I../libadt/include -I../bootvid/include
  376. src/modules/tree_utils.c: In function 'tree_index':
  377. src/modules/tree_utils.c:14:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  378.    if(!strcmp(line, "$DEVICE_DRIVERS"))
  379.    ^
  380. In file included from src/modules/tree_utils.c:7:0:
  381. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  382.  int strcmp(char *s1, char *s2);
  383.      ^
  384. src/modules/tree_utils.c:18:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  385.    else if(!strcmp(line, "$EXECUTABLE"))
  386.    ^
  387. In file included from src/modules/tree_utils.c:7:0:
  388. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  389.  int strcmp(char *s1, char *s2);
  390.      ^
  391. src/modules/tree_utils.c:22:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  392.    else if(!strcmp(line, "$FILESYSTEMS"))
  393.    ^
  394. In file included from src/modules/tree_utils.c:7:0:
  395. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  396.  int strcmp(char *s1, char *s2);
  397.      ^
  398. src/modules/tree_utils.c:26:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  399.    else if(!strcmp(line, "$SYSTEM_DEVICES"))
  400.    ^
  401. In file included from src/modules/tree_utils.c:7:0:
  402. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  403.  int strcmp(char *s1, char *s2);
  404.      ^
  405. src/modules/tree_utils.c:30:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  406.    else if(!strcmp(line, "$DISPLAY_DEVICES"))
  407.    ^
  408. In file included from src/modules/tree_utils.c:7:0:
  409. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  410.  int strcmp(char *s1, char *s2);
  411.      ^
  412. src/modules/tree_utils.c:34:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  413.    else if(!strcmp(line, "$STORAGE_DEVICES"))
  414.    ^
  415. In file included from src/modules/tree_utils.c:7:0:
  416. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  417.  int strcmp(char *s1, char *s2);
  418.      ^
  419. src/modules/tree_utils.c:38:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  420.    else if(!strcmp(line, "$NETWORK_DEVICES"))
  421.    ^
  422. In file included from src/modules/tree_utils.c:7:0:
  423. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  424.  int strcmp(char *s1, char *s2);
  425.      ^
  426. src/modules/tree_utils.c:42:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  427.    else if(!strcmp(line, "$INPUT_DEVICES"))
  428.    ^
  429. In file included from src/modules/tree_utils.c:7:0:
  430. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  431.  int strcmp(char *s1, char *s2);
  432.      ^
  433. src/modules/tree_utils.c:46:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  434.    else if(!strcmp(line, "$SOUND_DEVICES"))
  435.    ^
  436. In file included from src/modules/tree_utils.c:7:0:
  437. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  438.  int strcmp(char *s1, char *s2);
  439.      ^
  440. src/modules/tree_utils.c:50:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  441.    else if(!strcmp(line, "$BUSES"))
  442.    ^
  443. In file included from src/modules/tree_utils.c:7:0:
  444. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  445.  int strcmp(char *s1, char *s2);
  446.      ^
  447. src/modules/tree_utils.c:54:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  448.    else if(!strcmp(line, "$CONTROLLER_DEVICES"))
  449.    ^
  450. In file included from src/modules/tree_utils.c:7:0:
  451. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  452.  int strcmp(char *s1, char *s2);
  453.      ^
  454. src/modules/tree_utils.c:58:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  455.    else if(!strcmp(line, "$OTHER_DEVICES"))
  456.    ^
  457. In file included from src/modules/tree_utils.c:7:0:
  458. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  459.  int strcmp(char *s1, char *s2);
  460.      ^
  461. src/modules/tree_utils.c:62:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  462.    else if(!strcmp(line, "$SYSTEM_PROCESSOR_DEVICES"))
  463.    ^
  464. In file included from src/modules/tree_utils.c:7:0:
  465. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  466.  int strcmp(char *s1, char *s2);
  467.      ^
  468. src/modules/tree_utils.c:66:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  469.    else if(!strcmp(line, "$SYSTEM_MEMORY_DEVICES"))
  470.    ^
  471. In file included from src/modules/tree_utils.c:7:0:
  472. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  473.  int strcmp(char *s1, char *s2);
  474.      ^
  475. src/modules/tree_utils.c:70:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  476.    else if(!strcmp(line, "$SYSTEM_IRQ_DEVICES"))
  477.    ^
  478. In file included from src/modules/tree_utils.c:7:0:
  479. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  480.  int strcmp(char *s1, char *s2);
  481.      ^
  482. src/modules/tree_utils.c:74:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  483.    else if(!strcmp(line, "$SYSTEM_TIMER_DEVICES"))
  484.    ^
  485. In file included from src/modules/tree_utils.c:7:0:
  486. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  487.  int strcmp(char *s1, char *s2);
  488.      ^
  489. src/modules/tree_utils.c:78:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  490.    else if(!strcmp(line, "$SYSTEM_RTC_DEVICES"))
  491.    ^
  492. In file included from src/modules/tree_utils.c:7:0:
  493. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  494.  int strcmp(char *s1, char *s2);
  495.      ^
  496. src/modules/tree_utils.c:82:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  497.    else if(!strcmp(line, "$DISPLAY_TEXTMODE_DEVICES"))
  498.    ^
  499. In file included from src/modules/tree_utils.c:7:0:
  500. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  501.  int strcmp(char *s1, char *s2);
  502.      ^
  503. src/modules/tree_utils.c:86:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  504.    else if(!strcmp(line, "$DISPLAY_GRAPHICS_DEVICES"))
  505.    ^
  506. In file included from src/modules/tree_utils.c:7:0:
  507. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  508.  int strcmp(char *s1, char *s2);
  509.      ^
  510. src/modules/tree_utils.c:90:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  511.    else if(!strcmp(line, "$STORAGE_HDD_DEVICES"))
  512.    ^
  513. In file included from src/modules/tree_utils.c:7:0:
  514. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  515.  int strcmp(char *s1, char *s2);
  516.      ^
  517. src/modules/tree_utils.c:94:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  518.    else if(!strcmp(line, "$STORAGE_DISC_DEVICES"))
  519.    ^
  520. In file included from src/modules/tree_utils.c:7:0:
  521. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  522.  int strcmp(char *s1, char *s2);
  523.      ^
  524. src/modules/tree_utils.c:98:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  525.    else if(!strcmp(line, "$STORAGE_FLOPPY_DEVICES"))
  526.    ^
  527. In file included from src/modules/tree_utils.c:7:0:
  528. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  529.  int strcmp(char *s1, char *s2);
  530.      ^
  531. src/modules/tree_utils.c:102:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  532.    else if(!strcmp(line, "$STORAGE_USBMASS_DEVICES"))
  533.    ^
  534. In file included from src/modules/tree_utils.c:7:0:
  535. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  536.  int strcmp(char *s1, char *s2);
  537.      ^
  538. src/modules/tree_utils.c:104:4: warning: 'return' with no value, in function returning non-void [enabled by default]
  539.     return DEVICE_STORAGE_USBMASS;
  540.     ^
  541. src/modules/tree_utils.c:106:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  542.    else if(!strcmp(line, "$NETWORK_ETHERNET_DEVICES"))
  543.    ^
  544. In file included from src/modules/tree_utils.c:7:0:
  545. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  546.  int strcmp(char *s1, char *s2);
  547.      ^
  548. src/modules/tree_utils.c:110:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  549.    else if(!strcmp(line, "$NETWORK_WIFI_DEVICES"))
  550.    ^
  551. In file included from src/modules/tree_utils.c:7:0:
  552. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  553.  int strcmp(char *s1, char *s2);
  554.      ^
  555. src/modules/tree_utils.c:114:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  556.    else if(!strcmp(line, "$INPUT_KEYBOARD_DEVICES"))
  557.    ^
  558. In file included from src/modules/tree_utils.c:7:0:
  559. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  560.  int strcmp(char *s1, char *s2);
  561.      ^
  562. src/modules/tree_utils.c:118:3: warning: passing argument 2 of 'strcmp' discards 'const' qualifier from pointer target type [enabled by default]
  563.    else if(!strcmp(line, "$INPUT_MOUSE_DEVICES"))
  564.    ^
  565. In file included from src/modules/tree_utils.c:7:0:
  566. ../libc/include/string.h:16:5: note: expected 'char *' but argument is of type 'const char *'
  567.  int strcmp(char *s1, char *s2);
  568.      ^
  569. src/modules/tree_utils.c:137:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  570.    printf("Syntax error: module registry index unrecognized at line %d: %s\n", lineNumber, line);
  571.    ^
  572. i586-elf-ld -T linker.ld -o build/stage3.elf ../bal/build/bal.o `find build -type f -name *.o` -L ../libgcc/build -L ../libc/build -L ../libadt/build -L ../bootvid/build -lgcc-i386 -lc-i386 -ladt-i386 -lbootvid-i386
  573. i586-elf-objdump -S build/stage3.elf > build/disasm.s
  574. i586-elf-objcopy -O binary build/stage3.elf build/stage3.bin
  575. make[1]: Leaving directory '/home/George/darkside-kernel/kldr'
  576. cd kernel; make i386 CCBASE="i586-elf"
  577. make[1]: Entering directory '/home/George/darkside-kernel/kernel'
  578. i586-elf-gcc -o build/microkernel/i686/atomic.o -c src/microkernel/i686/atomic.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  579. i586-elf-gcc -o build/microkernel/i686/cpu.o -c src/microkernel/i686/cpu.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  580. i586-elf-gcc -o build/microkernel/i686/cpuid.o -c src/microkernel/i686/cpuid.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  581. i586-elf-gcc -o build/microkernel/i686/exception.o -c src/microkernel/i686/exception.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  582. src/microkernel/i686/exception.c: In function 'exception_handler':
  583. src/microkernel/i686/exception.c:54:3: warning: implicit declaration of function 'panic' [-Wimplicit-function-declaration]
  584.    panic("Unhandled exception 0x%08X\n", regs->int_no);
  585.    ^
  586. src/microkernel/i686/exception.c: In function 'page_fault_handler':
  587. src/microkernel/i686/exception.c:63:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  588.   printf("Page fault at 0x%08X, error code 0x%x\n", faulting_address, regs->err_code);
  589.   ^
  590. i586-elf-gcc -o build/microkernel/i686/freelist.o -c src/microkernel/i686/freelist.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  591. i586-elf-gcc -o build/microkernel/i686/gdt.o -c src/microkernel/i686/gdt.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  592. i586-elf-gcc -o build/microkernel/i686/idt.o -c src/microkernel/i686/idt.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  593. i586-elf-gcc -o build/microkernel/i686/lapic.o -c src/microkernel/i686/lapic.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  594. i586-elf-gcc -o build/microkernel/i686/lock.o -c src/microkernel/i686/lock.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  595. i586-elf-gcc -o build/microkernel/i686/main.o -c src/microkernel/i686/main.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  596. src/microkernel/i686/main.c: In function 'microkernel_init':
  597. src/microkernel/i686/main.c:104:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  598.    printf("Initializing free lists\n");
  599.    ^
  600. i586-elf-gcc -o build/microkernel/i686/msr.o -c src/microkernel/i686/msr.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  601. i586-elf-gcc -o build/microkernel/i686/paging-standard.o -c src/microkernel/i686/paging-standard.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  602. i586-elf-gcc -o build/microkernel/i686/pic.o -c src/microkernel/i686/pic.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  603. src/microkernel/i686/pic.c: In function 'pic_irq_handler':
  604. src/microkernel/i686/pic.c:84:3: warning: implicit declaration of function 'panic' [-Wimplicit-function-declaration]
  605.    panic("Unhandled IRQ 0x%08X\n", regs->int_no - 32);
  606.    ^
  607. i586-elf-gcc -o build/microkernel/i686/ports.o -c src/microkernel/i686/ports.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  608. i586-elf-gcc -o build/microkernel/i686/thread.o -c src/microkernel/i686/thread.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  609. i586-elf-gcc -o build/mm/addrspace.o -c src/mm/addrspace.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  610. i586-elf-gcc -o build/mm/heap.o -c src/mm/heap.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  611. i586-elf-gcc -o build/mm/mmfault.o -c src/mm/mmfault.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  612. src/mm/mmfault.c: In function 'vmm_fault_handler':
  613. src/mm/mmfault.c:6:2: warning: implicit declaration of function 'panic' [-Wimplicit-function-declaration]
  614.   panic("Page fault at 0x%08X\n", faulting_address);
  615.   ^
  616. i586-elf-gcc -o build/mm/pfn.o -c src/mm/pfn.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  617. i586-elf-gcc -o build/mm/slab.o -c src/mm/slab.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  618. i586-elf-gcc -o build/mm/vad.o -c src/mm/vad.c -std=c99 -O -fno-asynchronous-unwind-tables -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -I../libc/include -I../libadt/include -I../bootvid/include
  619. nasm -f elf src/microkernel/i686/exception_asm.s -o build/microkernel/i686/exception_asm.o
  620. nasm -f elf src/microkernel/i686/gdt_asm.s -o build/microkernel/i686/gdt_asm.o
  621. nasm -f elf src/microkernel/i686/idt_asm.s -o build/microkernel/i686/idt_asm.o
  622. nasm -f elf src/microkernel/i686/lapic_asm.s -o build/microkernel/i686/lapic_asm.o
  623. src/microkernel/i686/lapic_asm.s:8: warning: signed byte value exceeds bounds
  624. nasm -f elf src/microkernel/i686/loader.s -o build/microkernel/i686/loader.o
  625. nasm -f elf src/microkernel/i686/lock_asm.s -o build/microkernel/i686/lock_asm.o
  626. nasm -f elf src/microkernel/i686/pic_asm.s -o build/microkernel/i686/pic_asm.o
  627. nasm -f elf src/microkernel/i686/smp_init.s -o build/microkernel/i686/smp_init.o
  628. i586-elf-ld -T linker.ld -o build/kernel-i386.elf build/microkernel/i686/loader.o `find build -type f -name *.o ! -name loader.o` -L ../libgcc/build -L ../libc/build -L ../libadt/build -L ../bootvid/build -lc-i386 -ladt-i386 -lbootvid-i386 -lgcc-i386
  629. i586-elf-objdump -S build/kernel-i386.elf > build/disasm.s
  630. make[1]: Leaving directory '/home/George/darkside-kernel/kernel'
  631. img/utils/updateimage.sh
  632. Waiting for kernel-i386.elf to be copied into ext2.img [Press Enter to continue]...38+1 records in
  633. 38+1 records out
  634. 40239104 bytes (40 MB) copied, 0.0382968 s, 1.1 GB/s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement