Page 1 of 1
Newlib i386-pe Issues
Posted: Tue Mar 27, 2012 6:28 pm
by Hoozim
Hello,
I tried compiling Newlib with i386-pe as the target (-target=i386-pe) and it failed. The configure passed but when I typed make all install, I got this:
/bin/bash: command not found: i386-pe-ar.
Does anyone know what I need to do to solve this?
Hoozim
Re: Newlib i386-pe Issues
Posted: Tue Mar 27, 2012 9:30 pm
by Snake
You are missing a version of ar which works on your target. Ar is a program used to create static libraries, and it is part of the binutils. You must have turned it off when building binutils.
Re: Newlib i386-pe Issues
Posted: Wed Mar 28, 2012 2:24 am
by AJ
Hi
Alternatively, you have binutils but have not added your cross-compiler / binutils paths to the PATH environment variable.
Cheers,
Adam
Re: Newlib i386-pe Issues
Posted: Wed Mar 28, 2012 4:16 pm
by Hoozim
Hello,
I built buinutils and gcc for i386-pe. When I go to build newlib, it fails. After scrolling up, I found numerous errors stating that cygwin/config.h is unable to be found. I am not using cygwin. I am using Ubuntu. What is happening?
Re: Newlib i386-pe Issues
Posted: Wed Mar 28, 2012 11:30 pm
by Solar
What is the compiler target, as stated in the output of the build process?
I'm guessing that it "assumes" that PE == Windows, and hence "assumes" you're running Cygwin on top of Windows (as dependencies on runtime / headers couldn't be satisfied otherwise).
Pure guessing.
Re: Newlib i386-pe Issues
Posted: Thu Mar 29, 2012 3:11 pm
by Hoozim
I am targeting i386-pe in the configure step. Is their any way to tell the build process that I am on Linux?
Hoozim
Re: Newlib i386-pe Issues
Posted: Thu Mar 29, 2012 3:52 pm
by Hoozim
I think I will just implement ELF support. Especially with GCC dropping PE support after 4.6.3. I will try to debug it though just to see if I can figure out what is going wrong.
Hoozim
Re: Newlib i386-pe Issues
Posted: Fri Mar 30, 2012 4:09 pm
by Hoozim
I am going through the specification, it is short.
Hoozim
Re: Newlib i386-pe Issues
Posted: Fri Mar 30, 2012 10:39 pm
by bubach
Hoozim wrote:I think I will just implement ELF support. Especially with GCC dropping PE support after 4.6.3.
Why would they drop PE support? Where did you get that info?
Re: Newlib i386-pe Issues
Posted: Fri Mar 30, 2012 11:49 pm
by Brynet-Inc
Re: Newlib i386-pe Issues
Posted: Sat Mar 31, 2012 9:37 am
by Hoozim
When building GCC under Linux with i386-pe target, it told me that GCC would drop PE support unless a maintainer steps forward. It also made me configure with --enable-obsolete.
Re: Newlib i386-pe Issues
Posted: Sat Mar 31, 2012 2:57 pm
by Hoozim
I tried to build newlib under cygwin with i386-pe gcc and binutils. Again, I got that cygwin/config.h, unable to find error.