[Python-bugs-list] [ python-Bugs-748928 ] last threads fixes broke linker

SourceForge.net noreply@sourceforge.net
Sun, 29 Jun 2003 21:29:41 -0700


Bugs item #748928, was opened at 2003-06-04 11:25
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=748928&group_id=5470

Category: Build
Group: Python 2.3
Status: Open
>Resolution: Works For Me
Priority: 5
Submitted By: Martin Mokrejs (mmokrejs)
Assigned to: Nobody/Anonymous (nobody)
Summary: last threads fixes broke linker

Initial Comment:
In current cvs, -pthread and -ieee is properly set for
OSF1/Tru64Unix. Unfortunately, -ieee is somewhat passed
to linker:

building '_curses' extension
cc -pthread -DNDEBUG -O -ieee -std -Olimit 1500 -I.
-I/mnt/python/dist/src/./Include
-I/software/@sys/usr/include -I/usr/local/include
-I/mnt/python/dist/src/Include -I/mnt/python/dist/src
-c /mnt/python/dist/src/Modules/_cursesmodule.c -o
build/temp.osf1-V5.1-alpha-2.3/_cursesmodule.o
ld -shared -expect_unresolved * -ieee -std -Olimit 1500
-DNDEBUG -O -I. -I./Include
build/temp.osf1-V5.1-alpha-2.3/_cursesmodule.o
-L/software/@sys/usr/lib -L/usr/local/lib -lncurses -o
build/lib.osf1-V5.1-alpha-2.3/_curses.so
ld:
-ieee: Unknown flag
ld: Usage: ld [options] file [...]
building '_curses_panel' extension


----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2003-06-30 00:29

Message:
Logged In: YES 
user_id=33168

Is this still a problem?  When I test with the current CVS
(2.3b2) on Tru64 5.1, I don't get many flags passed to ld,
but my cc line looks the same.  Can you make sure you have a
clean copy of configure from CVS?  Also, do a make clean and
./configure.

cc -pthread -DNDEBUG -O -ieee -std -Olimit 1500 -I.
-I/net/boa/scratch1/nnorwitz/python/dist/src/./Include
-I/usr/local/include
-I/net/boa/scratch1/nnorwitz/python/dist/src/Include
-I/net/boa/scratch1/nnorwitz/python/dist/src -c
/net/boa/scratch1/nnorwitz/python/dist/src/Modules/_cursesmodule.c
-o build/temp.osf1-V5.1-alpha-2.3/_cursesmodule.o
ld -shared -expect_unresolved *
build/temp.osf1-V5.1-alpha-2.3/_cursesmodule.o
-L/usr/local/lib -lcurses -ltermcap -o
build/lib.osf1-V5.1-alpha-2.3/_curses.so


----------------------------------------------------------------------

Comment By: Martin Mokrejs (mmokrejs)
Date: 2003-06-17 17:30

Message:
Logged In: YES 
user_id=696559

Get free account on testing machine at
http://www.testdrive.compaq.com/

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2003-06-17 16:38

Message:
Logged In: YES 
user_id=21627

I see; -ieee is indeed passed to ld. I am a programmer, but
I cannot develop on Tru64. So we have to wait until a
programmer with access to Tru64 shows up.

----------------------------------------------------------------------

Comment By: Martin Mokrejs (mmokrejs)
Date: 2003-06-17 09:29

Message:
Logged In: YES 
user_id=696559

Actually, I don't know why -ieee is needed, I'm not a
programmer, sorry. The manpage cc(1) says:

  -ieee
      Ensure support of all portable features of the IEEE
Standard for Binary
      Floating-Point Arithmetic (ANSI/IEEE Std 754-1985),
including the
      treatment of denormalized numbers, NaNs, and
infinities and the han-
      dling of error cases. This option also sets the
_IEEE_FP C preprocessor
      macro.

      If your program must use IEEE signaling features that
are not portable
      across different IEEE implementations, see the ieee(3)
reference page
      for a discussion of how to access them under the Tru64
UNIX operating
      system.



Yes, -ieee is not listed in mapage for ld(1). I do not have
an access to that machine probably for a whole week, but are
you sure the -ieee is not in teh generated Makefiles passed
inside some variable to linker directly?



----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2003-06-14 02:40

Message:
Logged In: YES 
user_id=21627

Is it not the case that cc(1) supports -ieee? If so, why
does it then pass the option to ld?

Perhaps it depends on the cc version whether -ieee is
supported? Perhaps the compiler should be invoked with a
different name?

Please don't make us guess as to how your operating system
works. If you can contribute to a solution, that would be
much appreciated.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=748928&group_id=5470