nanogui: Thread: Have anyone used Nano-X on PowerPC arch?


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Have anyone used Nano-X on PowerPC arch?
From: "SangBaek Lee(=?EUC-KR?B?wMy787np?=)" ####@####.####
Date: 25 Jan 2002 07:28:58 -0000
Message-Id: <3C51080C.8010902@neomuse.com>

Currently I'm using mpc82xx cpu, and I noticed that when I tried to
compile, either cross or native, it fails.
The reason of failure is, there is some files missing to include.
The following code is making the error.
# src/drivers/vgaplan4.h:22
#ifdef __GLIBC__
#include <sys/io.h> /* for outb def's, requires -O */
#else
#include <asm/io.h> /* for outb def's on 2.3.x*/
#endif

In the code you can see that if "__GLIBC__ "is defined it will include
"sys/io.h".
Unfortunatly in ppc-linux "sys/io.h" doesn't exist. But "asm/io.h" does
exist.
So, I tried to make it use "asm/io.h" which exists, and the compile
looked going well until the linking.
on the linking process, I get the following errors.

/home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
In function `ega_drawpixel':
vgaplan4.o(.text+0xe8): undefined reference to `outw'
vgaplan4.o(.text+0xe8): relocation truncated to fit: R_PPC_REL24 outw
vgaplan4.o(.text+0xf8): undefined reference to `outw'
vgaplan4.o(.text+0xf8): relocation truncated to fit: R_PPC_REL24 outw
vgaplan4.o(.text+0x11c): undefined reference to `outw'
vgaplan4.o(.text+0x11c): relocation truncated to fit: R_PPC_REL24 outw
/home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
In function `ega_drawhorzline':
vgaplan4.o(.text+0x2a0): undefined reference to `outw'
vgaplan4.o(.text+0x2a0): relocation truncated to fit: R_PPC_REL24 outw
vgaplan4.o(.text+0x2c4): undefined reference to `outw'
vgaplan4.o(.text+0x2c4): relocation truncated to fit: R_PPC_REL24 outw
/home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o)(.text+0x324):
more undefined references to `outw' follow
/home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
In function `ega_drawhorzline':
vgaplan4.o(.text+0x324): relocation truncated to fit: R_PPC_REL24 outw
vgaplan4.o(.text+0x354): relocation truncated to fit: R_PPC_REL24 outw
vgaplan4.o(.text+0x374): undefined reference to `outb'
vgaplan4.o(.text+0x374): relocation truncated to fit: R_PPC_REL24 outb
vgaplan4.o(.text+0x3c0): undefined reference to `outb'
vgaplan4.o(.text+0x3c0): relocation truncated to fit: R_PPC_REL24 outb
vgaplan4.o(.text+0x3e0): undefined reference to `outb'
vgaplan4.o(.text+0x3e0): relocation truncated to fit: R_PPC_REL24 outb
vgaplan4.o(.text+0x404): undefined reference to `outb'
vgaplan4.o(.text+0x404): relocation truncated to fit: R_PPC_REL24 outb
/home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
In function `ega_drawvertline':
vgaplan4.o(.text+0x5b0): undefined reference to `outw'
vgaplan4.o(.text+0x5b0): relocation truncated to fit: R_PPC_REL24 outw
vgaplan4.o(.text+0x5c0): undefined reference to `outw'
vgaplan4.o(.text+0x5c0): relocation truncated to fit: R_PPC_REL24 outw
vgaplan4.o(.text+0x5e4): undefined reference to `outw'
vgaplan4.o(.text+0x5e4): relocation truncated to fit: R_PPC_REL24 outw
/home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
In function `ega_init':
vgaplan4.o(.text+0x684): undefined reference to `ioperm'
vgaplan4.o(.text+0x684): relocation truncated to fit: R_PPC_REL24 ioperm
vgaplan4.o(.text+0x6b0): undefined reference to `outw'
vgaplan4.o(.text+0x6b0): relocation truncated to fit: R_PPC_REL24 outw
vgaplan4.o(.text+0x6c0): undefined reference to `outw'
vgaplan4.o(.text+0x6c0): relocation truncated to fit: R_PPC_REL24 outw
vgaplan4.o(.text+0x6d0): undefined reference to `outw'
vgaplan4.o(.text+0x6d0): relocation truncated to fit: R_PPC_REL24 outw
/home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
In function `ega_readpixel':
vgaplan4.o(.text+0x7d4): undefined reference to `outw'
vgaplan4.o(.text+0x7d4): relocation truncated to fit: R_PPC_REL24 outw
/home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
In function `fbvga_setiopermissions':
vgaplan4.o(.text+0x85c): undefined reference to `ioperm'
vgaplan4.o(.text+0x85c): relocation truncated to fit: R_PPC_REL24 ioperm
/home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(memplan4.o):
In function `vga_to_vga_blit':
memplan4.o(.text+0x9dc): undefined reference to `outw'
memplan4.o(.text+0x9dc): relocation truncated to fit: R_PPC_REL24 outw
memplan4.o(.text+0xa64): undefined reference to `outw'
memplan4.o(.text+0xa64): relocation truncated to fit: R_PPC_REL24 outw
memplan4.o(.text+0xa7c): undefined reference to `outw'
memplan4.o(.text+0xa7c): relocation truncated to fit: R_PPC_REL24 outw
memplan4.o(.text+0xa90): undefined reference to `outw'
memplan4.o(.text+0xa90): relocation truncated to fit: R_PPC_REL24 outw
memplan4.o(.text+0xab0): undefined reference to `outw'
memplan4.o(.text+0xab0): relocation truncated to fit: R_PPC_REL24 outw
memplan4.o(.text+0xad0): undefined reference to `outb'
memplan4.o(.text+0xad0): relocation truncated to fit: R_PPC_REL24 outb
memplan4.o(.text+0xb0c): undefined reference to `outb'
memplan4.o(.text+0xb0c): relocation truncated to fit: R_PPC_REL24 outb
memplan4.o(.text+0xb48): undefined reference to `outw'
memplan4.o(.text+0xb48): relocation truncated to fit: R_PPC_REL24 outw
memplan4.o(.text+0xb58): undefined reference to `outw'
memplan4.o(.text+0xb58): relocation truncated to fit: R_PPC_REL24 outw
/home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(memplan4.o):
In function `mempl4_to_vga_blit':
memplan4.o(.text+0xe50): undefined reference to `outw'
memplan4.o(.text+0xe50): relocation truncated to fit: R_PPC_REL24 outw
memplan4.o(.text+0xee4): undefined reference to `outw'
memplan4.o(.text+0xee4): relocation truncated to fit: R_PPC_REL24 outw
memplan4.o(.text+0xf04): undefined reference to `outw'
memplan4.o(.text+0xf04): relocation truncated to fit: R_PPC_REL24 outw
collect2: ld returned 1 exit status
make[1]: *** [/home/ashuaria/microwindows-0.89pre8/src/bin/nano-X] Error 1
make: *** [subdirs] Error 2

Hm...
Strange isn't it?

SangBaek


Subject: Re: [nanogui] Have anyone used Nano-X on PowerPC arch?
From: "Yuankang Lee" ####@####.####
Date: 25 Jan 2002 08:56:37 -0000
Message-Id: <006801c1a57d$4eb89820$3f02a8c0@hf>

Hi,

If you can use linear framebuffer device, you don't need file sys/io.h .

Step 1:    Modify file src/config
              ....
              FRAMEBUFFER = Y
              FBVGA                = N
              ....
Step 2:    Modify file src/driver/scr_fb.c, comment out "#include <sys/io.h>" .
Step 3:    make clean ; make


Regards,

Yuankang. 

----- Original Message ----- 
From: "SangBaek Lee(???)" ####@####.####
To: ####@####.####
Sent: Friday, January 25, 2002 3:23 PM
Subject: [nanogui] Have anyone used Nano-X on PowerPC arch?


> Currently I'm using mpc82xx cpu, and I noticed that when I tried to
> compile, either cross or native, it fails.
> The reason of failure is, there is some files missing to include.
> The following code is making the error.
> # src/drivers/vgaplan4.h:22
> #ifdef __GLIBC__
> #include <sys/io.h> /* for outb def's, requires -O */
> #else
> #include <asm/io.h> /* for outb def's on 2.3.x*/
> #endif
> 
> In the code you can see that if "__GLIBC__ "is defined it will include
> "sys/io.h".
> Unfortunatly in ppc-linux "sys/io.h" doesn't exist. But "asm/io.h" does
> exist.
> So, I tried to make it use "asm/io.h" which exists, and the compile
> looked going well until the linking.
> on the linking process, I get the following errors.
> 
> /home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
> In function `ega_drawpixel':
> vgaplan4.o(.text+0xe8): undefined reference to `outw'
> vgaplan4.o(.text+0xe8): relocation truncated to fit: R_PPC_REL24 outw
> vgaplan4.o(.text+0xf8): undefined reference to `outw'
> vgaplan4.o(.text+0xf8): relocation truncated to fit: R_PPC_REL24 outw
> vgaplan4.o(.text+0x11c): undefined reference to `outw'
> vgaplan4.o(.text+0x11c): relocation truncated to fit: R_PPC_REL24 outw
> /home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
> In function `ega_drawhorzline':
> vgaplan4.o(.text+0x2a0): undefined reference to `outw'
> vgaplan4.o(.text+0x2a0): relocation truncated to fit: R_PPC_REL24 outw
> vgaplan4.o(.text+0x2c4): undefined reference to `outw'
> vgaplan4.o(.text+0x2c4): relocation truncated to fit: R_PPC_REL24 outw
> /home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o)(.text+0x324):
> more undefined references to `outw' follow
> /home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
> In function `ega_drawhorzline':
> vgaplan4.o(.text+0x324): relocation truncated to fit: R_PPC_REL24 outw
> vgaplan4.o(.text+0x354): relocation truncated to fit: R_PPC_REL24 outw
> vgaplan4.o(.text+0x374): undefined reference to `outb'
> vgaplan4.o(.text+0x374): relocation truncated to fit: R_PPC_REL24 outb
> vgaplan4.o(.text+0x3c0): undefined reference to `outb'
> vgaplan4.o(.text+0x3c0): relocation truncated to fit: R_PPC_REL24 outb
> vgaplan4.o(.text+0x3e0): undefined reference to `outb'
> vgaplan4.o(.text+0x3e0): relocation truncated to fit: R_PPC_REL24 outb
> vgaplan4.o(.text+0x404): undefined reference to `outb'
> vgaplan4.o(.text+0x404): relocation truncated to fit: R_PPC_REL24 outb
> /home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
> In function `ega_drawvertline':
> vgaplan4.o(.text+0x5b0): undefined reference to `outw'
> vgaplan4.o(.text+0x5b0): relocation truncated to fit: R_PPC_REL24 outw
> vgaplan4.o(.text+0x5c0): undefined reference to `outw'
> vgaplan4.o(.text+0x5c0): relocation truncated to fit: R_PPC_REL24 outw
> vgaplan4.o(.text+0x5e4): undefined reference to `outw'
> vgaplan4.o(.text+0x5e4): relocation truncated to fit: R_PPC_REL24 outw
> /home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
> In function `ega_init':
> vgaplan4.o(.text+0x684): undefined reference to `ioperm'
> vgaplan4.o(.text+0x684): relocation truncated to fit: R_PPC_REL24 ioperm
> vgaplan4.o(.text+0x6b0): undefined reference to `outw'
> vgaplan4.o(.text+0x6b0): relocation truncated to fit: R_PPC_REL24 outw
> vgaplan4.o(.text+0x6c0): undefined reference to `outw'
> vgaplan4.o(.text+0x6c0): relocation truncated to fit: R_PPC_REL24 outw
> vgaplan4.o(.text+0x6d0): undefined reference to `outw'
> vgaplan4.o(.text+0x6d0): relocation truncated to fit: R_PPC_REL24 outw
> /home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
> In function `ega_readpixel':
> vgaplan4.o(.text+0x7d4): undefined reference to `outw'
> vgaplan4.o(.text+0x7d4): relocation truncated to fit: R_PPC_REL24 outw
> /home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(vgaplan4.o):
> In function `fbvga_setiopermissions':
> vgaplan4.o(.text+0x85c): undefined reference to `ioperm'
> vgaplan4.o(.text+0x85c): relocation truncated to fit: R_PPC_REL24 ioperm
> /home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(memplan4.o):
> In function `vga_to_vga_blit':
> memplan4.o(.text+0x9dc): undefined reference to `outw'
> memplan4.o(.text+0x9dc): relocation truncated to fit: R_PPC_REL24 outw
> memplan4.o(.text+0xa64): undefined reference to `outw'
> memplan4.o(.text+0xa64): relocation truncated to fit: R_PPC_REL24 outw
> memplan4.o(.text+0xa7c): undefined reference to `outw'
> memplan4.o(.text+0xa7c): relocation truncated to fit: R_PPC_REL24 outw
> memplan4.o(.text+0xa90): undefined reference to `outw'
> memplan4.o(.text+0xa90): relocation truncated to fit: R_PPC_REL24 outw
> memplan4.o(.text+0xab0): undefined reference to `outw'
> memplan4.o(.text+0xab0): relocation truncated to fit: R_PPC_REL24 outw
> memplan4.o(.text+0xad0): undefined reference to `outb'
> memplan4.o(.text+0xad0): relocation truncated to fit: R_PPC_REL24 outb
> memplan4.o(.text+0xb0c): undefined reference to `outb'
> memplan4.o(.text+0xb0c): relocation truncated to fit: R_PPC_REL24 outb
> memplan4.o(.text+0xb48): undefined reference to `outw'
> memplan4.o(.text+0xb48): relocation truncated to fit: R_PPC_REL24 outw
> memplan4.o(.text+0xb58): undefined reference to `outw'
> memplan4.o(.text+0xb58): relocation truncated to fit: R_PPC_REL24 outw
> /home/ashuaria/microwindows-0.89pre8/src/lib/libmwdrivers.a(memplan4.o):
> In function `mempl4_to_vga_blit':
> memplan4.o(.text+0xe50): undefined reference to `outw'
> memplan4.o(.text+0xe50): relocation truncated to fit: R_PPC_REL24 outw
> memplan4.o(.text+0xee4): undefined reference to `outw'
> memplan4.o(.text+0xee4): relocation truncated to fit: R_PPC_REL24 outw
> memplan4.o(.text+0xf04): undefined reference to `outw'
> memplan4.o(.text+0xf04): relocation truncated to fit: R_PPC_REL24 outw
> collect2: ld returned 1 exit status
> make[1]: *** [/home/ashuaria/microwindows-0.89pre8/src/bin/nano-X] Error 1
> make: *** [subdirs] Error 2
> 
> Hm...
> Strange isn't it?
> 
> SangBaek
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.