nanogui: Thread: Error during compilation for sh4 target file system


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Error during compilation for sh4 target file system
From: Hou Xiang ZHU ####@####.####
Date: 10 May 2007 08:31:21 +0100
Message-Id: <4642C9AA.1090001@st.com>

Hi,

I downloaded "microwindows-full-0.91.tar.gz", and on my FC6 host PC, I
can compile it and run demo tests under X.(after a little trouble for
compiling freetype). I use Configs/config.x11 as config file.

Now I am trying to compile it to run on my target box which is a linux
Set-Top-Box,here is what I have done:

1. I use Configs/config.fb3 as config file
2. I modified config file for "ARCH = LINUX_SH","SHTOOLSPREFIX = sh4-linux-"
3. I also modified the include path and lib path in config file, such as
change "/usr/include" to "$(TARGETFS)/usr/include", etc, where
$TARGETFS= /opt/STM/target22_coco is my target filessystem path.

but when I try to make , the following error occured! where am I wrong?
i.e how can I compile it for sh4 target box?

---------------------------
[zhuhx@zhu_fedora src]$ make
Compiling drivers/obsolete.c ...
cc1: error: command line option ‘-m1’ is not supported by this configuration
cc1: error: command line option ‘-m3’ is not supported by this configuration
make[1]: ***
[/home/zhuhx/microwindows/microwindows-0.91_sh4/src/obj/drivers/obsolete.o]
Error 1
make: ***
[subdir-/home/zhuhx/microwindows/microwindows-0.91_sh4/src/drivers] Error 2
[zhuhx@zhu_fedora src]$
----------------------------

Thanks,
Houxiang

-- 
HES System Competence Centre
Beijing Office, STMicroelectronics(Shanghai) Co.,Ltd.
Tel. 010-59846146  Fax: 010-62800864 Tina: 092-8888-6146
####@####.####

Subject: Re: [nanogui] Error during compilation for sh4 target file system
From: "Greg Haerr" ####@####.####
Date: 10 May 2007 14:33:57 +0100
Message-Id: <023801c79307$c79b3400$2f01a8c0@HaydenLake>

: cc1: error: command line option ‘-m1’ is not supported by this 
configuration
: cc1: error: command line option ‘-m3’ is not supported by this 
configuration

You'll need to edit src/Arch.rules to change the
compiler options supported in your environment,
under the SH4 section.

Regards,

Greg 

Subject: Re: [nanogui] Error during compilation for sh4 target file system
From: Hou Xiang ZHU ####@####.####
Date: 11 May 2007 03:37:26 +0100
Message-Id: <4643D654.7060400@st.com>

Greg:
Thank you!

Now after I compiled freetype-1.3.1 for SH4 and generated libttf.so,etc,
I proceed to compile, but the following error occured:
---------------
........
Compiling nanox/srvmain.c ...
Compiling nanox/srvfunc.c ...
Compiling nanox/srvutil.c ...
Compiling nanox/srvevent.c ...
Compiling nanox/srvclip.c ...
Compiling nanox/srvnet.c ...
Linking nano-X ...
/home/zhuhx/microwindows/microwindows-0.91_sh4/src/obj/drivers/vgaplan4.o:
In function `ega_drawvertline':
vgaplan4.c:(.text+0x1b4): undefined reference to `outw'
vgaplan4.c:(.text+0x1b8): undefined reference to `outw'
vgaplan4.c:(.text+0x1c0): undefined reference to `outw'
/home/zhuhx/microwindows/microwindows-0.91_sh4/src/obj/drivers/vgaplan4.o:
In function `ega_readpixel':
vgaplan4.c:(.text+0x368): undefined reference to `outw'
vgaplan4.c:(.text+0x370): undefined reference to `outw'
/home/zhuhx/microwindows/microwindows-0.91_sh4/src/obj/drivers/vgaplan4.o:vgaplan4.c:(.text+0x374):
more undefined references to `outw' follow
/home/zhuhx/microwindows/microwindows-0.91_sh4/src/obj/drivers/vgaplan4.o:
In function `ega_drawhorzline':
vgaplan4.c:(.text+0x71c): undefined reference to `outb'
vgaplan4.c:(.text+0x720): undefined reference to `outb'
vgaplan4.c:(.text+0x724): undefined reference to `outb'
vgaplan4.c:(.text+0x72c): undefined reference to `outb'
vgaplan4.c:(.text+0x730): undefined reference to `outw'
/home/zhuhx/microwindows/microwindows-0.91_sh4/src/obj/drivers/vgaplan4.o:
In function `fbvga_setiopermissions':
vgaplan4.c:(.text+0x84c): undefined reference to `ioperm'
/home/zhuhx/microwindows/microwindows-0.91_sh4/src/obj/drivers/vgaplan4.o:
In function `ega_init':
vgaplan4.c:(.text+0x8e8): undefined reference to `ioperm'
vgaplan4.c:(.text+0x8f4): undefined reference to `outw'
vgaplan4.c:(.text+0x8f8): undefined reference to `outw'
vgaplan4.c:(.text+0x8fc): undefined reference to `outw'
/home/zhuhx/microwindows/microwindows-0.91_sh4/src/obj/drivers/memplan4.o:
In function `ega_blit':
memplan4.c:(.text+0xc4c): undefined reference to `outw'
memplan4.c:(.text+0xd60): undefined reference to `outw'
/home/zhuhx/microwindows/microwindows-0.91_sh4/src/obj/drivers/memplan4.o:memplan4.c:(.text+0xd68):
more undefined references to `outw' follow
/home/zhuhx/microwindows/microwindows-0.91_sh4/src/obj/drivers/memplan4.o:
In function `ega_blit':
memplan4.c:(.text+0xf28): undefined reference to `outb'
memplan4.c:(.text+0xf2c): undefined reference to `outb'
memplan4.c:(.text+0xf7c): undefined reference to `outw'
memplan4.c:(.text+0x1100): undefined reference to `outw'
memplan4.c:(.text+0x1108): undefined reference to `outw'
memplan4.c:(.text+0x110c): undefined reference to `outw'
memplan4.c:(.text+0x1110): undefined reference to `outw'
/home/zhuhx/microwindows/microwindows-0.91_sh4/src/obj/drivers/memplan4.o:memplan4.c:(.text+0x1530):
more undefined references to `outw' follow
collect2: ld returned 1 exit status
make[1]: ***
[/home/zhuhx/microwindows/microwindows-0.91_sh4/src/bin/nano-X] Error 1
make: ***
[subdir-/home/zhuhx/microwindows/microwindows-0.91_sh4/src/nanox] Error 2
[zhuhx@zhu_fedora src]$
---------------

For our STB box, we have fb modules, as well as Blit/GFX modules etc.
which can draw line/rectangle etc, and can access graphics hardware
directly. I have vague idea about nano-x screen drivers, etc. I guess I
need replace some of nano-x's drivers with our own drivers. Is that correct?

please give some hint on this in order for nano-x run on our STB.

Thanks,
Houxiang

Subject: Re: [nanogui] Error during compilation for sh4 target file system
From: "Greg Haerr" ####@####.####
Date: 11 May 2007 03:53:06 +0100
Message-Id: <03d901c79377$69d84180$2f01a8c0@HaydenLake>

: vgaplan4.c:(.text+0x1b4): undefined reference to `outw'
: vgaplan4.c:(.text+0x1b8): undefined reference to `outw'
: vgaplan4.c:(.text+0x1c0): undefined reference to `outw'

You're having all sorts of fun, aren't you?

Unset the VGA driver in the config file, these
errors will go away.  They default on for PC
hardware, as it allows nano-X to run on
ancient VGA hardware.


: For our STB box, we have fb modules, as well as Blit/GFX modules etc.
: which can draw line/rectangle etc, and can access graphics hardware
: directly. I have vague idea about nano-x screen drivers, etc. I guess I
: need replace some of nano-x's drivers with our own drivers. Is that 
correct?
:
: please give some hint on this in order for nano-x run on our STB.

If your system implements a framebuffer, then nano-X
will run without requiring a custom driver.  You
can then modify a nano-X driver if you wish, for
speed, but this usually isn't needed.  Nano-X
will pick a framebuffer driver depending on what
the kernel ioctl() call returns (in drivers/scr_fb.c)
specifying your hardware framebuffer format.

Regards,

Greg 

Subject: Re: [nanogui] Error during compilation for sh4 target file system
From: Hou Xiang ZHU ####@####.####
Date: 14 May 2007 11:52:37 +0100
Message-Id: <46483ECB.1080200@st.com>

Hi, Greg:

Thank you for your help, after Unset FBVGA = N, I can compile without
error now.
what I get are src/bin/nano-X and many src/bin/ demo executables for SH
architecture.

I suppose that I can copy all those executables for sh to the target
filesystem, after
I boot up my STB, and load my fb modules, I can run the demo. but all of
them cannot run, it
simply "segmentation fault". what could be wrong? should I digged the
source code to see where
it corrupted?

In my understanding, src/bin/nano-X is the nano-X server, which should
always be up and ruuning first, and then other applications such as
nanowm can run? please give more information on those demo programs.

Thanks,
Houxiang


> Unset the VGA driver in the config file, these
> errors will go away.  They default on for PC
> If your system implements a framebuffer, then nano-X
> will run without requiring a custom driver.  You
> can then modify a nano-X driver if you wish, for
> speed, but this usually isn't needed.  Nano-X
> will pick a framebuffer driver depending on what
> the kernel ioctl() call returns (in drivers/scr_fb.c)
> specifying your hardware framebuffer format.
>
> Regards,
>
> Greg 
>
>
>   

Subject: Re: [nanogui] Error during compilation for sh4 target file system
From: "Greg Haerr" ####@####.####
Date: 14 May 2007 17:00:59 +0100
Message-Id: <083901c79640$f9bee8a0$2f01a8c0@HaydenLake>

: In my understanding, src/bin/nano-X is the nano-X server, which should
: always be up and ruuning first, and then other applications such as
: nanowm can run? 

That's correct.  See the src/demo*.sh for examples.

The simplest program to run is bin/mdemo, which 
can run alone.  If this does not run, then you
have issues with your compiler/linker/library system.

Regards,

Greg

Subject: Re: Error during compilation for sh4 target file system
From: Nigel ####@####.####
Date: 24 May 2010 10:10:13 -0000
Message-Id: <loom.20100524T115503-107@post.gmane.org>

Hou Xiang ZHU ####@####.#### writes:

> i.e how can I compile it for sh4 target box?
> 
> ---------------------------
> [zhuhx <at> zhu_fedora src]$ make
> Compiling drivers/obsolete.c ...
> cc1: error: command line option ‘-m1’ is not supported by this configuration
> cc1: error: command line option ‘-m3’ is not supported by this configuration
> make[1]: ***
> ----------------------------
> 
> Thanks,
> Houxiang
> 

Hi List,

Also trying to get microwindow to work on my sh4-linux platform. I'm using
Configs/config.fb1 and getting the same errors reported by Houxiang. 

Any idea?

thanks,
Nigel


Subject: Re: [nanogui] Re: Error during compilation for sh4 target file system
From: Daniel ####@####.####
Date: 24 May 2010 10:43:19 -0000
Message-Id: <AANLkTikeC5qFxkSTmBgZVpdsU3-z0UCgPxSaTfrGkaQx@mail.gmail.com>

2010/5/24 Nigel ####@####.####

> Hou Xiang ZHU ####@####.#### writes:
> > [zhuhx <at> zhu_fedora src]$ make
> > Compiling drivers/obsolete.c ...
> > cc1: error: command line option ‘-m1’ is not supported by this
> configuration
> > cc1: error: command line option ‘-m3’ is not supported by this
> configuration
> > make[1]: ***
> > ----------------------------
>
> Also trying to get microwindow to work on my sh4-linux platform. I'm using
> Configs/config.fb1 and getting the same errors reported by Houxiang.
>
> Nigel
>

Have you tried removing the failing options in Arch.rules at line 109?
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.