I am attempting to build under 10.4.8 on a MacPro (Intel). I did try the suggestion of setting the environment var CC to a working compiler, but did not get it to work. Here are the errors I get: ~ $port install gcc34 ---> 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.
Native GCC 3.3 comes with XCode 2.2-2.4, use gcc_select 3.3 to switch from gcc 4 to 3 if you need 3 due to compatibility reasons. Basically a symlink. No need to install gcc from source. On Oct 27, 2006, at 6:35 AM, Eric Gorr wrote:
I am attempting to build under 10.4.8 on a MacPro (Intel). I did try the suggestion of setting the environment var CC to a working compiler, but did not get it to work.
Here are the errors I get:
~ $port install gcc34 ---> 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. _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
The pdftk port has a dependency on the gcc34 port. Would this work around that dependency? On Oct 27, 2006, at 10:30 AM, James Cornell wrote:
Native GCC 3.3 comes with XCode 2.2-2.4, use gcc_select 3.3 to switch from gcc 4 to 3 if you need 3 due to compatibility reasons. Basically a symlink. No need to install gcc from source.
On Oct 27, 2006, at 6:35 AM, Eric Gorr wrote:
I am attempting to build under 10.4.8 on a MacPro (Intel). I did try the suggestion of setting the environment var CC to a working compiler, but did not get it to work.
Here are the errors I get:
~ $port install gcc34 ---> 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. _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
On Oct 27, 2006, at 10:18 AM, Eric Gorr wrote:
The pdftk port has a dependency on the gcc34 port. Would this work around that dependency?
The homepage for pdftk states that it builds with the GNU Compiler for Java (gcj), and that's only available through the port. However, note that the port does contain a gcc40 variant that builds with gcc40 rather than gcc34. Maybe see if that works? Or maybe pdftk could depend only on the gcj34 port rather than gcc34? Chris
On Oct 27, 2006, at 12:31 PM, cssdev@mac.com wrote:
On Oct 27, 2006, at 10:18 AM, Eric Gorr wrote:
The pdftk port has a dependency on the gcc34 port. Would this work around that dependency?
The homepage for pdftk states that it builds with the GNU Compiler for Java (gcj), and that's only available through the port. However, note that the port does contain a gcc40 variant that builds with gcc40 rather than gcc34. Maybe see if that works?
Thanks for the suggestion. I did try it, but it did not build. ~ $port clean --all pdftk ---> Cleaning pdftk ~ $port install pdftk +gcc40 ---> Fetching pdftk ---> Attempting to fetch pdftk-1.12.tar.bz2 from http:// www.pdfhacks.com/pdftk/ ---> Verifying checksum(s) for pdftk ---> Extracting pdftk ---> Configuring pdftk ---> Building pdftk with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/ var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp orts_textproc_pdftk/work/pdftk-1.12/pdftk" && make all -f Makefile.MacOSX TOOLPATH=/opt/local/bin/ VERSUFF=-dp-4.0" returned error 2 Command output: make -C ../java_libs make -C "/opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp orts_textproc_pdftk/work/pdftk-1.12/java_libs/gnu_local/java/security"; /opt/local/bin/gcj-dp-4.0 --encoding=UTF-8 -I"/opt/local/var/db/ dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp orts_textproc_pdftk/work/pdftk-1.12/java_libs" -c Engine.java -o Engine.o /bin/sh: line 1: /opt/local/bin/gcj-dp-4.0: No such file or directory make[2]: *** [Engine.o] Error 127 make[1]: *** [libgcj_local] Error 2 make: *** [java_libs] Error 2 Error: Status 1 encountered during processing.
Maybe if you tweak the makefile a little from the port, cause there aren't any big differences between 3.3 and 3.4, although Apple has added functionality into GCC. I'd bet that if you exported the right environment variables it could be a workaround. James On Oct 27, 2006, at 8:18 AM, Eric Gorr wrote:
The pdftk port has a dependency on the gcc34 port. Would this work around that dependency?
On Oct 27, 2006, at 10:30 AM, James Cornell wrote:
Native GCC 3.3 comes with XCode 2.2-2.4, use gcc_select 3.3 to switch from gcc 4 to 3 if you need 3 due to compatibility reasons. Basically a symlink. No need to install gcc from source.
On Oct 27, 2006, at 6:35 AM, Eric Gorr wrote:
I am attempting to build under 10.4.8 on a MacPro (Intel). I did try the suggestion of setting the environment var CC to a working compiler, but did not get it to work.
Here are the errors I get:
~ $port install gcc34 ---> 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_dpupdat e_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_dpupdat e_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. _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
participants (3)
-
cssdev@mac.com
-
Eric Gorr
-
James Cornell