Newlib i386-pe Issues

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Hoozim
Member
Member
Posts: 53
Joined: Fri Jul 23, 2010 8:26 am

Newlib i386-pe Issues

Post 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
Snake
Posts: 19
Joined: Wed Mar 21, 2012 7:38 pm

Re: Newlib i386-pe Issues

Post 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.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Newlib i386-pe Issues

Post by AJ »

Hi

Alternatively, you have binutils but have not added your cross-compiler / binutils paths to the PATH environment variable.

Cheers,
Adam
Hoozim
Member
Member
Posts: 53
Joined: Fri Jul 23, 2010 8:26 am

Re: Newlib i386-pe Issues

Post 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?
User avatar
Solar
Member
Member
Posts: 7635
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Newlib i386-pe Issues

Post 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.
Every good solution is obvious once you've found it.
Hoozim
Member
Member
Posts: 53
Joined: Fri Jul 23, 2010 8:26 am

Re: Newlib i386-pe Issues

Post 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
Hoozim
Member
Member
Posts: 53
Joined: Fri Jul 23, 2010 8:26 am

Re: Newlib i386-pe Issues

Post 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
Hoozim
Member
Member
Posts: 53
Joined: Fri Jul 23, 2010 8:26 am

Re: Newlib i386-pe Issues

Post by Hoozim »

I am going through the specification, it is short.

Hoozim
User avatar
bubach
Member
Member
Posts: 1224
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re: Newlib i386-pe Issues

Post 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?
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: Newlib i386-pe Issues

Post by Brynet-Inc »

I guess he can't read.
http://gcc.gnu.org/gcc-4.6/changes.html wrote:The i[34567]86-*-pe alias for Cygwin targets has also been obsoleted; users should configure for i[34567]86-*-cygwin* instead.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Hoozim
Member
Member
Posts: 53
Joined: Fri Jul 23, 2010 8:26 am

Re: Newlib i386-pe Issues

Post 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.
Hoozim
Member
Member
Posts: 53
Joined: Fri Jul 23, 2010 8:26 am

Re: Newlib i386-pe Issues

Post 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.
Post Reply