Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Fails on MinGW32 #30

Closed
GoogleCodeExporter opened this issue Aug 14, 2015 · 7 comments
Closed

Build Fails on MinGW32 #30

GoogleCodeExporter opened this issue Aug 14, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

When trying to build the google-perftools on MinGW32 the build fails.

The problem is that when building with make, it is assumed that is is a 
Posix target, but it is a Win32 target. As a result it is required to have 
Visual Studio to build on Windows.

To reproduce the error: (On a Windows platform.)

1.  Install MinGW & MSYS.

2.  tar -xzvf google-perftools-0.93.tar.gz

3.  ./configure 

4.  make

This requires only a change in the buildsystem, since the code for Windows 
is already there.






Original issue reported on code.google.com by sean.rio...@gmail.com on 11 Oct 2007 at 9:13

@GoogleCodeExporter
Copy link
Author

MinGW is a tricky environment; it's some mix of win32 and posix.

It would be very helpful to see the rest of the error report.  What happens 
when you
type 'make'?  Seeing the configure output would be very helpful too.

Original comment by csilv...@gmail.com on 11 Oct 2007 at 9:02

@GoogleCodeExporter
Copy link
Author

To make a lang log short. It fails while trying to build against pthreads. I 
will
provide more details later. In my opinion is that it does not use the sources in
src/windows.

In my experience MinGW with MSYS is just win32 with gcc and gnu build 
environment.
The main thing to do is to make a conditional build, eg. with AM_CONDITIONAL. 
Cygwin
on the other hand is a different issue.

I will look into to issue and provide more info and implementation help in the 
coming
days.

Original comment by sean.rio...@gmail.com on 12 Oct 2007 at 4:04

@GoogleCodeExporter
Copy link
Author

I instaleld MinGW and MSYS to play around with, and ran into the same problems 
with
pthreads that you mention.  Looking on the web, I see that msys does not support
pthreads, so no surprise there's a problem.

The solution, as you point out, is to use the windows code we have to implement 
the
threading library, instead of using pthreads.  But I couldn't figure out how to 
get
that to work either.  I believe that MSYS is win32 with a unix build 
environment, but
I dont' know how to get access to the win32 part.  I don't see windows.h 
anywhere
inside the msys shell, for instance.

If you have any hints on how to get windows/port.h and port.cc to compile under 
msys,
I'll be happy to make the requisite configure changes to get that to work 
automagically.

Original comment by csilv...@gmail.com on 26 Nov 2007 at 11:02

@GoogleCodeExporter
Copy link
Author

Never mind, I found windows.h.  I'll see what I can do to get something to 
compile
under msys for the next release.

Original comment by csilv...@gmail.com on 26 Nov 2007 at 11:37

@GoogleCodeExporter
Copy link
Author

I've got the build working for mingw now (it was a lot of work!)  I expect 
something
will be out in the next release -- hopefully this week.  There are still some
problems with the linker (I think), so I'm not sure everything will work 
perfectly,
but it's a good start.

Original comment by csilv...@gmail.com on 27 Nov 2007 at 11:33

@GoogleCodeExporter
Copy link
Author

Original comment by csilv...@gmail.com on 27 Nov 2007 at 11:33

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Should be fixed in perftools 0.94

Original comment by csilv...@gmail.com on 29 Nov 2007 at 11:48

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant