pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/48740 (lang/gcc44 to gcc46 linker fails because of whitespace)



On 16/05/2014 00:10, pho%NetBSD.org@localhost wrote:
I fixed them. Sevan, could you please confirm they now build?

On OS X 10.4.11 PPC I managed to build lang/gcc44 & lang/gcc45 without issue

PKG_OPTIONS.gcc44=      gcc-c++ gcc-fortran gcc-objc -gcc-java
PKG_OPTIONS.gcc45=      gcc-c++ gcc-fortran gcc-objc -gcc-java

gcc46 fails

PKG_OPTIONS.gcc46=      gcc-c++ -gcc-fortran -gcc-objc -gcc-java


/usr/pkgsrc/lang/gcc46/work/obj/./prev-gcc/xgcc -B/usr/pkgsrc/lang/gcc46/work/obj/./prev-gcc/ -B/usr/pkg/gcc46/powerpc-apple-darwin8.11.0/bin/ -B/usr/pkg/gcc46/powerpc-apple-darwin8.11.0/bin/ -B/usr/pkg/gcc46/powerpc-apple-darwin8.11.0/lib/ -isystem /usr/pkg/gcc46/powerpc-apple-darwin8.11.0/include -isystem /usr/pkg/gcc46/powerpc-apple-darwin8.11.0/sys-include -c -g -O2 -mdynamic-no-pic -gtoggle -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc -I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/build -I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../include -I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../libcpp/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../libdecnumber -I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/pkgsrc/lang/gcc46/work/.buildlink/include -isystem /usr/include -I/usr/pkg/include \ -o build/gengtype-state.o /usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/gengtype-state.c /usr/pkgsrc/lang/gcc46/work/obj/./prev-gcc/xgcc -B/usr/pkgsrc/lang/gcc46/work/obj/./prev-gcc/ -B/usr/pkg/gcc46/powerpc-apple-darwin8.11.0/bin/ -B/usr/pkg/gcc46/powerpc-apple-darwin8.11.0/bin/ -B/usr/pkg/gcc46/powerpc-apple-darwin8.11.0/lib/ -isystem /usr/pkg/gcc46/powerpc-apple-darwin8.11.0/include -isystem /usr/pkg/gcc46/powerpc-apple-darwin8.11.0/sys-include -g -O2 -mdynamic-no-pic -gtoggle -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc -o build/genhooks \
    build/genhooks.o build/errors.o .././libiberty/libiberty.a
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning -L: directory name (/usr/pkg/gcc46/lib) does not exist
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
___stack_chk_fail
___stack_chk_guard
collect2: ld returned 1 exit status
Makefile:3979: recipe for target 'build/genhooks' failed
gmake[3]: *** [build/genhooks] Error 1
gmake[3]: *** Waiting for unfinished jobs....
rm gcc.pod
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc46/work/obj/gcc'
Makefile:5558: recipe for target 'all-stage2-gcc' failed
gmake[2]: *** [all-stage2-gcc] Error 2
gmake[2]: Leaving directory '/usr/pkgsrc/lang/gcc46/work/obj'
Makefile:18679: recipe for target 'stage2-bubble' failed
gmake[1]: *** [stage2-bubble] Error 2
gmake[1]: Leaving directory '/usr/pkgsrc/lang/gcc46/work/obj'
Makefile:897: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/lang/gcc46
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/gcc46


My previous changes to get things to build was to make the following changes to the Makefile

CONFIGURE_ARGS=       --with-dwarf2
CONFIGURE_ARGS=       --disable-multilib
CONFIGURE_ENV=        AS=/mycctools/bin/as
CONFIGURE_ENV=        AS_TARGET=/mycctools/bin/as

I installed the latest version of cctools available from opendarwin project (because I couldn't find docs on how to build the stock apple versions).

I documented my experience here https://www.geeklan.co.uk/?tag=powerbook

These changes were lifted from TigerBrew project as they went through build issues previously
https://github.com/Homebrew/homebrew-versions/commit/e833b133fcc371361c4b5fe9c7e47a58b3588323#diff-9a72a16b40f362e19a0dd423e1df2194




Home | Main Index | Thread Index | Old Index