public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
@ 2005-08-25 23:09 ngmlinux at gmail dot com
  2005-08-25 23:21 ` [Bug other/23569] " pinskia at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-25 23:09 UTC (permalink / raw)
  To: gcc-bugs

Using the following "configure" options on an i686 host to configure an
arm-linux-gcc-4.0.1 toolchain:
===code=================================
../configure --target=arm-linux --prefix=/usr/src/arm/linux/include
--enable-languages=c,java --disable-nls --nfp --with-cpu-xscale
--with-softfloat-support=internal
========================================

results in errors durring "make" as shown at:
http://pastebin.com/346358

-- 
           Summary: Building gcc-4.0.1 toolchain for arm-linux fails durring
                    "make"
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ngmlinux at gmail dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
@ 2005-08-25 23:21 ` pinskia at gcc dot gnu dot org
  2005-08-26  1:05 ` ngmlinux at gmail dot com
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-25 23:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-25 23:15 -------
/root/tmp/ccT9p2oh.s:37: Error: junk at end of line, first unrecognized character is `@'
/root/tmp/ccT9p2oh.s:38: Error: junk at end of line, first unrecognized character is `@'

Not a bug, configure is picking up the wrong as because you did not supply one to it.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
  2005-08-25 23:21 ` [Bug other/23569] " pinskia at gcc dot gnu dot org
@ 2005-08-26  1:05 ` ngmlinux at gmail dot com
  2005-08-26  1:31 ` ngmlinux at gmail dot com
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26  1:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 00:52 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"

> Not a bug, configure is picking up the wrong as because you did not supply one to it.

I don't think that's the case I just ran a "make clean" and changed my
"configure" to the following and still recieve the same error
messages:

===code=====================================================
../configure --target=arm-linux --prefix=/usr/src/arm/linux/include
--with-gnu-as --with-gnu-ld --enable-multilib
--enable-languages=c,c++,java --disable-nls --nfp --with-cpu-xscale
--with-softfloat-support=internal
============================================================

Note the added --with-gnu-as and --with-gnu-ld options.

-Nathan


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
  2005-08-25 23:21 ` [Bug other/23569] " pinskia at gcc dot gnu dot org
  2005-08-26  1:05 ` ngmlinux at gmail dot com
@ 2005-08-26  1:31 ` ngmlinux at gmail dot com
  2005-08-26  1:40 ` pinskia at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26  1:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 01:05 -------
bug reopened

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (2 preceding siblings ...)
  2005-08-26  1:31 ` ngmlinux at gmail dot com
@ 2005-08-26  1:40 ` pinskia at gcc dot gnu dot org
  2005-08-26  1:47 ` ngmlinux at gmail dot com
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-26  1:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-26 01:32 -------
@ is the comment marker even for GNU as.

You want to use --with-as=PATH_TO_AS and likewise for --with-ld=.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (3 preceding siblings ...)
  2005-08-26  1:40 ` pinskia at gcc dot gnu dot org
@ 2005-08-26  1:47 ` ngmlinux at gmail dot com
  2005-08-26  1:59 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26  1:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 01:45 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"

> You want to use --with-as=PATH_TO_AS and likewise for --with-ld=.

I'm not sure exactly what I'm looking for? Am I looking for a file
called gnu-as that was included with the gcc-4.0.1 source?  Is this a
target specific file?  I ran a "locate gnu-as" and came up with
nothing on my system.  Could you please provide a little more
information on this?

Thank You.

-Nathan


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (4 preceding siblings ...)
  2005-08-26  1:47 ` ngmlinux at gmail dot com
@ 2005-08-26  1:59 ` pinskia at gcc dot gnu dot org
  2005-08-26  2:25 ` ngmlinux at gmail dot com
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-26  1:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-26 01:47 -------
You built binutils, right?

