Advertisement
Guest User

Untitled

a guest
Oct 27th, 2024
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.07 KB | None | 0 0
  1. mkdir -p /home/hbag/hilbos/sysroot/usr/include
  2. cp -R --preserve=timestamps include/. /home/hbag/hilbos/sysroot/usr/include/.
  3. mkdir -p /home/hbag/hilbos/sysroot/usr/include
  4. cp -R --preserve=timestamps include/. /home/hbag/hilbos/sysroot/usr/include/.
  5. mkdir -p /home/hbag/hilbos/sysroot/usr/include
  6. cp -R --preserve=timestamps include/. /home/hbag/hilbos/sysroot/usr/include/.
  7. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c stdio/printf.c -o stdio/printf.libk.o -std=gnu11 -O2 -g -ffreestanding -Wall -Wextra -D__is_libc -Iinclude -D__is_libk
  8. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c stdio/putchar.c -o stdio/putchar.libk.o -std=gnu11 -O2 -g -ffreestanding -Wall -Wextra -D__is_libc -Iinclude -D__is_libk
  9. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c stdio/puts.c -o stdio/puts.libk.o -std=gnu11 -O2 -g -ffreestanding -Wall -Wextra -D__is_libc -Iinclude -D__is_libk
  10. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c stdlib/abort.c -o stdlib/abort.libk.o -std=gnu11 -O2 -g -ffreestanding -Wall -Wextra -D__is_libc -Iinclude -D__is_libk
  11. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c string/memcmp.c -o string/memcmp.libk.o -std=gnu11 -O2 -g -ffreestanding -Wall -Wextra -D__is_libc -Iinclude -D__is_libk
  12. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c string/memcpy.c -o string/memcpy.libk.o -std=gnu11 -O2 -g -ffreestanding -Wall -Wextra -D__is_libc -Iinclude -D__is_libk
  13. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c string/memmove.c -o string/memmove.libk.o -std=gnu11 -O2 -g -ffreestanding -Wall -Wextra -D__is_libc -Iinclude -D__is_libk
  14. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c string/memset.c -o string/memset.libk.o -std=gnu11 -O2 -g -ffreestanding -Wall -Wextra -D__is_libc -Iinclude -D__is_libk
  15. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c string/strlen.c -o string/strlen.libk.o -std=gnu11 -O2 -g -ffreestanding -Wall -Wextra -D__is_libc -Iinclude -D__is_libk
  16. /home/hbag/opt/cross/bin/i686-elf-ar rcs libk.a stdio/printf.libk.o stdio/putchar.libk.o stdio/puts.libk.o stdlib/abort.libk.o string/memcmp.libk.o string/memcpy.libk.o string/memmove.libk.o string/memset.libk.o string/strlen.libk.o
  17. mkdir -p /home/hbag/hilbos/sysroot/usr/lib
  18. cp libk.a /home/hbag/hilbos/sysroot/usr/lib
  19. mkdir -p /home/hbag/hilbos/sysroot/usr/include
  20. cp -R --preserve=timestamps include/. /home/hbag/hilbos/sysroot/usr/include/.
  21. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c arch/i386/crti.S -o arch/i386/crti.o -O2 -g -ffreestanding -Wall -Wextra -D__is_kernel -Iinclude
  22. OBJ=`/home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -O2 -g -ffreestanding -Wall -Wextra -print-file-name=crtbegin.o` && cp "$OBJ" arch/i386/crtbegin.o
  23. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c arch/i386/boot.S -o arch/i386/boot.o -O2 -g -ffreestanding -Wall -Wextra -D__is_kernel -Iinclude
  24. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c arch/i386/tty.c -o arch/i386/tty.o -std=gnu11 -O2 -g -ffreestanding -Wall -Wextra -D__is_kernel -Iinclude
  25. arch/i386/tty.c: In function 'terminal_scroll':
  26. arch/i386/tty.c:61:12: warning: unused variable 'index' [-Wunused-variable]
  27. 61 | size_t index = 0;
  28. | ^~~~~
  29. arch/i386/tty.c: In function 'terminal_putchar':
  30. arch/i386/tty.c:96:33: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
  31. 96 | for (line = 1; line <= VGA_HEIGHT - 1; line++)
  32. | ^~
  33. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c kernel/kernel.c -o kernel/kernel.o -std=gnu11 -O2 -g -ffreestanding -Wall -Wextra -D__is_kernel -Iinclude
  34. OBJ=`/home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -O2 -g -ffreestanding -Wall -Wextra -print-file-name=crtend.o` && cp "$OBJ" arch/i386/crtend.o
  35. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -MD -c arch/i386/crtn.S -o arch/i386/crtn.o -O2 -g -ffreestanding -Wall -Wextra -D__is_kernel -Iinclude
  36. /home/hbag/opt/cross/bin/i686-elf-gcc --sysroot=/home/hbag/hilbos/sysroot -isystem=/usr/include -T arch/i386/linker.ld -o myos.kernel -O2 -g -ffreestanding -Wall -Wextra arch/i386/crti.o arch/i386/crtbegin.o arch/i386/boot.o arch/i386/tty.o \ kernel/kernel.o -nostdlib -lk -lgcc arch/i386/crtend.o arch/i386/crtn.o -Wl,--verbose
  37. GNU ld (GNU Binutils) 2.43.1
  38. Supported emulations:
  39. elf_i386
  40. elf_iamcu
  41. opened script file arch/i386/linker.ld
  42. using external linker script: arch/i386/linker.ld
  43. ==================================================
  44. /* the bootloader will look at this image and start execution at the symbol
  45. designated at the entry point */
  46. ENTRY(_start)
  47.  
  48. /* tell where the various sections of the object files will be put in the final
  49. kernel image */
  50. SECTIONS
  51. {
  52. /* begin putting sections at 1 MiB, a conventional place for kernels to be
  53. loaded at by the bootloader */
  54. . = 1M;
  55.  
  56. /* first put the multiboot header as it is required to be put very early
  57. early in the image or the bootloader won't recognize the file format.
  58. next we'll put the .text section. */
  59. .text BLOCK(4K) : ALIGN(4K)
  60. {
  61. *(.multiboot)
  62. *(.text)
  63. }
  64.  
  65. /* read-only data */
  66. .rodata BLOCK(4K) : ALIGN(4K)
  67. {
  68. *(.rodata)
  69. }
  70.  
  71. /* read-write data (initialized) */
  72. .data BLOCK(4K) : ALIGN(4K)
  73. {
  74. *(.data)
  75. }
  76.  
  77. /* read-write data (uninitialized) and stack */
  78. .bss BLOCK(4k) : ALIGN(4K)
  79. {
  80. *(COMMON)
  81. *(.bss)
  82. }
  83.  
  84. /* the compiler may produce other sections, put them in the proper place in
  85. this file, if you'd like to include them in the final kernel */
  86. }
  87. ==================================================
  88. /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/../../../../i686-elf/bin/ld: mode elf_i386
  89. attempt to open arch/i386/crti.o succeeded
  90. arch/i386/crti.o
  91. attempt to open arch/i386/crtbegin.o succeeded
  92. arch/i386/crtbegin.o
  93. attempt to open arch/i386/boot.o succeeded
  94. arch/i386/boot.o
  95. attempt to open arch/i386/tty.o succeeded
  96. arch/i386/tty.o
  97. attempt to open kernel/kernel.o failed
  98. /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/../../../../i686-elf/bin/ld: cannot find kernel/kernel.o: No such file or directory
  99. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libk.so failed
  100. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libk.a failed
  101. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/../../../../i686-elf/lib/libk.so failed
  102. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/../../../../i686-elf/lib/libk.a failed
  103. attempt to open /home/hbag/hilbos/sysroot/usr/lib/libk.so failed
  104. attempt to open /home/hbag/hilbos/sysroot/usr/lib/libk.a succeeded
  105. /home/hbag/hilbos/sysroot/usr/lib/libk.a
  106. (/home/hbag/hilbos/sysroot/usr/lib/libk.a)strlen.libk.o
  107. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libgcc.so failed
  108. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libgcc.a succeeded
  109. /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libgcc.a
  110. attempt to open arch/i386/crtend.o succeeded
  111. arch/i386/crtend.o
  112. attempt to open arch/i386/crtn.o succeeded
  113. arch/i386/crtn.o
  114. collect2: error: ld returned 1 exit status
  115. make: *** [Makefile:56: myos.kernel] Error 1
  116.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement