Opened 16 years ago
Last modified 15 years ago
#18306 closed defect
automoc requires apple-gcc42 depends-build — at Version 4
Reported by: | jm@… | Owned by: | illogic-al@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | ||
Port: | automoc |
Description (last modified by jmroot (Joshua Root))
---> Configuring automoc CMake Error at /opt/local/share/cmake-2.6/Modules/CMakeDetermineCCompiler.cmake:31 (MESSAGE): Could not find compiler set in environment variable CC: /usr/bin/gcc-4.2. Call Stack (most recent call first): CMakeLists.txt:1 (project)
In the portfile: configure.compiler gcc-4.2
If the port requires, apple-gcc42 then it should be in the build depencies? Attached is a patch which fixes this issue.
Change History (13)
comment:1 Changed 16 years ago by jm@…
Changed 16 years ago by jm@…
Attachment: | patch-automoc.txt added |
---|
comment:2 Changed 16 years ago by jm@…
I could compile automoc with gcc4 and remove the requirement for gcc42. I don't know MacPorts enough to judge if this fix is correct.
comment:3 Changed 16 years ago by jm@…
Example:
sudo port -v install phonon ---> Configuring phonon CMake Error at /opt/local/share/cmake-2.6/Modules/CMakeDetermineCCompiler.cmake:31 (MESSAGE): Could not find compiler set in environment variable CC: /usr/bin/gcc-4.2. Call Stack (most recent call first): CMakeLists.txt:1 (project) CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER CMake Error: Could not find cmake module file:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_phonon/work/build/CMakeFiles/CMakeCCompiler.cmake CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER CMake Error: Could not find cmake module file:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_phonon/work/build/CMakeFiles/CMakeCXXCompiler.cmake CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_phonon/work/build" && cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.4u.sdk -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DQT_QMAKE_EXECUTABLE=/opt/local/libexec/qt4-mac/bin/qmake -Wno-dev -DBUILD_doc=ON -DBUILD_SHARED_LIBS=ON -DBUNDLE_INSTALL_DIR=/Applications/MacPorts/KDE4 -DPHONON_INCLUDE_DIR=/opt/local/include -DPHONON_LIBRARY=/opt/local/lib/libphonon.dylib -DKDE_DISTRIBUTION_TEXT="MacPorts/Mac OS X" -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib ../phonon-4.3.0 " returned error 1 Command output: CMake Error at /opt/local/share/cmake-2.6/Modules/CMakeDetermineCCompiler.cmake:31 (MESSAGE): Could not find compiler set in environment variable CC: /usr/bin/gcc-4.2. Call Stack (most recent call first): CMakeLists.txt:1 (project) CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER CMake Error: Could not find cmake module file:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_phonon/work/build/CMakeFiles/CMakeCCompiler.cmake CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER CMake Error: Could not find cmake module file:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_phonon/work/build/CMakeFiles/CMakeCXXCompiler.cmake CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! Warning: the following items did not execute (for phonon): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.
comment:4 Changed 16 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Milestone: | Port Enhancements → Port Bugs |
Owner: | changed from macports-tickets@… to illogic-al@… |
Port: | automoc added |
Changed 16 years ago by jm@…
Attachment: | patch-phonon.diff added |
---|
Changed 16 years ago by jm@…
Attachment: | patch-kdelibs4.diff added |
---|
Allows to compile setting compiler to gcc42
Changed 16 years ago by jm@…
Attachment: | patch-akonadi.diff added |
---|
gcc42 compiler option for Akonadi portfile.
Changed 16 years ago by jm@…
Attachment: | patch-kdepimlibs4.diff added |
---|
kdepimlibs4 gcc42 compilation options.
Changed 16 years ago by jm@…
Attachment: | patch-kdesdk4.diff added |
---|
gcc42 compiler option for Kdesdk4
Note: See
TracTickets for help on using
tickets.
The patch does not solve the issue. Can you help?