Hi,
Trying to build OpenBIOS natively on sparc32 or sparc64 host, I get the following error:
LINK openbios-unix libopenbios.a(load.o): In function `load': /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info' /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info'
It seems only sparc32/64 have CONFIG_LOADER_AOUT. The sys_info variable is defined in arch/sparc{32,64}/boot.c, but this file is not used to build openbios-unix. Any new what would be a real fix here, besides disabling CONFIG_LOADER_AOUT?
Thanks, Aurelien
Aurelien Jarno wrote:
Hi,
Trying to build OpenBIOS natively on sparc32 or sparc64 host, I get the following error:
LINK openbios-unix libopenbios.a(load.o): In function `load': /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info' /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info'
It seems only sparc32/64 have CONFIG_LOADER_AOUT. The sys_info variable is defined in arch/sparc{32,64}/boot.c, but this file is not used to build openbios-unix. Any new what would be a real fix here, besides disabling CONFIG_LOADER_AOUT?
Thanks, Aurelien
Hmmm. What's strange is that I would expect x86 to fail in the same way, and it builds fine on my native x86 host here. I'd start by having a quick look there and comparing the differences.
HTH,
Mark.
On Sat, Jul 31, 2010 at 05:56:26PM +0100, Mark Cave-Ayland wrote:
Aurelien Jarno wrote:
Hi,
Trying to build OpenBIOS natively on sparc32 or sparc64 host, I get the following error:
LINK openbios-unix libopenbios.a(load.o): In function `load': /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info' /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info'
It seems only sparc32/64 have CONFIG_LOADER_AOUT. The sys_info variable is defined in arch/sparc{32,64}/boot.c, but this file is not used to build openbios-unix. Any new what would be a real fix here, besides disabling CONFIG_LOADER_AOUT?
Thanks, Aurelien
Hmmm. What's strange is that I would expect x86 to fail in the same way, and it builds fine on my native x86 host here. I'd start by having a quick look there and comparing the differences.
I also tried on x86, but it doesn't fail as CONFIG_LOADER_AOUT is not enabled on this platform.
Aurelien Jarno wrote:
I also tried on x86, but it doesn't fail as CONFIG_LOADER_AOUT is not enabled on this platform.
Ah okay. I currently have my final rework of the boot/load/go code which is fairly close to commit (and touches parts of this code) so once this is in, I'll try and take a quick look.
ATB,
Mark.
On Sat, Jul 31, 2010 at 4:35 AM, Aurelien Jarno aurelien@aurel32.net wrote:
Hi,
Trying to build OpenBIOS natively on sparc32 or sparc64 host, I get the following error:
LINK openbios-unix libopenbios.a(load.o): In function `load': /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info' /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info'
It seems only sparc32/64 have CONFIG_LOADER_AOUT. The sys_info variable is defined in arch/sparc{32,64}/boot.c, but this file is not used to build openbios-unix. Any new what would be a real fix here, besides disabling CONFIG_LOADER_AOUT?
The real problem is that Unix target is not cleanly separated from bare metal versions but some HW initialization stuff leaks in, like the begin of unix.c. The target is also a bit hard to keep in synch with the other targets. Some kind of cleanup would be nice, I don't have a clear plan though.
On Sat, Jul 31, 2010 at 4:35 AM, Aurelien Jarno aurelien@aurel32.net wrote:
Hi,
Trying to build OpenBIOS natively on sparc32 or sparc64 host, I get the following error:
LINK openbios-unix libopenbios.a(load.o): In function `load': /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info' /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info'
It seems only sparc32/64 have CONFIG_LOADER_AOUT. The sys_info variable is defined in arch/sparc{32,64}/boot.c, but this file is not used to build openbios-unix. Any new what would be a real fix here, besides disabling CONFIG_LOADER_AOUT?
I've just committed a fix.
On Sun, Aug 01, 2010 at 11:04:34AM +0000, Blue Swirl wrote:
On Sat, Jul 31, 2010 at 4:35 AM, Aurelien Jarno aurelien@aurel32.net wrote:
Hi,
Trying to build OpenBIOS natively on sparc32 or sparc64 host, I get the following error:
LINK openbios-unix libopenbios.a(load.o): In function `load': /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info' /home/aurel32/openbios-devel/obj-sparc32/../libopenbios/load.c:41: undefined reference to `sys_info'
It seems only sparc32/64 have CONFIG_LOADER_AOUT. The sys_info variable is defined in arch/sparc{32,64}/boot.c, but this file is not used to build openbios-unix. Any new what would be a real fix here, besides disabling CONFIG_LOADER_AOUT?
I've just committed a fix.
Thanks a lot, I confirm it works.