Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Gcc 3.4.4 and Interix

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Gcc 3.4.4 and Interix Page: [1]
Login
Message << Older Topic   Newer Topic >>
Gcc 3.4.4 and Interix - Nov. 10, '05, 2:10:08 AM   
wysoft

 

Posts: 12
Joined: Jul. 14, '05,
From: Washington State, USA
Status: offline
I'm curious if anyone has successfully built and used any version of gcc? I've built 3.4.4, and while it compiled successfully, I get this when attempting to compile a "Hello World" app:

wysoft:~> /opt/gcc.3.4.4/bin/gcc hello.c
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/tmp/ccn80UWd.o:hello.c:(.text+0x33): undefined reference to `_printf'
/opt/gcc.3.4.4/lib/gcc/i586-pc-interix3/3.4.4/libgcc.a(__main.o): In function `__do_global_ctors':
/tmp/gccbuild/gcc/../../gcc-3.4.4/gcc/libgcc2.c:1693: undefined reference to `_atexit'
/dev/fs/C/UnixRoot//usr/lib/libpsxdll.a(PSXDLL.dll.a):: undefined reference to `.idata$4'

This source compiles fine with the stock Interix gcc. Note that I also tried adding "#include <stdlib.h>" to libgcc2.c, so that "atexit" could be resolved, but to no avail. Getting gcc to work is not important, but if anyone has any hints, please do share.
Post #: 1
RE: Gcc 3.4.4 and Interix - Nov. 10, '05, 3:05:02 AM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
Because there are significant number of changes to the source code that you
have to make. You should apply all of the changes that were applied to 3.3.
The Interix changes are not part of the base distribution.
The changes are in a tar file (with notes) on the CD (not installed).

(in reply to wysoft)
Post #: 2
RE: Gcc 3.4.4 and Interix - Nov. 10, '05, 3:18:02 AM   
wysoft

 

Posts: 12
Joined: Jul. 14, '05,
From: Washington State, USA
Status: offline
Thanks Rodney.

You're speaking of the ToolWorks CD, right?

(in reply to Rodney)
Post #: 3
RE: Gcc 3.4.4 and Interix - Nov. 10, '05, 3:28:05 AM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
> You're speaking of the ToolWorks CD, right?

Sorry, no. It's the SFU 3.5 CD. You likely just downloaded it.
I usually refer to it as the "CD" since it is available as an HTG CD
and is shorter to write :-)

(in reply to wysoft)
Post #: 4
RE: Gcc 3.4.4 and Interix - Nov. 10, '05, 2:49:37 PM   
tnat

 

Posts: 3
Joined: Nov. 2, '05,
Status: offline
I managed to build a working cross-compiler for MinGW with a native SFU GCC 3.4.4 although both versions use MinGW specific patches. I haven't checked if there are any similarities between the changes Interix has made and with those found in MinGW builds.

(in reply to Rodney)
Post #: 5
RE: Gcc 3.4.4 and Interix - Nov. 10, '05, 5:20:41 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
> I managed to build a working cross-compiler for MinGW with a native SFU GCC 3.4.4 ...

Very cool.

If you have any specific experiences you'd like to share, please do.
There seem to be at least several people trying gcc builds right now.

(in reply to tnat)
Post #: 6
RE: Gcc 3.4.4 and Interix - Nov. 15, '05, 9:01:47 AM   
ender

 

Posts: 13
Joined: Aug. 16, '05,
Status: offline
I build mingw-gcc 3.4.4 with the SFU gcc 3.3 some time ago already (only needed a patch from the mnigw wiki), and as far as I can see, it's working fine (the Win32 Gimp binaries at gimp-win.sf.net are compiled from Interix, since it takes about 25-30% of the time compared to msys).

(in reply to Rodney)
Post #: 7
RE: Gcc 3.4.4 and Interix - Nov. 26, '05, 8:44:50 AM   
tnat

 

Posts: 3
Joined: Nov. 2, '05,
Status: offline
I've decided not to use SFU anymore because the future versions are only for Server 2003 (too expensive) and Vista (I'll wait at least a year before upgrading). I came to this decision while trying to get recent versions of GCC and Binutils running using the old patches.

I really liked SFU quite a lot but the lack of support in areas important to me (development tools) helped me in my decision to start using coLinux as my primary cross-compiling platform.

(in reply to ender)
Post #: 8
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Gcc 3.4.4 and Interix Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.063