Re: [PATCH] Changes to reduce warnings using ia16-unknown-elks-gcc

Jody Bruchon <[email protected]> Sat, 13 Jun 2015 10:25:20 -0400
Newsgroups org.kernel.vger.linux-8086
Message-ID <[email protected]>
On 2015/06/02 11:10, Juan Perez-Sanchez wrote:
> The previous patch has a problem. Attached to this mail is the correct
> patch. Sorry for the inconvenience.
>
> Juan
>
This patch causes ELKS to fail to build due to missing symbols. Make 
sure you run 'make clean' in the elks/elks directory (better yet, run 
'./build.sh clean') before you run a test build to reset the build state.

Can you fix it back up and send me a patch? I've already committed all 
your patches to my repo and I'll send it up to Github in case you want 
to sync with what I've got. Here's the failure output:

make[3]: Leaving directory 
`/home/daivox/projects/github/elks/elks/arch/i86/lib'
(cd ../.. ; ld86 -0 -i  -t -M  \
         arch/i86/boot/crt0.o arch/i86/boot/crt1.o \
         init/main.o kernel/kernel.a fs/fs.a lib/lib.a net/net.a 
fs/minix/minixfs.a arch/i86/kernel/akernel.a arch/i86/lib/lib86.a 
arch/i86/mm/mm.a  arch/i86/drivers/char/chr_drv.a 
arch/i86/drivers/block/blk_drv.a \
         -o arch/i86/boot/system > System.tmp ; \
         sort -k4 System.tmp > System.map ; rm -f System.tmp )
undefined symbol: _sys_dlload
undefined symbol: _no_syscall
tools/build boot/bootsect boot/setup boot/system > boot/Image
Root device is (3, -128)
Boot sector 512 bytes.
Setup is 1660 bytes.
Unable to open 'system'
make[2]: *** [Image] Error 1
make[2]: Leaving directory `/home/daivox/projects/github/elks/elks/arch/i86'
make[1]: *** [Image] Error 2
make[1]: Leaving directory `/home/daivox/projects/github/elks/elks'
make: *** [elks] Error 2
Build script has terminated with error 4