public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: porting to interix
@ 2009-06-18 16:48 rob.oeffner
  2009-06-18 17:29 ` Andrew Pinski
  2009-06-18 18:05 ` Timothy Wall
  0 siblings, 2 replies; 4+ messages in thread
From: rob.oeffner @ 2009-06-18 16:48 UTC (permalink / raw)
  To: jay.krell, robert, libffi-discuss

Hi Jay,

Yes you're correct. I'm running SFU and SUA and would like to get gcc to be
supported on those platforms. The gcc compiler ports that MS provides for
interix only include C/C++ so it doesn't include libffi.
I've so far adapted the GCC4.4.0 tarball on interix to bootstrap C and C++
only but I also want the Fortran compiler i.e. libffi is a prerequisite.

I seem to have read on some newsgroup that the error messages I encounter
when trying to build libffi has to do with the binutils assembler being
invoked during the build phase: it must be ELF compatible or so. If anyone
has a clue that would be great.

Many thanks,

Rob

p.s. Building python doesn't require libffi but just a C compiler AFAIK.



Original Message:
-----------------
From: Jay jay.krell@cornell.edu
Date: Thu, 18 Jun 2009 15:54:02 +0000
To: robert@oeffner.net, libffi-discuss@sources.redhat.com
Subject: RE: porting to interix



Robert, you are aware that libffi isn't used by C or C++?

It is for Objective-c or Java or Fortran or Ada, or something, probably
Java.

Do you want more than C and C++?

 

I would suggest:

 

ftp://mirrors.kernel.org/gnu/gcc/gcc-4.4.0/gcc-core-4.4.0.tar.gz

 The C compiler, and some other.

 

ftp://mirrors.kernel.org/gnu/gcc/gcc-4.4.0/gcc-g++-4.4.0.tar.gz

 add C++ if you want.

 

And get the 4.2 stuff.

 

and

http://www.microsoft.com/downloads/details.aspx?FamilyId=93FF2201-325E-487F-
A398-EFDE5758C47F
   (registration suggested, but not required)



That includes a patched gcc 4.2.

Compare with the mainline 4.2.

Apply patches to mainline 4.4.

 

Lobby Microsoft to submit its patches.

 

Also, if you have never built gcc before, I would suggest first building it
on a better supported platform, such as Linux or Cygwin.

 

That all said, since this is libffi-discuss :), it would be nice to have a
port.

  The more the better. :)

I wonder what the deal is with Python. I ran into a problem on hppa64-hpux
building Python, because libffi isn't supported there.

So I wonder how anyone ported Python to SFU, I know there is a download of
it, I haven't looked at it yet.

 

 - Jay
 
