fanzju / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

Can't target 32 bit compile on a 64 bit machine (-m32) #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. On a 64 bit linux install. Try to compile the code so it can run on
   a 32 bit machines. Run config with ./configure CFLAGS=-m32
2. make
3.

What is the expected output? What do you see instead?

I am expecting the library to compile fine. It does when I do not use the
CFLAGS=-m32. What I get instead is :

src/signalhandler.cc: In function `void* google::<unnamed>::GetPC(void*):
src/signalhandler.cc:72: error: `REG_EIP` was not declared in this scope
 src/signalhandler.cc:72: warning unused variable `REG_EIP`

What version of the product are you using? On what operating system?

glog v0.2.1/v0.3.0 

os : RHE4.0x64

Please provide any additional information below.

Thanks !

Original issue reported on code.google.com by gonepadd...@gmail.com on 4 Feb 2010 at 4:23

GoogleCodeExporter commented 8 years ago
I have the same problem attempting to compile code with gflags under Ubuntu 
9.10 
64bit.  It seems to happen with or without "CFLAGS=-m32" Any assistance would 
be 
appreciated. Thank you!

[  6%] Building CXX object 
third_party/glog/src/CMakeFiles/glog.dir/signalhandler.o
/media/dataDrive/workspace/repos/repos_libmv/src/third_party/glog/src/signalhand
ler.c
c: In function ‘void* google::<unnamed>::GetPC(void*)’:
/media/dataDrive/workspace/repos/repos_libmv/src/third_party/glog/src/signalhand
ler.c
c:72: error: ‘REG_EIP’ was not declared in this scope
make[2]: *** [third_party/glog/src/CMakeFiles/glog.dir/signalhandler.o] Error 1
make[1]: *** [third_party/glog/src/CMakeFiles/glog.dir/all] Error 2

Original comment by bid...@gmail.com on 6 Feb 2010 at 12:53

GoogleCodeExporter commented 8 years ago
I guess you need both CFLAGS=-m32 and CXXFLAGS=-m32 ?

Original comment by shinichi...@gmail.com on 15 Feb 2010 at 8:49

GoogleCodeExporter commented 8 years ago
Issue 46 has been merged into this issue.

Original comment by shinichi...@gmail.com on 27 May 2010 at 8:20

GoogleCodeExporter commented 8 years ago

Original comment by shinichi...@gmail.com on 28 May 2010 at 6:17