473,379 Members | 1,243 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

CFLAGS are not taken into account properly

To configure python on a Solaris 9 box with sunstudio11 installed and to
compile it in 64bit, I execute following:

<code>
export CC=cc
export CFLAGS="-xarch=v9"
export CXX=CC
export CXXFLAGS="-xarch=v9"
export F77=f77
export FFLAGS="-xarch=v9"
export LDFLAGS="-xarch=v9"
../configure
</code>
When doing 'make' afterwards, the '-xarch=v9' option is not on the
command-line however? Should'nt the CFLAGS be propagated to the Makefile
that is generated by configure? Or is there any other way to do this?

Thanks in advance,

toon
May 17 '06 #1
5 1624

Toon> To configure python on a Solaris 9 box with sunstudio11 installed
Toon> and to compile it in 64bit, I execute following:

Toon> <code>
Toon> export CC=cc
Toon> export CFLAGS="-xarch=v9"
Toon> export CXX=CC
Toon> export CXXFLAGS="-xarch=v9"
Toon> export F77=f77
Toon> export FFLAGS="-xarch=v9"
Toon> export LDFLAGS="-xarch=v9"
Toon> ./configure
Toon> </code>

Toon> When doing 'make' afterwards, the '-xarch=v9' option is not on the
Toon> command-line however? Should'nt the CFLAGS be propagated to the
Toon> Makefile that is generated by configure? Or is there any other way
Toon> to do this?

I agree, the Python configure/Makefile combination doesn't conform very well
to current GNU style in this regard. Try setting EXTRA_CFLAGS instead of
CFLAGS.

Skip
May 17 '06 #2
sk**@pobox.com wrote:
I agree, the Python configure/Makefile combination doesn't conform very well
to current GNU style in this regard. Try setting EXTRA_CFLAGS instead of
CFLAGS.


Thanks.

But some other (but 'similar') functionality is broken. Now I succeeded
in compiling python. But when using distutils (e.g. when installing
numarray using the setup.py), python will compile the files using the
'-xarch=v9' option but drops this option when linking dynamic libraries
(although I defined LDFLAGS="-xarch=v9" before configuring python).
Additionally python adds the option '-xcode=pic32' to the
compile-command which will compile my numarray in 32bit instead of 64bit
(while python itself is in 64bit)

toon
May 17 '06 #3
sk**@pobox.com wrote:
I agree, the Python configure/Makefile combination doesn't conform very well
to current GNU style in this regard. Try setting EXTRA_CFLAGS instead of
CFLAGS.


Thanks.

But some other (but 'similar') functionality is broken. Now I succeeded
in compiling python. But when using distutils (e.g. when installing
numarray using the setup.py), python will compile the files using the
'-xarch=v9' option but drops this option when linking dynamic libraries
(although I defined LDFLAGS="-xarch=v9" before configuring python).
Additionally python adds the option '-xcode=pic32' to the
compile-command which will compile my numarray in 32bit instead of 64bit
(while python itself is in 64bit)

toon
May 17 '06 #4

Toon> But some other (but 'similar') functionality is broken. Now I
Toon> succeeded in compiling python. But when using distutils (e.g. when
Toon> installing numarray using the setup.py), python will compile the
Toon> files using the '-xarch=v9' option but drops this option when
Toon> linking dynamic libraries (although I defined LDFLAGS="-xarch=v9"
Toon> before configuring python). Additionally python adds the option
Toon> '-xcode=pic32' to the compile-command which will compile my
Toon> numarray in 32bit instead of 64bit (while python itself is in
Toon> 64bit)

That seems like a bug in distutils. Can you submit a help ticket?

Skip
May 17 '06 #5
sk**@pobox.com wrote:
Toon> But some other (but 'similar') functionality is broken. Now I
Toon> succeeded in compiling python. But when using distutils (e.g. when
Toon> installing numarray using the setup.py), python will compile the
Toon> files using the '-xarch=v9' option but drops this option when
Toon> linking dynamic libraries (although I defined LDFLAGS="-xarch=v9"
Toon> before configuring python). Additionally python adds the option
Toon> '-xcode=pic32' to the compile-command which will compile my
Toon> numarray in 32bit instead of 64bit (while python itself is in
Toon> 64bit)

That seems like a bug in distutils. Can you submit a help ticket?

Skip

Done
May 19 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave C. | last post by:
Hi there, BOL notes that in order for replication agents to run properly, the SQLServerAgent must run as a domain account which has privledges to log into the other machines involved in...
2
by: Shiye | last post by:
Help...! Hi all, Does any of you know how can determine the default value of a filed to be taken from another feild (already filled) in the same row of the table??? Thanks, Shai
0
by: CESAR DE LA TORRE [MVP] | last post by:
I am using WSE 3.0 with Visual Studio 2005, specifically I'm using Kerberos authentication and passing Kerberos ticket from Presentation Tier (VSTO.2005 client) to Server Tier through our Web...
7
by: Billy Angers | last post by:
My server is running under Windows SBS 2003. I've deleted some directories that was containing Outlook Web Access files, it was done few months ago by mistake. Now I want to use OWA for some...
2
by: Alexander van Doormalen | last post by:
I am trying to run an external process (command tool) within a Windows Service with the specified account. When the application launches I get a error dialog with the following message: ...
39
by: sucaba.r | last post by:
I don't know if this is a unique problem, or I'm going about it the wrong way. I currently connect to one of our SQL servers via a priviliged account (by using RUNAS). Works with no problem. I...
3
by: gehegeradeaus | last post by:
Is there a way to prevent one user-account from logging in twice on the same system when using sessions? I also put the session of a user in a mysql database : CREATE TABLE `login_sessions` (...
3
by: tvnaidu | last post by:
Currently I have 15 module folders, each module had C code, also Makefile in each folder, also build script to create shared lib for each module. Each of this Makefile had CFLAGS defined inside,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.