Opened 10 years ago

Closed 10 years ago

#20425 closed defect (invalid)

python25 build fail -Wno-long-double

Reported by: guy.kogus@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: python25 -Wno-long-double Cc:
Port: python25

Description

I had no ports installed except boost, and it's dependencies, when I tried to build gtkmm. Everything was going fine until I tried to install python25, when I got the following message:

--->  Building python25
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python25/work/Python-2.5.4" && make all MAKE="make CC=/usr/bin/gcc-4.0" " returned error 2
Command output: /usr/bin/gcc-4.0 -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/local/include -D__DARWIN_UNIX03  -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
cc1: error: unrecognized command line option "-Wno-long-double"
make: *** [Modules/python.o] Error 1

Error: Status 1 encountered during processing.

I tried installing python_select and python26. No problems with those ports.

Change History (3)

comment:1 Changed 10 years ago by tobypeterson

This flag wasn't removed until gcc-4.2 afaik. What version of Mac OS X and Xcode are you using? Are your ports up to date?

comment:2 in reply to:  1 Changed 10 years ago by guy.kogus@…

Replying to toby@…:

This flag wasn't removed until gcc-4.2 afaik. What version of Mac OS X and Xcode are you using? Are your ports up to date?

I'd at some point done a very stupid thing, where I managed to copy /usr/bin/gcc-4.2 to /usr/bin/gcc-4.0. Problem solved, all's working well now. Sorry to waste your time.

comment:3 Changed 10 years ago by skymoo (Adam Mercer)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.