-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The error turned out to be unrelated (I think) to M5: after  
installing Python, I'd failed to build it with the --enable-shared  
option and that's what produced the zlib search error from scons.  
After rebuilding & installing Python with --enable-shared (and  
ensuring that the LD_LIBRARY_PATH was set properly, or alternatively,  
that /etc/ld.so.conf had the path of the new shared Python library  
(followed by the cursory /sbin/ldconfig command)) the zlib problem  
disappearing using the original check in SConstruct you wrote.

My bad.

FWIW, here is the scons_config.log prior to correcting the Python  
library:

file SConstruct,line 256:
         Configure(confdir = build/.scons_config)
scons: Configure: Checking for main() in C++ library z...
build/.scons_config/conftest_0.cpp <-
   |
   |
   |#include "zlib.h"
   |
   |int
   |main() {
   |  main();
   |return 0;
   |}
   |
g++ -o build/.scons_config/conftest_0.o -c -pipe -fno-strict-aliasing  
- -Wall -Wno
- -sign-compare -Werror -Wundef -Iext/dnet -I/usr/local/include/ 
python2.4 build/.s
cons_config/conftest_0.cpp
g++ -o build/.scons_config/conftest_0 build/.scons_config/ 
conftest_0.o -L/usr/lo
cal/lib -lpython2.4 -lz
/usr/bin/ld: cannot find -lpython2.4
collect2: ld returned 1 exit status
scons: Configure: no

Best regards,
Dan

On Aug 28, 2006, at 12:01 PM, Steve Reinhardt wrote:

> That's odd... it means that somehow scons thought you didn't have  
> zlib installed even though you did.  Did you have to do anything  
> else to get it to build, or was everything else OK out of the box?
>
> Could you take a look at build/scons_config.log and see if it  
> explains why scons couldn't find zlib?  I'd like to understand this  
> so we can fix it.
>
> Thanks,
>
> Steve
>
> Daniel Alex Finkelstein wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> Bingo -- that solved it.
>> Thanks, Steve.
>> - --Dan
>> On Aug 26, 2006, at 5:53 PM, Steve Reinhardt wrote:
>>> I just added that check... try commenting it out (search for  
>>> 'zlib'  in m5/SConstruct) and replacing it with this:
>>>
>>> env.Append(LIBS=['z'])
>>>
>>> and see if you can compile anyway.  If so, then there's  
>>> something  messed up with the way scons is checking for the library.
>>>
>>> Steve
>>>
>>> m5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>> - --
>> Daniel Alex Finkelstein
>> Graduate Research Fellow
>> Computer & Information Science
>> Polytechnic University
>> 6 MetroTech Center
>> Brooklyn, NY 11201
>> tel: 718-260-3378
>> fax: 718-260-3609
>> url: http://pages.poly.edu/~dfinke01
>> -----BEGIN PGP SIGNATURE-----
>> Version: PGP Desktop 9.0.6 (Build 6060)
>> iQA/AwUBRPDFppcnyjn38MHdEQKaggCg3g9rTRHsRHWrrZwCS8oducvlw9kAnjMl
>> bRlm5vr+nVKrw1xEoKSXSgrx
>> =dRXq
>> -----END PGP SIGNATURE-----
>> _______________________________________________
>> m5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

- --
Daniel Alex Finkelstein
Graduate Research Fellow
Computer & Information Science
Polytechnic University
6 MetroTech Center
Brooklyn, NY 11201
tel: 718-260-3378
fax: 718-260-3609
url: http://pages.poly.edu/~dfinke01




-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.6 (Build 6060)

iQA/AwUBRPNhcZcnyjn38MHdEQKDAwCguHLKA9mEHGz7VZTpPTMt/SdxYLcAoPs/
SQG9lS3FNVpdfowo9IW222YF
=T4CJ
-----END PGP SIGNATURE-----
The error turned out to be unrelated (I think) to M5: after installing Python, I'd failed to build it with the --enable-shared option and that's what produced the zlib search error from scons. After rebuilding & installing Python with --enable-shared (and ensuring that the LD_LIBRARY_PATH was set properly, or alternatively, that /etc/ld.so.conf had the path of the new shared Python library (followed by the cursory /sbin/ldconfig command)) the zlib problem disappearing using the original check in SConstruct you wrote.

My bad.

FWIW, here is the scons_config.log prior to correcting the Python library:

file SConstruct,line 256:
        Configure(confdir = build/.scons_config)
scons: Configure: Checking for main() in C++ library z...
build/.scons_config/conftest_0.cpp <-
  |
  |
  |#include "zlib.h"
  |
  |int
  |main() {
  |  main();
  |return 0;
  |}
  |
g++ -o build/.scons_config/conftest_0.o -c -pipe -fno-strict-aliasing -Wall -Wno
-sign-compare -Werror -Wundef -Iext/dnet -I/usr/local/include/python2.4 build/.s
cons_config/conftest_0.cpp
g++ -o build/.scons_config/conftest_0 build/.scons_config/conftest_0.o -L/usr/lo
cal/lib -lpython2.4 -lz
/usr/bin/ld: cannot find -lpython2.4
collect2: ld returned 1 exit status
scons: Configure: no

Best regards,
Dan

On Aug 28, 2006, at 12:01 PM, Steve Reinhardt wrote:

That's odd... it means that somehow scons thought you didn't have zlib installed even though you did.  Did you have to do anything else to get it to build, or was everything else OK out of the box?

Could you take a look at build/scons_config.log and see if it explains why scons couldn't find zlib?  I'd like to understand this so we can fix it.

Thanks,

Steve

Daniel Alex Finkelstein wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bingo -- that solved it.
Thanks, Steve.
- --Dan
On Aug 26, 2006, at 5:53 PM, Steve Reinhardt wrote:
I just added that check... try commenting it out (search for 'zlib'  in m5/SConstruct) and replacing it with this:

env.Append(LIBS=['z'])

and see if you can compile anyway.  If so, then there's something  messed up with the way scons is checking for the library.

Steve

m5-users mailing list
- --
Daniel Alex Finkelstein
Graduate Research Fellow
Computer & Information Science
Polytechnic University
6 MetroTech Center
Brooklyn, NY 11201
tel: 718-260-3378
fax: 718-260-3609
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.6 (Build 6060)
iQA/AwUBRPDFppcnyjn38MHdEQKaggCg3g9rTRHsRHWrrZwCS8oducvlw9kAnjMl
bRlm5vr+nVKrw1xEoKSXSgrx
=dRXq
-----END PGP SIGNATURE-----
_______________________________________________
m5-users mailing list
_______________________________________________
m5-users mailing list

--
Daniel Alex Finkelstein
Graduate Research Fellow
Computer & Information Science
Polytechnic University
6 MetroTech Center
Brooklyn, NY 11201
tel: 718-260-3378
fax: 718-260-3609



Attachment: PGPexch.htm.sig
Description: Binary data

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to