Stumped...building GCC 4.4.0 and getting "File format not recognized"

View: New views
9 Messages — Rating Filter:   Alert me  

Stumped...building GCC 4.4.0 and getting "File format not recognized"

by Lloyd Sargent-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to build GCC 4.4.0 and I suspect I have something missing/
wrong in my build structure. I keep getting the following problem:

libtool: link: rm -fr  .libs/libgomp.lib
Configuring in mingw32/boehm-gc
libtool: link: /home/lloyd/gcc_build/gccbf/./gcc/xgcc -B/home/lloyd/
gcc_build/gccbf/./gcc/ -L/home/lloyd/gcc_build/gccbf/mingw32/winsup/
mingw -L
/home/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -isystem /home/
lloyd/gcc_build/gcc-4.4.0/winsup/mingw/include -isystem /home/lloyd/
gcc_bui
ld/gcc-4.4.0/winsup/w32api/include -B/mingw/mingw32/bin/ -B/mingw/
mingw32/lib/ -isystem /mingw/mingw32/include -isystem /mingw/mingw32/
sys-inclu
de -shared  .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/
env.o .libs/error.o .libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/
loop_ull.o
  .libs/ordered.o .libs/parallel.o .libs/sections.o .libs/
single.o .libs/task.o .libs/team.o .libs/work.o .libs/lock.o .libs/
mutex.o .libs/proc.o
  .libs/sem.o .libs/bar.o .libs/ptrlock.o .libs/time.o .libs/
fortran.o .libs/affinity.o   -L/home/lloyd/gcc_build/gccbf/mingw32/
winsup/mingw -L/h
ome/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -lpthread  -Wl,-O1  
-Wl,--version-script -Wl,../../../gcc-4.4.0/libgomp/libgomp.map   -
o .lib
s/libgomp-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -
Xlinker .libs/libgomp-1.dll
Creating library file: .libs/libgomp-1.dll
libtool: link: (cd ".libs" && rm -f "libgomp.lib" && ln -s  
"libgomp-1.dll" "libgomp.lib")
libtool: link: /mingw/mingw32/bin/ar rc .libs/libgomp.lib  alloc.o  
barrier.o critical.o env.o error.o iter.o iter_ull.o loop.o loop_ull.o  
ordere
d.o parallel.o sections.o single.o task.o team.o work.o lock.o mutex.o  
proc.o sem.o bar.o ptrlock.o time.o fortran.o affinity.o
c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File format not  
recognized
make[4]: *** [libgomp.la] Error 1
make[4]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/libgomp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/libgomp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/libgomp'
make[1]: *** [all-target-libgomp] Error 2
make[1]: *** Waiting for unfinished jobs....

It is the "c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File format  
not recognized" that has me particularly puzzled.

If I could get a little assistance I would appreciate it. My goal is  
to rebuild Objc with garbage collection.

Cheers,

Lloyd


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

A: Yes.
> Q: Is it really?
>> A: Because the logical conversation flow is disrupted.
>>> Q: Why does MinGW object to top posting?
(abstracted from Larry Hall signature)

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Re: Stumped...building GCC 4.4.0 and getting "File format not recognized"

by King InuYasha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Nov 5, 2009 at 4:24 PM, Lloyd Sargent <lloyd@...> wrote:
I'm trying to build GCC 4.4.0 and I suspect I have something missing/
wrong in my build structure. I keep getting the following problem:

libtool: link: rm -fr  .libs/libgomp.lib
Configuring in mingw32/boehm-gc
libtool: link: /home/lloyd/gcc_build/gccbf/./gcc/xgcc -B/home/lloyd/
gcc_build/gccbf/./gcc/ -L/home/lloyd/gcc_build/gccbf/mingw32/winsup/
mingw -L
/home/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -isystem /home/
lloyd/gcc_build/gcc-4.4.0/winsup/mingw/include -isystem /home/lloyd/
gcc_bui
ld/gcc-4.4.0/winsup/w32api/include -B/mingw/mingw32/bin/ -B/mingw/
mingw32/lib/ -isystem /mingw/mingw32/include -isystem /mingw/mingw32/
sys-inclu
de -shared  .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/
env.o .libs/error.o .libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/
loop_ull.o
 .libs/ordered.o .libs/parallel.o .libs/sections.o .libs/
single.o .libs/task.o .libs/team.o .libs/work.o .libs/lock.o .libs/
mutex.o .libs/proc.o
 .libs/sem.o .libs/bar.o .libs/ptrlock.o .libs/time.o .libs/
fortran.o .libs/affinity.o   -L/home/lloyd/gcc_build/gccbf/mingw32/
winsup/mingw -L/h
ome/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -lpthread  -Wl,-O1
-Wl,--version-script -Wl,../../../gcc-4.4.0/libgomp/libgomp.map   -
o .lib
s/libgomp-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -
Xlinker .libs/libgomp-1.dll
Creating library file: .libs/libgomp-1.dll
libtool: link: (cd ".libs" && rm -f "libgomp.lib" && ln -s
"libgomp-1.dll" "libgomp.lib")
libtool: link: /mingw/mingw32/bin/ar rc .libs/libgomp.lib  alloc.o
barrier.o critical.o env.o error.o iter.o iter_ull.o loop.o loop_ull.o
ordere
d.o parallel.o sections.o single.o task.o team.o work.o lock.o mutex.o
proc.o sem.o bar.o ptrlock.o time.o fortran.o affinity.o
c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File format not
recognized
make[4]: *** [libgomp.la] Error 1
make[4]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/libgomp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/libgomp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/libgomp'
make[1]: *** [all-target-libgomp] Error 2
make[1]: *** Waiting for unfinished jobs....

It is the "c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File format
not recognized" that has me particularly puzzled.

If I could get a little assistance I would appreciate it. My goal is
to rebuild Objc with garbage collection.

Cheers,

Lloyd




The problem is the type of library. You are compiling with MSVC *.lib static libs. You need to change it to *.a format, which is what GNU linkers uses for linker libraries.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

A: Yes.
> Q: Is it really?
>> A: Because the logical conversation flow is disrupted.
>>> Q: Why does MinGW object to top posting?
(abstracted from Larry Hall signature)

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Re: Stumped...building GCC 4.4.0 and getting "File format not recognized"

by JonY-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/6/2009 06:24, Lloyd Sargent wrote:

> I'm trying to build GCC 4.4.0 and I suspect I have something missing/
> wrong in my build structure. I keep getting the following problem:
>
> libtool: link: rm -fr  .libs/libgomp.lib
> Configuring in mingw32/boehm-gc
> libtool: link: /home/lloyd/gcc_build/gccbf/./gcc/xgcc -B/home/lloyd/
> gcc_build/gccbf/./gcc/ -L/home/lloyd/gcc_build/gccbf/mingw32/winsup/
> mingw -L
> /home/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -isystem /home/
> lloyd/gcc_build/gcc-4.4.0/winsup/mingw/include -isystem /home/lloyd/
> gcc_bui
> ld/gcc-4.4.0/winsup/w32api/include -B/mingw/mingw32/bin/ -B/mingw/
> mingw32/lib/ -isystem /mingw/mingw32/include -isystem /mingw/mingw32/
> sys-inclu
> de -shared  .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/
> env.o .libs/error.o .libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/
> loop_ull.o
>    .libs/ordered.o .libs/parallel.o .libs/sections.o .libs/
> single.o .libs/task.o .libs/team.o .libs/work.o .libs/lock.o .libs/
> mutex.o .libs/proc.o
>    .libs/sem.o .libs/bar.o .libs/ptrlock.o .libs/time.o .libs/
> fortran.o .libs/affinity.o   -L/home/lloyd/gcc_build/gccbf/mingw32/
> winsup/mingw -L/h
> ome/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -lpthread  -Wl,-O1
> -Wl,--version-script -Wl,../../../gcc-4.4.0/libgomp/libgomp.map   -
> o .lib
> s/libgomp-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -
> Xlinker .libs/libgomp-1.dll
> Creating library file: .libs/libgomp-1.dll
> libtool: link: (cd ".libs"&&  rm -f "libgomp.lib"&&  ln -s
> "libgomp-1.dll" "libgomp.lib")
> libtool: link: /mingw/mingw32/bin/ar rc .libs/libgomp.lib  alloc.o
> barrier.o critical.o env.o error.o iter.o iter_ull.o loop.o loop_ull.o
> ordere
> d.o parallel.o sections.o single.o task.o team.o work.o lock.o mutex.o
> proc.o sem.o bar.o ptrlock.o time.o fortran.o affinity.o
> c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File format not
> recognized
> make[4]: *** [libgomp.la] Error 1
> make[4]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/libgomp'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/libgomp'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/libgomp'
> make[1]: *** [all-target-libgomp] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
> It is the "c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File format
> not recognized" that has me particularly puzzled.
>
> If I could get a little assistance I would appreciate it. My goal is
> to rebuild Objc with garbage collection.
>

Hi,

This is a strange issue with libtool, but there is an easy fix for it.

Just edit the "libtool" file in your libgomp build directory, search for
".lib" and change it to ".dll.a".

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

A: Yes.
> Q: Is it really?
>> A: Because the logical conversation flow is disrupted.
>>> Q: Why does MinGW object to top posting?
(abstracted from Larry Hall signature)

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Re: Stumped...building GCC 4.4.0 and getting "File format not recognized"

by Lloyd Sargent-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Nov 5, 2009, at 5:44 PM, King InuYasha wrote:

>> On Thu, Nov 5, 2009 at 4:24 PM, Lloyd Sargent <lloyd@...
>> > wrote:
>> I'm trying to build GCC 4.4.0 and I suspect I have something missing/
>> wrong in my build structure. I keep getting the following problem:
>>
>> libtool: link: rm -fr  .libs/libgomp.lib
>> Configuring in mingw32/boehm-gc
>> libtool: link: /home/lloyd/gcc_build/gccbf/./gcc/xgcc -B/home/lloyd/
>> gcc_build/gccbf/./gcc/ -L/home/lloyd/gcc_build/gccbf/mingw32/winsup/
>> mingw -L
>> /home/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -isystem /home/
>> lloyd/gcc_build/gcc-4.4.0/winsup/mingw/include -isystem /home/lloyd/
>> gcc_bui
>> ld/gcc-4.4.0/winsup/w32api/include -B/mingw/mingw32/bin/ -B/mingw/
>> mingw32/lib/ -isystem /mingw/mingw32/include -isystem /mingw/mingw32/
>> sys-inclu
>> de -shared  .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/
>> env.o .libs/error.o .libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/
>> loop_ull.o
>>  .libs/ordered.o .libs/parallel.o .libs/sections.o .libs/
>> single.o .libs/task.o .libs/team.o .libs/work.o .libs/lock.o .libs/
>> mutex.o .libs/proc.o
>>  .libs/sem.o .libs/bar.o .libs/ptrlock.o .libs/time.o .libs/
>> fortran.o .libs/affinity.o   -L/home/lloyd/gcc_build/gccbf/mingw32/
>> winsup/mingw -L/h
>> ome/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -lpthread  -Wl,-
>> O1
>> -Wl,--version-script -Wl,../../../gcc-4.4.0/libgomp/libgomp.map   -
>> o .lib
>> s/libgomp-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -
>> Xlinker .libs/libgomp-1.dll
>> Creating library file: .libs/libgomp-1.dll
>> libtool: link: (cd ".libs" && rm -f "libgomp.lib" && ln -s
>> "libgomp-1.dll" "libgomp.lib")
>> libtool: link: /mingw/mingw32/bin/ar rc .libs/libgomp.lib  alloc.o
>> barrier.o critical.o env.o error.o iter.o iter_ull.o loop.o  
>> loop_ull.o
>> ordere
>> d.o parallel.o sections.o single.o task.o team.o work.o lock.o  
>> mutex.o
>> proc.o sem.o bar.o ptrlock.o time.o fortran.o affinity.o
>> c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File format not
>> recognized
>> make[4]: *** [libgomp.la] Error 1
>> make[4]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/
>> libgomp'
>> make[3]: *** [all-recursive] Error 1
>> make[3]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/
>> libgomp'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/
>> libgomp'
>> make[1]: *** [all-target-libgomp] Error 2
>> make[1]: *** Waiting for unfinished jobs....
>>
>> It is the "c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File  
>> format
>> not recognized" that has me particularly puzzled.
>>
>> If I could get a little assistance I would appreciate it. My goal is
>> to rebuild Objc with garbage collection.
>>
>> Cheers,
>>
>> Lloyd
>
> The problem is the type of library. You are compiling with MSVC  
> *.lib static libs. You need to change it to *.a format, which is  
> what GNU linkers uses for linker libraries.

