Opened 11 years ago

Closed 10 years ago

#21059 closed defect (worksforme)

llvm-gcc42@2.5 Build fails on SL -- Xcode: 3.2 (1610)

Reported by: vkemerlis (Vasileios Kemerlis) Owned by: erickt@…
Priority: Low Milestone:
Component: ports Version:
Keywords: snowleopard Cc: RxSchuster@…, anand.prabhakar.patil@…, aoeumacports@…
Port: llvm-gcc42

Description

--->  Computing dependencies for llvm-gcc42
--->  Fetching llvm-gcc42
--->  Attempting to fetch llvm-gcc-4.2-2.5.source.tar.gz from http://llvm.org/releases/2.5/
--->  Verifying checksum(s) for llvm-gcc42
--->  Extracting llvm-gcc42
--->  Configuring llvm-gcc42
--->  Building llvm-gcc42
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-gcc42/work/build" && /usr/bin/make -j2 all " returned error 2
Command output: (pod2man --center="GNU" --release="gcc-4.2.1" --section=7 fsf-funding.pod > doc/fsf-funding.7.T$$ && \
		mv -f doc/fsf-funding.7.T$$ doc/fsf-funding.7) || \
		(rm -f doc/fsf-funding.7.T$$ && exit 1)
awk -f ../../llvm-gcc4.2-2.5.source/gcc/opt-functions.awk -f ../../llvm-gcc4.2-2.5.source/gcc/opth-gen.awk \
	       < optionlist > tmp-options.h
/bin/sh ../../llvm-gcc4.2-2.5.source/gcc/../move-if-change tmp-options.h options.h
echo timestamp > s-options-h
/usr/bin/gcc-4.2 -m32 -c   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common  -mdynamic-no-pic -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../llvm-gcc4.2-2.5.source/gcc -I../../llvm-gcc4.2-2.5.source/gcc/build -I../../llvm-gcc4.2-2.5.source/gcc/../include -I./../intl -I../../llvm-gcc4.2-2.5.source/gcc/../libcpp/include  -I../../llvm-gcc4.2-2.5.source/gcc/../libdecnumber -I../libdecnumber -I/opt/local/lib/llvm/obj/include -I/opt/local/lib/llvm/src/include -DENABLE_LLVM -I/opt/local/lib/llvm/src/include  -D_DEBUG  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS   -o build/genmodes.o ../../llvm-gcc4.2-2.5.source/gcc/genmodes.c
/usr/bin/gcc-4.2 -m32 -c   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common  -mdynamic-no-pic -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../llvm-gcc4.2-2.5.source/gcc -I../../llvm-gcc4.2-2.5.source/gcc/build -I../../llvm-gcc4.2-2.5.source/gcc/../include -I./../intl -I../../llvm-gcc4.2-2.5.source/gcc/../libcpp/include  -I../../llvm-gcc4.2-2.5.source/gcc/../libdecnumber -I../libdecnumber -I/opt/local/lib/llvm/obj/include -I/opt/local/lib/llvm/src/include -DENABLE_LLVM -I/opt/local/lib/llvm/src/include  -D_DEBUG  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS   -o build/errors.o ../../llvm-gcc4.2-2.5.source/gcc/errors.c
/usr/bin/gcc-4.2 -m32 -c   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common  -mdynamic-no-pic -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../llvm-gcc4.2-2.5.source/gcc -I../../llvm-gcc4.2-2.5.source/gcc/build -I../../llvm-gcc4.2-2.5.source/gcc/../include -I./../intl -I../../llvm-gcc4.2-2.5.source/gcc/../libcpp/include  -I../../llvm-gcc4.2-2.5.source/gcc/../libdecnumber -I../libdecnumber -I/opt/local/lib/llvm/obj/include -I/opt/local/lib/llvm/src/include -DENABLE_LLVM -I/opt/local/lib/llvm/src/include  -D_DEBUG  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS   -o build/gengenrtl.o ../../llvm-gcc4.2-2.5.source/gcc/gengenrtl.c
/usr/bin/gcc-4.2 -m32   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common  -mdynamic-no-pic -DHAVE_CONFIG_H -DGENERATOR_FILE -L/opt/local/lib -o build/genchecksum \
	    build/genchecksum.o ../build-i686-apple-darwin10/libiberty/libiberty.a