Also you might want to look into cross tool:
http://kegel.com/crosstool/

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (5 preceding siblings ...)
  2005-08-26  1:59 ` pinskia at gcc dot gnu dot org
@ 2005-08-26  2:25 ` ngmlinux at gmail dot com
  2005-08-26  4:25 ` ngmlinux at gmail dot com
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26  2:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 01:59 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"

> You built binutils, right?

Yes I just built binutils 2.16.1 by the following procedure:
===procedure=================================================
bunzip2 binutils-2.16.1.tar.bz2
tar xvf binutils-2.16.1.tar
cd binutils-2.14
mkdir arm-linux
cd arm-linux
../configure --target=arm-linux
make
vi ld/earmelf_linux.c
- add a new SERACH_DIR line for every current SERACH_DIR line in file
SEARCH_DIR(\"/usr/local/arm-linux/lib/be\");\n\
make
make install
chmod 777 /usr/local/arm-linux
============================================================
Can you tell where "as" should be based on that?

> Also you might want to look into cross tool:
> http://kegel.com/crosstool/

I'll take a look, I think i've used some of the utilities from the
site before with little success, but i'll check again.

Thanks.

-Nathan


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (6 preceding siblings ...)
  2005-08-26  2:25 ` ngmlinux at gmail dot com
@ 2005-08-26  4:25 ` ngmlinux at gmail dot com
  2005-08-26  4:26 ` ngmlinux at gmail dot com
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26  4:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 04:23 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"

I was able to find an arm-linux-as and arm-linux-ld under
/usr/local/bin, hopefully these are the correct files and versions of
them.  Given your suggestion I added those paths to "--with-gnu-as"
and "--with-gnu-ld", however I still get the exact same errors.  I
think this still very well may be a bug.  Here's the latest
configuration with those changes:

===code====================================================
../configure --target=arm-linux --prefix=/usr/src/arm/linux/include
--with-gnu-as=/usr/local/bin/arm-linux-as
--with-gnu-ld=/usr/local/bin/arm-linux-ld --enable-multilib
--enable-languages=c,c++,java --disable-nls --nfp --with-cpu-xscale
--with-softfloat-support=internal
===========================================================

> Also you might want to look into cross tool:
> http://kegel.com/crosstool/

As for crosstool, it appears as though the current version of
crosstools, 0.38 does not currently support java (gcj) for xscale.

-Nathan


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (7 preceding siblings ...)
  2005-08-26  4:25 ` ngmlinux at gmail dot com
@ 2005-08-26  4:26 ` ngmlinux at gmail dot com
  2005-08-26  4:27   ` Andrew Pinski
  2005-08-26  4:33 ` pinskia at physics dot uc dot edu
                   ` (9 subsequent siblings)
  18 siblings, 1 reply; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26  4:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 04:24 -------
Bug reopened

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-26  4:26 ` ngmlinux at gmail dot com
@ 2005-08-26  4:27   ` Andrew Pinski
  0 siblings, 0 replies; 21+ messages in thread
From: Andrew Pinski @ 2005-08-26  4:27 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs

> 
> 
> ------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 04:24 -------
> Bug reopened
> 

You did not read my suggestion of doing --with-as=PATHTOAS.

-- pinski


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (8 preceding siblings ...)
  2005-08-26  4:26 ` ngmlinux at gmail dot com
@ 2005-08-26  4:33 ` pinskia at physics dot uc dot edu
  2005-08-26  4:37 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: pinskia at physics dot uc dot edu @ 2005-08-26  4:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at physics dot uc dot edu  2005-08-26 04:26 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"

> 
> 
> ------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 04:24 -------
> Bug reopened
> 

You did not read my suggestion of doing --with-as=PATHTOAS.

-- pinski


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (9 preceding siblings ...)
  2005-08-26  4:33 ` pinskia at physics dot uc dot edu
@ 2005-08-26  4:37 ` pinskia at gcc dot gnu dot org
  2005-08-26  7:34 ` ngmlinux at gmail dot com
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-26  4:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-26 04:32 -------
You did build in a clean directory the last time.  This works for many other people.  People build cross 
compilers all the time.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (10 preceding siblings ...)
  2005-08-26  4:37 ` pinskia at gcc dot gnu dot org
@ 2005-08-26  7:34 ` ngmlinux at gmail dot com
  2005-08-26  7:48 ` ngmlinux at gmail dot com
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26  7:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 06:08 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"

> You did not read my suggestion of doing --with-as=PATHTOAS.

I had --with-gnu-as=/usr/local/bin/arm-linux-as in my last e-mail
under the ===code=== section.  Or where you suggesting getting rid of
the "gnu" in "--with-gnu-as="?

In any case it seems as though I have been able to get past that
issue.  I've changed my "configure" to:

===code======================================================
../configure --target=arm-linux --with-gnu-as --with-gnu-ld
--enable-multilib --enable-languages=c,c++,java --disable-nls --nfp
--with-cpu-xscale --with-softfloat-support=internal
=============================================================

I removed the --prefix as well as the paths to gnu-as and gnu-ld
(against your suggestion) and ran "make" and it's deffinately getting
further than before (it's been compiling for over an hour now).  I
will send another update once this is out of the woods (or if it
fails).  If it does fail, I'll attempt using --with-as=PATH_TO_as vs.
--with-gnu-as or --with-gnu-as=PATH_TO_as.

Thanks.

-Nathan


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (11 preceding siblings ...)
  2005-08-26  7:34 ` ngmlinux at gmail dot com
@ 2005-08-26  7:48 ` ngmlinux at gmail dot com
  2005-08-26  7:50 ` andreast at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26  7:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 07:37 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"

Pinski-

That last configuration I sent you seems to almost work.  Make finally
finished and then I ran "make install".  arm-linux-gcj runs without
complaining about java.lang or anything like that.  However when I
tried to arm-linux-gcj a HelloWorld.java, I recieve an error:

===code==========================================================
[root@localhost java x_compile]# /usr/local/bin/arm-linux-gcj -Wall
HelloWorld.java -o HelloWorld.o
/usr/local/lib/gcc/arm-linux/4.0.1/../../../../arm-linux/lib/crt1.o:
In function `_start':
init.c:(.text+0x2c): undefined reference to `main'
collect2: ld returned 1 exit status
=================================================================

Any ideas as to what might be the root of this issue?

Thanks.

-Nathan


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (12 preceding siblings ...)
  2005-08-26  7:48 ` ngmlinux at gmail dot com
@ 2005-08-26  7:50 ` andreast at gcc dot gnu dot org
  2005-08-26 14:24 ` ngmlinux at gmail dot com
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: andreast at gcc dot gnu dot org @ 2005-08-26  7:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From andreast at gcc dot gnu dot org  2005-08-26 07:47 -------
do build it this way: gcj HelloWorld.java --main=HelloWorld -g -o HelloWorld.exe

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (13 preceding siblings ...)
  2005-08-26  7:50 ` andreast at gcc dot gnu dot org
@ 2005-08-26 14:24 ` ngmlinux at gmail dot com
  2005-08-26 14:30 ` pinskia at physics dot uc dot edu
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26 14:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 14:22 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"

> do build it this way: gcj HelloWorld.java --main=HelloWorld -g -o HelloWorld.exe

Still reporting an error, althought slightly different:

===code=======================================================
[root@localhost java_xcompile]# /usr/local/bin/arm-linux-gcj
HelloWorld.java --main=HelloWorld -g -o HelloWorld.exe
/root/tmp/cc4BfgHh.o: In function `main':
/root/tmp/ccyhMgPq.i:12: undefined reference to `HelloWorld::class$'
collect2: ld returned 1 exit status
==============================================================

Here's my complete HelloWorld.java source if there's any chance that
is wrong or needs something special for gcj:

===code=======================================================
class HelloWorldApp {
    public static void main (String args[]) {
        System.out.println("Hello World!");
    }
}
==============================================================

-Nathan


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (14 preceding siblings ...)
  2005-08-26 14:24 ` ngmlinux at gmail dot com
@ 2005-08-26 14:30 ` pinskia at physics dot uc dot edu
  2005-08-26 17:11 ` ngmlinux at gmail dot com
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 21+ messages in thread
From: pinskia at physics dot uc dot edu @ 2005-08-26 14:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at physics dot uc dot edu  2005-08-26 14:24 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"


On Aug 26, 2005, at 10:21 AM, Nathan M wrote:

>> do build it this way: gcj HelloWorld.java --main=HelloWorld -g -o 
>> HelloWorld.exe
>
> Still reporting an error, althought slightly different:
>
> ===code=======================================================
> [root@localhost java_xcompile]# /usr/local/bin/arm-linux-gcj
> HelloWorld.java --main=HelloWorld -g -o HelloWorld.exe
> /root/tmp/cc4BfgHh.o: In function `main':
> /root/tmp/ccyhMgPq.i:12: undefined reference to `HelloWorld::class$'
> collect2: ld returned 1 exit status
> ==============================================================
>
> Here's my complete HelloWorld.java source if there's any chance that
> is wrong or needs something special for gcj:


You want --main=MAINCLASS (or in this case HelloWorldApp).

Please read the docs better.

-- pinski



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (15 preceding siblings ...)
  2005-08-26 14:30 ` pinskia at physics dot uc dot edu
@ 2005-08-26 17:11 ` ngmlinux at gmail dot com
  2005-08-26 17:14 ` ngmlinux at gmail dot com
  2005-08-26 18:31 ` ngmlinux at gmail dot com
  18 siblings, 0 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26 17:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 17:07 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"

> You want --main=MAINCLASS (or in this case HelloWorldApp).

Ok, I fixed that and it seem to cross compile fine without any errors.
 However when I try to run the executable on the XScale I get a
segmentation fault.  I've seen people report the exact same issue on
the java list.  Any ideas what might cause this?  Otherwise I'll open
a new bug report relivant to the runtime error.

Thanks.

-Nathan


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (16 preceding siblings ...)
  2005-08-26 17:11 ` ngmlinux at gmail dot com
@ 2005-08-26 17:14 ` ngmlinux at gmail dot com
  2005-08-26 18:31 ` ngmlinux at gmail dot com
  18 siblings, 0 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26 17:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 17:11 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"

For reference the exact compile line I gave was:

===code===================================================
/usr/local/bin/arm-linux-gcj -static HelloWorld.java
--main=HelloWorldApp -g -o HelloWorld.exe
=========================================================

And the target system is an ARMCore / CM-X255 (Compulab) w/ a PXA-255
cpu running armcore-2.6.7 linux.

-Nathan


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
  2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
                   ` (17 preceding siblings ...)
  2005-08-26 17:14 ` ngmlinux at gmail dot com
@ 2005-08-26 18:31 ` ngmlinux at gmail dot com
  18 siblings, 0 replies; 21+ messages in thread
From: ngmlinux at gmail dot com @ 2005-08-26 18:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ngmlinux at gmail dot com  2005-08-26 18:19 -------
Subject: Re:  Building gcc-4.0.1 toolchain for arm-linux fails durring "make"

It appears the Segmentation Fault error I get at runtime is common and
already documented as bug# 5487.  The bug was closed due to difficulty
reproducing it.  Now that I've also been able to reproduce it, I've
submitted my info so hopefully it can be reopened.  I've now seen this
bug reproduced by at least 3 users.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5487

-Nathan


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2005-08-26 18:19 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-25 23:09 [Bug other/23569] New: Building gcc-4.0.1 toolchain for arm-linux fails durring "make" ngmlinux at gmail dot com
2005-08-25 23:21 ` [Bug other/23569] " pinskia at gcc dot gnu dot org
2005-08-26  1:05 ` ngmlinux at gmail dot com
2005-08-26  1:31 ` ngmlinux at gmail dot com
2005-08-26  1:40 ` pinskia at gcc dot gnu dot org
2005-08-26  1:47 ` ngmlinux at gmail dot com
2005-08-26  1:59 ` pinskia at gcc dot gnu dot org
2005-08-26  2:25 ` ngmlinux at gmail dot com
2005-08-26  4:25 ` ngmlinux at gmail dot com
2005-08-26  4:26 ` ngmlinux at gmail dot com
2005-08-26  4:27   ` Andrew Pinski
2005-08-26  4:33 ` pinskia at physics dot uc dot edu
2005-08-26  4:37 ` pinskia at gcc dot gnu dot org
2005-08-26  7:34 ` ngmlinux at gmail dot com
2005-08-26  7:48 ` ngmlinux at gmail dot com
2005-08-26  7:50 ` andreast at gcc dot gnu dot org
2005-08-26 14:24 ` ngmlinux at gmail dot com
2005-08-26 14:30 ` pinskia at physics dot uc dot edu
2005-08-26 17:11 ` ngmlinux at gmail dot com
2005-08-26 17:14 ` ngmlinux at gmail dot com
2005-08-26 18:31 ` ngmlinux at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).