> From: robert@oeffner.net
> To: libffi-discuss@sources.redhat.com
> Date: Thu, 18 Jun 2009 11:33:09 -0400
> Subject: porting to interix
> 
> Hi,
> I hope this is the right people ask with my question.
> I'm trying to port gcc4.4.0 to interix, also known as subsystem for unix
on
> Windows. As you know it includes libffi. During the bootstrap I can't seem
> to compile libffi and I wonder if you'd ahve some suggestions on how to
get
> started. The error messages are as follows:
> 
> sh ./libtool --mode=compile
> /dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/xgcc
> -B/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/
> -B/opt/gcc.4.4/i586-pc-interix3.5/bin/
> -B/opt/gcc.4.4/i586-pc-interix3.5/lib/ -isystem
> /opt/gcc.4.4/i586-pc-interix3.5/include -isystem
> /opt/gcc.4.4/i586-pc-interix3.5/sys-include -I.
> -I../../../gcc-4.4.0/libffi/include -Iinclude
> -I../../../gcc-4.4.0/libffi/src -g -O2 -c -o src/x86/sysv.lo
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S
> gmake[3]: Leaving directory
> `/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/i586-pc-interix3.5/libssp'
> gmake[2]: Leaving directory
> `/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/i586-pc-interix3.5/libssp'
> libtool: compile: 
> /dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/xgcc
> -B/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/
> -B/opt/gcc.4.4/i586-pc-interix3.5/bin/
> -B/opt/gcc.4.4/i586-pc-interix3.5/lib/ -isystem
> /opt/gcc.4.4/i586-pc-interix3.5/include -isystem
> /opt/gcc.4.4/i586-pc-interix3.5/sys-include -DHAVE_CONFIG_H -I.
> -I../../../gcc-4.4.0/libffi -I. -I. -I../../../gcc-4.4.0/libffi/include
> -Iinclude -I../../../gcc-4.4.0/libffi/src -Wall -g -fexceptions -g -O2 -MT
> src/x86/ffi.lo -MD -MP -MF src/x86/.deps/ffi.Tpo -c
> ../../../gcc-4.4.0/libffi/src/x86/ffi.c -DPIC -o src/x86/.libs/ffi.o
> libtool: compile: 
> /dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/xgcc
> -B/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/
> -B/opt/gcc.4.4/i586-pc-interix3.5/bin/
> -B/opt/gcc.4.4/i586-pc-interix3.5/lib/ -isystem
> /opt/gcc.4.4/i586-pc-interix3.5/include -isystem
> /opt/gcc.4.4/i586-pc-interix3.5/sys-include -I.
> -I../../../gcc-4.4.0/libffi/include -Iinclude
> -I../../../gcc-4.4.0/libffi/src -g -O2 -c
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S -DPIC -o src/x86/.libs/sysv.o
> yes
> checking size of void *... ../../../gcc-4.4.0/libffi/src/x86/sysv.S:
> Assembler messages:
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:39: Warning: .type pseudo-op used
> outside of .def/.endef ignored.
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:39: Error: junk at end of line,
> first unrecognized character is `f'
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:164: Warning: .size pseudo-op
used
> outside of .def/.endef ignored.
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:164: Error: junk at end of line,
> first unrecognized character is `f'
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:169: Warning: .type pseudo-op
used
> outside of .def/.endef ignored.
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:169: Error: junk at end of line,
> first unrecognized character is `f'
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:241: Warning: .size pseudo-op
used
> outside of .def/.endef ignored.
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:241: Error: junk at end of line,
> first unrecognized character is `f'
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:264: Warning: .type pseudo-op
used
> outside of .def/.endef ignored.
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:264: Error: junk at end of line,
> first unrecognized character is `f'
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:325: Warning: .size pseudo-op
used
> outside of .def/.endef ignored.
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:325: Error: junk at end of line,
> first unrecognized character is `f'
> ../../../gcc-4.4.0/libffi/src/x86/sysv.S:328: Error: junk at end of line,
> first unrecognized character is `,'
> 
> 
> 
> Many thanks,
> 
> Robert Oeffner


--------------------------------------------------------------------
mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE


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

* Re: porting to interix
  2009-06-18 16:48 porting to interix rob.oeffner
@ 2009-06-18 17:29 ` Andrew Pinski
  2009-06-18 18:05 ` Timothy Wall
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Pinski @ 2009-06-18 17:29 UTC (permalink / raw)
  To: robert; +Cc: jay.krell, libffi-discuss

On Thu, Jun 18, 2009 at 9:47 AM,
rob.oeffner@o2.co.uk<rob.oeffner@o2.co.uk> wrote:
> Hi Jay,
>
> Yes you're correct. I'm running SFU and SUA and would like to get gcc to be
> supported on those platforms. The gcc compiler ports that MS provides for
> interix only include C/C++ so it doesn't include libffi.
> I've so far adapted the GCC4.4.0 tarball on interix to bootstrap C and C++
> only but I also want the Fortran compiler i.e. libffi is a prerequisite.


Fortran does not require libffi, Java is what requires libffi.

-- Pinski

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

* Re: porting to interix
  2009-06-18 16:48 porting to interix rob.oeffner
  2009-06-18 17:29 ` Andrew Pinski
