New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14582 (closed defect: duplicate)

Opened 4 years ago

Last modified 3 years ago

mod_python-3.3.1 Build fails with "unable to execute -fno-strict-aliasing: No such file or directory"

Reported by: mark@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: mod_python fno-strict-aliasing Cc: ryandesign@…
Port:

Description

~/twistage/src/rails/twistage/trunk$ sudo port clean --work mod_python
--->  Cleaning mod_python
~/twistage/src/rails/twistage/trunk$ sudo port install mod_python
--->  Fetching mod_python
--->  Verifying checksum(s) for mod_python
--->  Extracting mod_python
--->  Configuring mod_python
--->  Building mod_python with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1" && make all " returned error 2
Command output: creating build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/__init__.py -> build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/apache.py -> build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/cache.py -> build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/cgihandler.py -> build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/Cookie.py -> build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/importer.py -> build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/psp.py -> build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/publisher.py -> build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/python22.py -> build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/Session.py -> build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/testhandler.py -> build/lib.macosx-10.3-i386-2.4/mod_python
copying /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/lib/python/mod_python/util.py -> build/lib.macosx-10.3-i386-2.4/mod_python
running build_ext
building 'mod_python._psp' extension
creating build/temp.macosx-10.3-i386-2.4
creating build/temp.macosx-10.3-i386-2.4/opt
creating build/temp.macosx-10.3-i386-2.4/opt/local
creating build/temp.macosx-10.3-i386-2.4/opt/local/var
creating build/temp.macosx-10.3-i386-2.4/opt/local/var/macports
creating build/temp.macosx-10.3-i386-2.4/opt/local/var/macports/build
creating build/temp.macosx-10.3-i386-2.4/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python
creating build/temp.macosx-10.3-i386-2.4/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work
creating build/temp.macosx-10.3-i386-2.4/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1
creating build/temp.macosx-10.3-i386-2.4/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/src
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/src/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/src/psp_string.c -o build/temp.macosx-10.3-i386-2.4/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/src/psp_string.o
unable to execute -fno-strict-aliasing: No such file or directory
error: command '-fno-strict-aliasing' failed with exit status 1
make[1]: *** [build] Error 1
make: *** [do_dso] Error 2

Error: Status 1 encountered during processing.

Attachments

config.log Download (11.5 KB) - added by mark@… 4 years ago.

Change History

Changed 4 years ago by ryandesign@…

  • owner changed from macports-tickets@… to mww@…
  • cc mww@… removed
  • milestone set to Port Bugs

Works for me on 10.4.11 Intel with Xcode 2.4.1. The line should read:

/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_www_mod_python/work/mod_python-3.3.1/src/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c /opt/local/var/macports/build/_Users_rschmidt_macports_dports_www_mod_python/work/mod_python-3.3.1/src/psp_string.c -o build/temp.macosx-10.4-i386-2.4/opt/local/var/macports/build/_Users_rschmidt_macports_dports_www_mod_python/work/mod_python-3.3.1/src/psp_string.o

So, in your case, the name of the compiler /usr/bin/gcc-4.0 is missing but I don't know why. Assuming you do have Xcode installed and /usr/bin/gcc-4.0 does exist, check the verbose output:

$ sudo port clean --work mod_python
$ sudo port -dv install mod_python

See if anything jumps out at you in the configure phase around where I see this output:

checking for gcc... /usr/bin/gcc-4.0

Changed 4 years ago by reiffert@…

Please attach the file "config.log" to this ticket. It can be found in the build directory.

Changed 4 years ago by mark@…

Changed 4 years ago by mark@…

Nothing jumped out at me from looking at the build debug output, except for the warning about my blood pressure (which I believe to be in error).

Changed 4 years ago by ryandesign@…

  • cc ryandesign@… added

Looking through the differences between our config.logs, the significant difference appears to be that mine says:

ECHO_C=''
ECHO_N='-n'

While yours says:

ECHO_C='ECHO_N=''

Is something the matter with your /bin/echo, or do you have another different echo binary somewhere?

Changed 4 years ago by mark@…

Bearing in mind that I'm an OS X/Unix newbie, my /bin/echo seems to work fine.

I was able to build "manually" from the source found in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1 using the instructions in README, but apachectl -t told me it was the wrong architecture.

Changed 4 years ago by jmr@…

  • status changed from new to closed
  • resolution set to duplicate

I remember reading somewhere that the behaviour of echo -n did in fact change in Leopard. Anyway, this is a duplicate of #13856.

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.