port tries to compile with gcc3.4 every time
Hi everyone. Every time i try to install something with the ports I get this error message: ---> Configuring gcc34 Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp orts_lang_gcc34/work/build" && CC=/usr/bin/gcc-3.3 /opt/local/var/db/ dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp orts_lang_gcc34/work/gcc-3.4.6/configure --prefix=/opt/local --enable- languages=c,c++,f77,objc,java --libdir=/opt/local/lib/gcc-3.4 -- infodir=/opt/local/share/info --mandir=/opt/local/share/man --with- system-zlib --disable-nls --program-suffix=-dp-3.4 --with-local- prefix=/opt/local --with-gxx-include-dir=/opt/local/include/gcc-3.4/c+ +/" returned error 1 Command output: loading cache ./config.cache checking host system type... i686-apple-darwin8.8.1 checking target system type... i686-apple-darwin8.8.1 checking build system type... i686-apple-darwin8.8.1 checking for a BSD compatible install... /usr/bin/install -c *** This configuration is not supported in the following subdirectories: target-libobjc target-libffi target-boehm-gc target-zlib target- libjava (Any other directories should still work fine.) gcc-3.3: installation problem, cannot exec `cc1': No such file or directory gcc-3.3: installation problem, cannot exec `cc1': No such file or directory *** The command '/usr/bin/gcc-3.3 -o conftest -g conftest.c' failed. *** You must set the environment variable CC to a working compiler. Error: Status 1 encountered during processing. I've already tried to do gcc_select 4.0 or gcc_select 3.3 but it still tries to compile with gcc3.4 (which I don't have), and I don't know why. Is there a way to force ports to compile with gcc4.0? Or do you know another solution? Thanks.
On Nov 7, 2006, at 03:57, Francisco Moreno Muñoz wrote:
Every time i try to install something with the ports I get this error message:
---> Configuring gcc34 Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ dports_lang_gcc34/work/build" && CC=/usr/bin/gcc-3.3 /opt/local/var/ db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ dports_lang_gcc34/work/gcc-3.4.6/configure --prefix=/opt/local -- enable-languages=c,c++,f77,objc,java --libdir=/opt/local/lib/ gcc-3.4 --infodir=/opt/local/share/info --mandir=/opt/local/share/ man --with-system-zlib --disable-nls --program-suffix=-dp-3.4 -- with-local-prefix=/opt/local --with-gxx-include-dir=/opt/local/ include/gcc-3.4/c++/" returned error 1 Command output: loading cache ./config.cache checking host system type... i686-apple-darwin8.8.1 checking target system type... i686-apple-darwin8.8.1 checking build system type... i686-apple-darwin8.8.1 checking for a BSD compatible install... /usr/bin/install -c *** This configuration is not supported in the following subdirectories: target-libobjc target-libffi target-boehm-gc target-zlib target-libjava (Any other directories should still work fine.) gcc-3.3: installation problem, cannot exec `cc1': No such file or directory gcc-3.3: installation problem, cannot exec `cc1': No such file or directory *** The command '/usr/bin/gcc-3.3 -o conftest -g conftest.c' failed. *** You must set the environment variable CC to a working compiler.
Error: Status 1 encountered during processing.
I've already tried to do gcc_select 4.0 or gcc_select 3.3 but it still tries to compile with gcc3.4 (which I don't have), and I don't know why. Is there a way to force ports to compile with gcc4.0? Or do you know another solution?
gcc3 is not supported on Intel, so as you've realized, you don't want to be compiling that. However, only specific ports explicitly depend on gcc3. Exactly which ports are you trying to use which are doing this? Most shouldn't.
El 07/11/2006, a las 23:31, Ryan Schmidt escribió:
On Nov 7, 2006, at 03:57, Francisco Moreno Muñoz wrote:
Every time i try to install something with the ports I get this error message:
---> Configuring gcc34 Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate _dports_lang_gcc34/work/build" && CC=/usr/bin/gcc-3.3 /opt/local/ var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate _dports_lang_gcc34/work/gcc-3.4.6/configure --prefix=/opt/local -- enable-languages=c,c++,f77,objc,java --libdir=/opt/local/lib/ gcc-3.4 --infodir=/opt/local/share/info --mandir=/opt/local/share/ man --with-system-zlib --disable-nls --program-suffix=-dp-3.4 -- with-local-prefix=/opt/local --with-gxx-include-dir=/opt/local/ include/gcc-3.4/c++/" returned error 1 Command output: loading cache ./config.cache checking host system type... i686-apple-darwin8.8.1 checking target system type... i686-apple-darwin8.8.1 checking build system type... i686-apple-darwin8.8.1 checking for a BSD compatible install... /usr/bin/install -c *** This configuration is not supported in the following subdirectories: target-libobjc target-libffi target-boehm-gc target-zlib target-libjava (Any other directories should still work fine.) gcc-3.3: installation problem, cannot exec `cc1': No such file or directory gcc-3.3: installation problem, cannot exec `cc1': No such file or directory *** The command '/usr/bin/gcc-3.3 -o conftest -g conftest.c' failed. *** You must set the environment variable CC to a working compiler.
Error: Status 1 encountered during processing.
I've already tried to do gcc_select 4.0 or gcc_select 3.3 but it still tries to compile with gcc3.4 (which I don't have), and I don't know why. Is there a way to force ports to compile with gcc4.0? Or do you know another solution?
gcc3 is not supported on Intel, so as you've realized, you don't want to be compiling that. However, only specific ports explicitly depend on gcc3. Exactly which ports are you trying to use which are doing this? Most shouldn't.
Really? I didn't knew that. Anyway, I think I didn't explain myself properly. It tries to compile with gcc3.4 all the ports I try to install. Every last one of them. Maybe all the ports I tried depended on gcc 3.4? I think it would be a big coincidence. In this specific case the port was libtorrent. Btw, I need to have complete xcode instaled (like I have now)? Or only the gcc compilers would do? Thanks. Francisco Moreno Muñoz f8moreno@gmail.com Photos --> http://www.flickr.com/photos/und3f1n3d/
Citando Francisco Moreno Muñoz :
El 07/11/2006, a las 23:31, Ryan Schmidt escribió:
On Nov 7, 2006, at 03:57, Francisco Moreno Muñoz wrote:
Every time i try to install something with the ports I get this error message:
---> Configuring gcc34 Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate _dports_lang_gcc34/work/build" && CC=/usr/bin/gcc-3.3 /opt/local/ var/db/dports/build/
I've already tried to do gcc_select 4.0 or gcc_select 3.3 but it still tries to compile with gcc3.4 (which I don't have), and I don't know why. Is there a way to force ports to compile with gcc4.0? Or do you know another solution?
gcc3 is not supported on Intel, so as you've realized, you don't want to be compiling that. However, only specific ports explicitly depend on gcc3. Exactly which ports are you trying to use which are doing this? Most shouldn't.
Really? I didn't knew that. Anyway, I think I didn't explain myself properly. It tries to compile with gcc3.4 all the ports I try to install. Every last one of them. Maybe all the ports I tried depended on gcc 3.4? I think it would be a big coincidence. In this specific case the port was libtorrent.
Unfortunately the version of libtorrent provided by macports depends on gcc3 (see port depends libtorrent for the list of dependencies and http://libtorrent.rakshasa.no/ticket/96 for the reason). However, newer version of libtorrent compile well with gcc4.0. See https://svn.macosforge.org/projects/macports/ticket/10906 (maybe it could be committed?) Emmanuel
On Nov 8, 2006, at 07:46, Emmanuel Hainry wrote:
Citando Francisco Moreno Muñoz :
El 07/11/2006, a las 23:31, Ryan Schmidt escribió:
gcc3 is not supported on Intel, so as you've realized, you don't want to be compiling that. However, only specific ports explicitly depend on gcc3. Exactly which ports are you trying to use which are doing this? Most shouldn't.
Really? I didn't knew that. Anyway, I think I didn't explain myself properly. It tries to compile with gcc3.4 all the ports I try to install. Every last one of them. Maybe all the ports I tried depended on gcc 3.4? I think it would be a big coincidence. In this specific case the port was libtorrent.
I checked the portfile ("port cat libtorrent") and it includes the following line: configure.env CC=${prefix}/bin/gcc-dp-3.4 CXX=${prefix}/bin/g++-dp-3.4 This has the effect of forcing the use of gcc3 which is causing your problem. However, the line was probably added for a good reason. (The Subversion log shows the line was added by mww in revision 17447 on 2006-04-12 along with other changes to update the port from 0.7.0-1 to 0.9.0.)
Unfortunately the version of libtorrent provided by macports depends on gcc3 (see port depends libtorrent for the list of dependencies and http://libtorrent.rakshasa.no/ticket/96 for the reason). However, newer version of libtorrent compile well with gcc4.0. See https://svn.macosforge.org/projects/macports/ticket/10906 (maybe it could be committed?)
Has the maintainer of the port (toby at opendarwin) seen that bug or commented on the patches?
participants (3)
-
Emmanuel Hainry
-
Francisco Moreno Muñoz
-
Ryan Schmidt