ld: warning: in ../build-i686-apple-darwin10/libiberty/libiberty.a, file is not of required architecture
Undefined symbols:
  "_fopen_unlocked", referenced from:
      _dosum in genchecksum.o
  "_md5_stream", referenced from:
      _dosum in genchecksum.o
  "_xstrerror", referenced from:
      _dosum in genchecksum.o
      _dosum in genchecksum.o
      _dosum in genchecksum.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [build/genchecksum] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gcov.pod fsf-funding.pod gfdl.pod cpp.pod gpl.pod gcc.pod
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Sys:

foo:~ vpk$ uname -a
Darwin foo.bar.edu 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:46:25 PDT 2009; root:xnu-1456.1.25~1/RELEASE_X86_64 x86_64

OSX: SL (10.6), Xcode: 3.2 (1610), MacPorts: 1.8.99

It seems that there is a mismatch between /build-i686-apple-darwin10/libiberty/libiberty.a (x86_64) and genchecksum.o (i386)

Change History (12)

comment:1 Changed 11 years ago by tobypeterson

Keywords: snowleopard added; snow leopard llvm-gcc42 removed
Owner: changed from macports-tickets@… to erickt@…
Priority: NormalLow
Version: 1.8.99

Marking priority as low, since you can just use the system llvm-gcc

comment:2 Changed 11 years ago by vkemerlis (Vasileios Kemerlis)

You can use the system llvm-gcc but you still can't build packages that depend on that one. For example VLC (actually this is why I need that port).

comment:3 Changed 11 years ago by tobypeterson

Weird - VLC has "configure.compiler llvm-gcc-4.2" which should make it use the *system* llvm-gcc...

comment:4 Changed 11 years ago by tobypeterson

I've removed the VLC dependency in r56975

comment:5 in reply to:  4 ; Changed 11 years ago by tommccullough-tenica

Replying to toby@…:

I've removed the VLC dependency in r56975

Could you (or somebody?) do the same for py25-scipy+gcc42? (Maybe it needs a fortran compiler?) I can't compile gcc42, gcc43, or gcc44...I would really appreciate it. Thanks.

comment:6 in reply to:  5 Changed 11 years ago by ryandesign (Ryan Schmidt)

Replying to thomas.mccullough@…:

Could you (or somebody?) do the same for py25-scipy+gcc42?

No, because

(Maybe it needs a fortran compiler?)

Yes, it does, and Apple doesn't provide one.

I can't compile gcc42, gcc43, or gcc44...

Yes, see #20993, #20933, #20838. Those issues are not related to the llvm-gcc42 issues in this ticket.

comment:7 Changed 11 years ago by RxSchuster@…

Cc: RxSchuster@… added

Cc Me!

comment:8 in reply to:  description Changed 11 years ago by RxSchuster@…

I have exactly the same problem. The undefined symbols differ depending on the variant a choose, but with all four variants it don't builds.

I want to use it because of llvm-gfortran which is not included in the system llvm-gcc.

comment:9 Changed 11 years ago by mf2k (Frank Schima)

Cc: anand.prabhakar.patil@… added

Cc reporter of duplicate #22818.

comment:10 Changed 11 years ago by aoeumacports@…

Cc: aoeumacports@… added

Cc Me!

comment:11 Changed 10 years ago by macports@…

A fix for this issue and several related enhancements (e.g. llvm-gfortran) are available in #24112

comment:12 Changed 10 years ago by mfeiri

Resolution: worksforme
Status: newclosed

Works for me on 10.6 with llvm-gcc42@2.8

Note: See TracTickets for help on using tickets.