All of what you say is correct (and information that I gleaned from  
the error message). However, this does not help me get from where I am  
to where I want to be.

Let me back up and say "has anyone resolved this problem and if so,  
what needs to be changed in order to resolve it?"

If it has NOT been resolved, then that is also an answer.

Cheers,

Lloyd



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

A: Yes.
> Q: Is it really?
>> A: Because the logical conversation flow is disrupted.
>>> Q: Why does MinGW object to top posting?
(abstracted from Larry Hall signature)

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Re: Stumped...building GCC 4.4.0 and getting "File format not recognized"

by King InuYasha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Nov 5, 2009 at 6:17 PM, Lloyd Sargent <lloyd@...> wrote:
On Nov 5, 2009, at 5:44 PM, King InuYasha wrote:

>> On Thu, Nov 5, 2009 at 4:24 PM, Lloyd Sargent <lloyd@...
>> > wrote:
>> I'm trying to build GCC 4.4.0 and I suspect I have something missing/
>> wrong in my build structure. I keep getting the following problem:
>>
>> libtool: link: rm -fr  .libs/libgomp.lib
>> Configuring in mingw32/boehm-gc
>> libtool: link: /home/lloyd/gcc_build/gccbf/./gcc/xgcc -B/home/lloyd/
>> gcc_build/gccbf/./gcc/ -L/home/lloyd/gcc_build/gccbf/mingw32/winsup/
>> mingw -L
>> /home/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -isystem /home/
>> lloyd/gcc_build/gcc-4.4.0/winsup/mingw/include -isystem /home/lloyd/
>> gcc_bui
>> ld/gcc-4.4.0/winsup/w32api/include -B/mingw/mingw32/bin/ -B/mingw/
>> mingw32/lib/ -isystem /mingw/mingw32/include -isystem /mingw/mingw32/
>> sys-inclu
>> de -shared  .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/
>> env.o .libs/error.o .libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/
>> loop_ull.o
>>  .libs/ordered.o .libs/parallel.o .libs/sections.o .libs/
>> single.o .libs/task.o .libs/team.o .libs/work.o .libs/lock.o .libs/
>> mutex.o .libs/proc.o
>>  .libs/sem.o .libs/bar.o .libs/ptrlock.o .libs/time.o .libs/
>> fortran.o .libs/affinity.o   -L/home/lloyd/gcc_build/gccbf/mingw32/
>> winsup/mingw -L/h
>> ome/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -lpthread  -Wl,-
>> O1
>> -Wl,--version-script -Wl,../../../gcc-4.4.0/libgomp/libgomp.map   -
>> o .lib
>> s/libgomp-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -
>> Xlinker .libs/libgomp-1.dll
>> Creating library file: .libs/libgomp-1.dll
>> libtool: link: (cd ".libs" && rm -f "libgomp.lib" && ln -s
>> "libgomp-1.dll" "libgomp.lib")
>> libtool: link: /mingw/mingw32/bin/ar rc .libs/libgomp.lib  alloc.o
>> barrier.o critical.o env.o error.o iter.o iter_ull.o loop.o
>> loop_ull.o
>> ordere
>> d.o parallel.o sections.o single.o task.o team.o work.o lock.o
>> mutex.o
>> proc.o sem.o bar.o ptrlock.o time.o fortran.o affinity.o
>> c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File format not
>> recognized
>> make[4]: *** [libgomp.la] Error 1
>> make[4]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/
>> libgomp'
>> make[3]: *** [all-recursive] Error 1
>> make[3]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/
>> libgomp'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/
>> libgomp'
>> make[1]: *** [all-target-libgomp] Error 2
>> make[1]: *** Waiting for unfinished jobs....
>>
>> It is the "c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File
>> format
>> not recognized" that has me particularly puzzled.
>>
>> If I could get a little assistance I would appreciate it. My goal is
>> to rebuild Objc with garbage collection.
>>
>> Cheers,
>>
>> Lloyd
>
> The problem is the type of library. You are compiling with MSVC
> *.lib static libs. You need to change it to *.a format, which is
> what GNU linkers uses for linker libraries.

All of what you say is correct (and information that I gleaned from
the error message). However, this does not help me get from where I am
to where I want to be.

Let me back up and say "has anyone resolved this problem and if so,
what needs to be changed in order to resolve it?"

If it has NOT been resolved, then that is also an answer.

Cheers,

Lloyd



There used to be a tool that allowed you to change MSVC libraries into the MinGW format. I think it was called "reimp" or something like that. 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

A: Yes.
> Q: Is it really?
>> A: Because the logical conversation flow is disrupted.
>>> Q: Why does MinGW object to top posting?
(abstracted from Larry Hall signature)

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Re: Stumped...building GCC 4.4.0 and getting "File format not recognized"

by JonY-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/6/2009 15:10, King InuYasha wrote:

> On Thu, Nov 5, 2009 at 6:17 PM, Lloyd Sargent<lloyd@...>wrote:
>
>> On Nov 5, 2009, at 5:44 PM, King InuYasha wrote:
>>
>>>> On Thu, Nov 5, 2009 at 4:24 PM, Lloyd Sargent<lloyd@...
>>>>> wrote:
>>>> I'm trying to build GCC 4.4.0 and I suspect I have something missing/
>>>> wrong in my build structure. I keep getting the following problem:
>>>>
>>>> libtool: link: rm -fr  .libs/libgomp.lib
>>>> Configuring in mingw32/boehm-gc
>>>> libtool: link: /home/lloyd/gcc_build/gccbf/./gcc/xgcc -B/home/lloyd/
>>>> gcc_build/gccbf/./gcc/ -L/home/lloyd/gcc_build/gccbf/mingw32/winsup/
>>>> mingw -L
>>>> /home/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -isystem /home/
>>>> lloyd/gcc_build/gcc-4.4.0/winsup/mingw/include -isystem /home/lloyd/
>>>> gcc_bui
>>>> ld/gcc-4.4.0/winsup/w32api/include -B/mingw/mingw32/bin/ -B/mingw/
>>>> mingw32/lib/ -isystem /mingw/mingw32/include -isystem /mingw/mingw32/
>>>> sys-inclu
>>>> de -shared  .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/
>>>> env.o .libs/error.o .libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/
>>>> loop_ull.o
>>>>   .libs/ordered.o .libs/parallel.o .libs/sections.o .libs/
>>>> single.o .libs/task.o .libs/team.o .libs/work.o .libs/lock.o .libs/
>>>> mutex.o .libs/proc.o
>>>>   .libs/sem.o .libs/bar.o .libs/ptrlock.o .libs/time.o .libs/
>>>> fortran.o .libs/affinity.o   -L/home/lloyd/gcc_build/gccbf/mingw32/
>>>> winsup/mingw -L/h
>>>> ome/lloyd/gcc_build/gccbf/mingw32/winsup/w32api/lib -lpthread  -Wl,-
>>>> O1
>>>> -Wl,--version-script -Wl,../../../gcc-4.4.0/libgomp/libgomp.map   -
>>>> o .lib
>>>> s/libgomp-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -
>>>> Xlinker .libs/libgomp-1.dll
>>>> Creating library file: .libs/libgomp-1.dll
>>>> libtool: link: (cd ".libs"&&  rm -f "libgomp.lib"&&  ln -s
>>>> "libgomp-1.dll" "libgomp.lib")
>>>> libtool: link: /mingw/mingw32/bin/ar rc .libs/libgomp.lib  alloc.o
>>>> barrier.o critical.o env.o error.o iter.o iter_ull.o loop.o
>>>> loop_ull.o
>>>> ordere
>>>> d.o parallel.o sections.o single.o task.o team.o work.o lock.o
>>>> mutex.o
>>>> proc.o sem.o bar.o ptrlock.o time.o fortran.o affinity.o
>>>> c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File format not
>>>> recognized
>>>> make[4]: *** [libgomp.la] Error 1
>>>> make[4]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/
>>>> libgomp'
>>>> make[3]: *** [all-recursive] Error 1
>>>> make[3]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/
>>>> libgomp'
>>>> make[2]: *** [all] Error 2
>>>> make[2]: Leaving directory `/home/lloyd/gcc_build/gccbf/mingw32/
>>>> libgomp'
>>>> make[1]: *** [all-target-libgomp] Error 2
>>>> make[1]: *** Waiting for unfinished jobs....
>>>>
>>>> It is the "c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File
>>>> format
>>>> not recognized" that has me particularly puzzled.
>>>>
>>>> If I could get a little assistance I would appreciate it. My goal is
>>>> to rebuild Objc with garbage collection.
>>>>
>>>> Cheers,
>>>>
>>>> Lloyd
>>>
>>> The problem is the type of library. You are compiling with MSVC
>>> *.lib static libs. You need to change it to *.a format, which is
>>> what GNU linkers uses for linker libraries.
>>
>> All of what you say is correct (and information that I gleaned from
>> the error message). However, this does not help me get from where I am
>> to where I want to be.
>>
>> Let me back up and say "has anyone resolved this problem and if so,
>> what needs to be changed in order to resolve it?"
>>
>> If it has NOT been resolved, then that is also an answer.
>>
>> Cheers,
>>
>> Lloyd
>>
>>
>>
> There used to be a tool that allowed you to change MSVC libraries into the
> MinGW format. I think it was called "reimp" or something like that.
>

Hi,

King InuYasha: Please read carefully what OP has posted, he is NOT
trying to link to an MSVC lib, he is trying to build a libgomp dll along
with its import lib.

Lloyd Sargent: It is due to a libgomp/libtool weirdness, I have no idea
where the problem came from, but you can work around this by editing the
"libtool" shell script that is called for the linking process.

It accidentally passed ".lib" to ld instead of the usual ".dll.a"

Simply look into the libtool file and search for the ".lib" file
extension and change it to ".dll.a".

I cannot remember which line you need to edit, you can post the
"libtool" file here too if you can't find to correct line.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

A: Yes.
> Q: Is it really?
>> A: Because the logical conversation flow is disrupted.
>>> Q: Why does MinGW object to top posting?
(abstracted from Larry Hall signature)

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Re: Stumped...building GCC 4.4.0 and getting "File format not recognized"

by Earnie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Quoting King InuYasha <ngompa13@...>:

> On Thu, Nov 5, 2009 at 4:24 PM, Lloyd Sargent <lloyd@...>wrote:
>
>>
>> It is the "c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File format
>> not recognized" that has me particularly puzzled.
>>
>> If I could get a little assistance I would appreciate it. My goal is
>> to rebuild Objc with garbage collection.
>>
>> Cheers,
>>
>> Lloyd
>>
>>
>>
>
> The problem is the type of library. You are compiling with MSVC *.lib static
> libs. You need to change it to *.a format, which is what GNU linkers uses
> for linker libraries.
>

Uhm, that isn't the problem here.  In fact the linker will look for  
foo.lib when -lfoo is given as well as foo.dll and libfoo.a.  The  
problem appears to be that libgomp.lib was built with Microsoft's  
tools and not the binutils ar tool.

--
Earnie




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

A: Yes.
> Q: Is it really?
>> A: Because the logical conversation flow is disrupted.
>>> Q: Why does MinGW object to top posting?
(abstracted from Larry Hall signature)

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Re: Stumped...building GCC 4.4.0 and getting "File format not recognized"

by Lloyd Sargent-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Nov 6, 2009, at 7:50 AM, Earnie Boyd wrote:

> Quoting King InuYasha <ngompa13@...>:
>
>> On Thu, Nov 5, 2009 at 4:24 PM, Lloyd Sargent <lloyd@...
>> >wrote:
>>
>>>
>>> It is the "c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File  
>>> format
>>> not recognized" that has me particularly puzzled.
>>>
>>> If I could get a little assistance I would appreciate it. My goal is
>>> to rebuild Objc with garbage collection.
>>>
>>> Cheers,
>>>
>>> Lloyd
>>>
>>>
>>>
>>
>> The problem is the type of library. You are compiling with MSVC  
>> *.lib static
>> libs. You need to change it to *.a format, which is what GNU  
>> linkers uses
>> for linker libraries.
>>
>
> Uhm, that isn't the problem here.  In fact the linker will look for
> foo.lib when -lfoo is given as well as foo.dll and libfoo.a.  The
> problem appears to be that libgomp.lib was built with Microsoft's
> tools and not the binutils ar tool.

THAT is helpful.

So I guess my question has morphed into "how the heck do you build  
4.4.0"? I do not possess Microsoft tools.

Cheers,

Lloyd

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Re: Stumped...building GCC 4.4.0 and getting "File format not recognized"

by Lloyd Sargent-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Nov 6, 2009, at 7:50 AM, Earnie Boyd wrote:

> Quoting King InuYasha <ngompa13@...>:
>
>> On Thu, Nov 5, 2009 at 4:24 PM, Lloyd Sargent <lloyd@...
>> >wrote:
>>
>>>
>>> It is the "c:\MinGW\mingw32\bin\ar.exe: .libs/libgomp.lib: File  
>>> format
>>> not recognized" that has me particularly puzzled.
>>>
>>> If I could get a little assistance I would appreciate it. My goal is
>>> to rebuild Objc with garbage collection.
>>
>> The problem is the type of library. You are compiling with MSVC  
>> *.lib static
>> libs. You need to change it to *.a format, which is what GNU  
>> linkers uses
>> for linker libraries.
>>
>
> Uhm, that isn't the problem here.  In fact the linker will look for
> foo.lib when -lfoo is given as well as foo.dll and libfoo.a.  The
> problem appears to be that libgomp.lib was built with Microsoft's
> tools and not the binutils ar tool.

Wait. Timeout. Backup.

== I do not have Microsoft tools. Nor have I ever had the Microsoft  
tools. ==

Anything that was built was done so using Mingw.

I am attempting to REBUILD GCC 4.4.0 so that Objective C has garbage  
collection. Unfortunately, I haven't progressed passed the point  
indicated.

All code was compiled using the Mingw/GCC Makefile's or shell scripts  
on the Sourceforge site. If these have been superseded by NEW files  
(perhaps in CVS?), I would like to know.

Thanks and I am truly sorry for any confusion I may have injected into  
this thread.

Cheers,

Lloyd









------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users