@ 2009-06-18 18:05 ` Timothy Wall
  1 sibling, 0 replies; 4+ messages in thread
From: Timothy Wall @ 2009-06-18 18:05 UTC (permalink / raw)
  To: robert; +Cc: jay.krell, libffi-discuss


On Jun 18, 2009, at 12:47 PM, rob.oeffner@o2.co.uk wrote:

> Hi Jay,
>
> Yes you're correct. I'm running SFU and SUA and would like to get  
> gcc to be
> supported on those platforms. The gcc compiler ports that MS  
> provides for
> interix only include C/C++ so it doesn't include libffi.
> I've so far adapted the GCC4.4.0 tarball on interix to bootstrap C  
> and C++
> only but I also want the Fortran compiler i.e. libffi is a  
> prerequisite.
>
> I seem to have read on some newsgroup that the error messages I  
> encounter
> when trying to build libffi has to do with the binutils assembler  
> being
> invoked during the build phase: it must be ELF compatible or so. If  
> anyone
> has a clue that would be great.
>
> Many thanks,
>
> Rob
>
> p.s. Building python doesn't require libffi but just a C compiler  
> AFAIK.

Python includes its own hand-configured copy (copies?) of libffi for  
its ctypes module; check your python sources, since that might help  
you get a leg up on a straight libffi port.


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

* porting to interix
@ 2009-06-18 15:33 robert
  0 siblings, 0 replies; 4+ messages in thread
From: robert @ 2009-06-18 15:33 UTC (permalink / raw)
  To: libffi-discuss

Hi,
I hope this is the right people ask with my question.
I'm trying to port gcc4.4.0 to interix, also known as subsystem for unix on
Windows. As you know it includes libffi. During the bootstrap I can't seem
to compile libffi and I wonder if you'd ahve some suggestions on how to get
started. The error messages are as follows:

sh ./libtool --mode=compile
/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/xgcc
-B/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/
-B/opt/gcc.4.4/i586-pc-interix3.5/bin/
-B/opt/gcc.4.4/i586-pc-interix3.5/lib/ -isystem
/opt/gcc.4.4/i586-pc-interix3.5/include -isystem
/opt/gcc.4.4/i586-pc-interix3.5/sys-include -I.
-I../../../gcc-4.4.0/libffi/include -Iinclude
-I../../../gcc-4.4.0/libffi/src -g -O2   -c -o src/x86/sysv.lo
../../../gcc-4.4.0/libffi/src/x86/sysv.S
gmake[3]: Leaving directory
`/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/i586-pc-interix3.5/libssp'
gmake[2]: Leaving directory
`/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/i586-pc-interix3.5/libssp'
libtool: compile: 
/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/xgcc
-B/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/
-B/opt/gcc.4.4/i586-pc-interix3.5/bin/
-B/opt/gcc.4.4/i586-pc-interix3.5/lib/ -isystem
/opt/gcc.4.4/i586-pc-interix3.5/include -isystem
/opt/gcc.4.4/i586-pc-interix3.5/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc-4.4.0/libffi -I. -I. -I../../../gcc-4.4.0/libffi/include
-Iinclude -I../../../gcc-4.4.0/libffi/src -Wall -g -fexceptions -g -O2 -MT
src/x86/ffi.lo -MD -MP -MF src/x86/.deps/ffi.Tpo -c
../../../gcc-4.4.0/libffi/src/x86/ffi.c  -DPIC -o src/x86/.libs/ffi.o
libtool: compile: 
/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/xgcc
-B/dev/fs/E/Users/oeffner/tmp/GccSource/gccbuild/./gcc/
-B/opt/gcc.4.4/i586-pc-interix3.5/bin/
-B/opt/gcc.4.4/i586-pc-interix3.5/lib/ -isystem
/opt/gcc.4.4/i586-pc-interix3.5/include -isystem
/opt/gcc.4.4/i586-pc-interix3.5/sys-include -I.
-I../../../gcc-4.4.0/libffi/include -Iinclude
-I../../../gcc-4.4.0/libffi/src -g -O2 -c
../../../gcc-4.4.0/libffi/src/x86/sysv.S  -DPIC -o src/x86/.libs/sysv.o
yes
checking size of void *... ../../../gcc-4.4.0/libffi/src/x86/sysv.S:
Assembler messages:
../../../gcc-4.4.0/libffi/src/x86/sysv.S:39: Warning: .type pseudo-op used
outside of .def/.endef ignored.
../../../gcc-4.4.0/libffi/src/x86/sysv.S:39: Error: junk at end of line,
first unrecognized character is `f'
../../../gcc-4.4.0/libffi/src/x86/sysv.S:164: Warning: .size pseudo-op used
outside of .def/.endef ignored.
../../../gcc-4.4.0/libffi/src/x86/sysv.S:164: Error: junk at end of line,
first unrecognized character is `f'
../../../gcc-4.4.0/libffi/src/x86/sysv.S:169: Warning: .type pseudo-op used
outside of .def/.endef ignored.
../../../gcc-4.4.0/libffi/src/x86/sysv.S:169: Error: junk at end of line,
first unrecognized character is `f'
../../../gcc-4.4.0/libffi/src/x86/sysv.S:241: Warning: .size pseudo-op used
outside of .def/.endef ignored.
../../../gcc-4.4.0/libffi/src/x86/sysv.S:241: Error: junk at end of line,
first unrecognized character is `f'
../../../gcc-4.4.0/libffi/src/x86/sysv.S:264: Warning: .type pseudo-op used
outside of .def/.endef ignored.
../../../gcc-4.4.0/libffi/src/x86/sysv.S:264: Error: junk at end of line,
first unrecognized character is `f'
../../../gcc-4.4.0/libffi/src/x86/sysv.S:325: Warning: .size pseudo-op used
outside of .def/.endef ignored.
../../../gcc-4.4.0/libffi/src/x86/sysv.S:325: Error: junk at end of line,
first unrecognized character is `f'
../../../gcc-4.4.0/libffi/src/x86/sysv.S:328: Error: junk at end of line,
first unrecognized character is `,'



Many thanks,

Robert Oeffner


--------------------------------------------------------------------
mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail


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

end of thread, other threads:[~2009-06-18 18:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-18 16:48 porting to interix rob.oeffner
2009-06-18 17:29 ` Andrew Pinski
2009-06-18 18:05 ` Timothy Wall
  -- strict thread matches above, loose matches on Subject: below --
2009-06-18 15:33 robert

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).