Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mkdir -p /home/hbag/hilbos/sysroot/usr/include
- cp -R --preserve=timestamps include/. /home/hbag/hilbos/sysroot/usr/include/.
- mkdir -p /home/hbag/hilbos/sysroot/usr/include
- cp -R --preserve=timestamps include/. /home/hbag/hilbos/sysroot/usr/include/.
- mkdir -p /home/hbag/hilbos/sysroot/usr/include
- cp -R --preserve=timestamps include/. /home/hbag/hilbos/sysroot/usr/include/.
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- mkdir -p /home/hbag/hilbos/sysroot/usr/lib
- cp libk.a /home/hbag/hilbos/sysroot/usr/lib
- mkdir -p /home/hbag/hilbos/sysroot/usr/include
- cp -R --preserve=timestamps include/. /home/hbag/hilbos/sysroot/usr/include/.
- /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
- 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
- /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
- /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
- arch/i386/tty.c: In function 'terminal_scroll':
- arch/i386/tty.c:61:12: warning: unused variable 'index' [-Wunused-variable]
- 61 | size_t index = 0;
- | ^~~~~
- arch/i386/tty.c: In function 'terminal_putchar':
- arch/i386/tty.c:96:33: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
- 96 | for (line = 1; line <= VGA_HEIGHT - 1; line++)
- | ^~
- /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
- 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
- /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
- /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
- GNU ld (GNU Binutils) 2.43.1
- Supported emulations:
- elf_i386
- elf_iamcu
- opened script file arch/i386/linker.ld
- using external linker script: arch/i386/linker.ld
- ==================================================
- /* the bootloader will look at this image and start execution at the symbol
- designated at the entry point */
- ENTRY(_start)
- /* tell where the various sections of the object files will be put in the final
- kernel image */
- SECTIONS
- {
- /* begin putting sections at 1 MiB, a conventional place for kernels to be
- loaded at by the bootloader */
- . = 1M;
- /* first put the multiboot header as it is required to be put very early
- early in the image or the bootloader won't recognize the file format.
- next we'll put the .text section. */
- .text BLOCK(4K) : ALIGN(4K)
- {
- *(.multiboot)
- *(.text)
- }
- /* read-only data */
- .rodata BLOCK(4K) : ALIGN(4K)
- {
- *(.rodata)
- }
- /* read-write data (initialized) */
- .data BLOCK(4K) : ALIGN(4K)
- {
- *(.data)
- }
- /* read-write data (uninitialized) and stack */
- .bss BLOCK(4k) : ALIGN(4K)
- {
- *(COMMON)
- *(.bss)
- }
- /* the compiler may produce other sections, put them in the proper place in
- this file, if you'd like to include them in the final kernel */
- }
- ==================================================
- /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/../../../../i686-elf/bin/ld: mode elf_i386
- attempt to open arch/i386/crti.o succeeded
- arch/i386/crti.o
- attempt to open arch/i386/crtbegin.o succeeded
- arch/i386/crtbegin.o
- attempt to open arch/i386/boot.o succeeded
- arch/i386/boot.o
- attempt to open arch/i386/tty.o succeeded
- arch/i386/tty.o
- attempt to open kernel/kernel.o failed
- /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
- attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libk.so failed
- attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libk.a failed
- attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/../../../../i686-elf/lib/libk.so failed
- attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/../../../../i686-elf/lib/libk.a failed
- attempt to open /home/hbag/hilbos/sysroot/usr/lib/libk.so failed
- attempt to open /home/hbag/hilbos/sysroot/usr/lib/libk.a succeeded
- /home/hbag/hilbos/sysroot/usr/lib/libk.a
- (/home/hbag/hilbos/sysroot/usr/lib/libk.a)strlen.libk.o
- attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libgcc.so failed
- attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libgcc.a succeeded
- /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libgcc.a
- attempt to open arch/i386/crtend.o succeeded
- arch/i386/crtend.o
- attempt to open arch/i386/crtn.o succeeded
- arch/i386/crtn.o
- collect2: error: ld returned 1 exit status
- make: *** [Makefile:56: myos.kernel] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement