Problem building gcc42 on 10.3.9.
William Gallafent
william at gallaf.net
Wed Jun 27 03:47:37 PDT 2007
On Wednesday 27 June 2007, William Gallafent wrote:
> In that case, this port should be made to depend on the gmake
> port.
Yes, that is the case. The gcc42 port should depend on gmake (on
Mac OS 10.3.9 at least), and the portfile should gain the
line 'build.cmd gmake'. This allows me to get a bit further. I
would put this suggestion in to a ticket on macosforge, but
trac says "TICKET_CREATE privileges are required to perform
this operation" so I can't!
The next problem I hit is the same one I have if I try to build
non-macports gcc 4.2.0 from source on a 10.3.9 machine. It
looks as if there is a libtool option used which is not present
on this version of libtool (from XCode 1.5 on Mac OS 10.3.9):
---> Building gcc42 with target bootstrap
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_dports_lang_gcc42/work/build"
&& gmake bootstrap " returned error 2
Command output: CONFIG_H="config.h
auto-host.h ../../gcc-4.2.0/gcc/../include/ansidecl.h" \
MAKEOVERRIDES= \
-f libgcc.mk all
gmake[4]: Entering directory
`/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build/gcc'
gmake
GCC_FOR_TARGET="/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build/./gcc/xgcc -B/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build/./gcc/ -B/opt/local/powerpc-apple-darwin7.9.0/bin/ -B/opt/local/powerpc-apple-darwin7.9.0/lib/ -isystem /opt/local/powerpc-apple-darwin7.9.0/include -isystem /opt/local/powerpc-apple-darwin7.9.0/sys-include"
\
AR_FOR_TARGET="ar" \
AR_CREATE_FOR_TARGET="ar rc" \
AR_EXTRACT_FOR_TARGET="ar x" \
AR_FLAGS_FOR_TARGET="" \
CC="gcc"
CFLAGS="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -fkeep-inline-functions -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -fno-common "
\
BUILD_PREFIX="" \
BUILD_PREFIX_1="" \
LANGUAGES="" \
LIBGCC2_CFLAGS="-O2 -O2 -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -Wa,-force_cpusubtype_ALL -pipe -mmacosx-version-min=10.4 -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED "
\
MULTILIB_CFLAGS="" T= crt3.o
gmake[5]: Entering directory
`/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build/gcc'
gmake[5]: Leaving directory
`/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build/gcc'
/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build/./gcc/xgcc -B/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build/./gcc/ -B/opt/local/powerpc-apple-darwin7.9.0/bin/ -B/opt/local/powerpc-apple-darwin7.9.0/lib/ -isystem /opt/local/powerpc-apple-darwin7.9.0/include -isystem /opt/local/powerpc-apple-darwin7.9.0/sys-include -O2 -O2 -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -Wa,-force_cpusubtype_ALL -pipe -mmacosx-version-min=10.4 -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -dynamiclib -nodefaultlibs -Wl,-install_name,/opt/local/lib/gcc42/libgcc_s`if
test . = ppc64 ; then echo _. ;
fi`.1.dylib -single_module -o ./libgcc_s.1.dylib.tmp -Wl,-exported_symbols_list,libgcc/./libgcc.map -compatibility_version
1 -current_version 1.0 libgcc/./_muldi3_s.o
libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o
libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o
libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o
libgcc/./_clear_cache_s.o libgcc/./_enable_execute_stack_s.o
libgcc/./_trampoline_s.o libgcc/./__main_s.o
libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o
libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o
libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o
libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o
libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o
libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o
libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o
libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o
libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o
libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o
libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o
libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o
libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o
libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o
libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o
libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfsi_s.o
libgcc/./_fixunsxfsi_s.o libgcc/./_fixsfdi_s.o
libgcc/./_fixunssfdi_s.o libgcc/./_floatdisf_s.o
libgcc/./_floatundisf_s.o libgcc/./_fixdfdi_s.o
libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o
libgcc/./_floatundidf_s.o libgcc/./_fixxfdi_s.o
libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o
libgcc/./_floatundixf_s.o libgcc/./_fixtfdi_s.o
libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o
libgcc/./_floatunditf_s.o libgcc/./_divdi3_s.o
libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o
libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o
libgcc/./_udivmoddi4_s.o libgcc/./darwin-tramp_s.o
libgcc/./ppc64-fp_s.o libgcc/./darwin-64_s.o
libgcc/./darwin-ldouble_s.o libgcc/./darwin-world_s.o
libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-darwin_s.o
libgcc/./unwind-sjlj_s.o libgcc/./unwind-c_s.o
libgcc/./darwin-fallback_s.o -lc
/usr/bin/libtool: unknown option character `m'
in: -macosx_version_min
Usage: /usr/bin/libtool -static [-] file [...] [-filelist
listfile[,dirname]] [-arch_only arch] [-sacLT]
Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist
listfile[,dirname]] [-arch_only arch] [-o output]
[-install_name name] [-compatibility_version #]
[-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#]
[-segs_read_write_addr 0x#] [-seg_addr_table <filename>]
[-seg_addr_table_filename <file_system_path>] [-all_load]
[-noall_load]
gmake[4]: *** [libgcc_s.dylib] Error 1
gmake[4]: Leaving directory
`/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build/gcc'
gmake[3]: *** [stmp-multilib] Error 2
gmake[3]: Leaving directory
`/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory
`/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory
`/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build'
gmake: *** [bootstrap] Error 2
Error: Status 1 encountered during processing.
--
Bill Gallafent.
More information about the macports-users
mailing list