Opened 13 years ago

Closed 10 years ago

#30961 closed defect (fixed)

arm-elf-gcc missing zlib dependency

Reported by: hannes@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: adfernandes (Andrew Fernandes)
Port: arm-elf-gcc

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Macports failed to install arm-elf-gcc by itself, after installing zlib everything worked fine.

hannes@herbert:~$ uname -a
Darwin herbert 11.0.0 Darwin Kernel Version 11.0.0: Sat Jun 18 12:57:44 PDT 2011; root:xnu-1699.22.73~1/RELEASE_I386 i386

Log excerpt:

:info:build /Developer/usr/bin/clang -I/opt/local/include   -pipe -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -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 -L/opt/local/lib -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o arm-c.o \
:info:build 	  cc1-checksum.o main.o  libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a -lintl -liconv -lc   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -lmpc -lmpfr -lgmp   -L../zlib -lz
:info:build ld: warning: ignoring file /opt/local/lib/libz.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64)
:info:build Undefined symbols for architecture x86_64:
:info:build   "_deflateInit_", referenced from:
:info:build       _lto_end_compression in libbackend.a(lto-compress.o)
:info:build   "_deflate", referenced from:
:info:build       _lto_end_compression in libbackend.a(lto-compress.o)
:info:build   "_deflateEnd", referenced from:
:info:build       _lto_end_compression in libbackend.a(lto-compress.o)
:info:build   "_zError", referenced from:
:info:build       _lto_end_compression in libbackend.a(lto-compress.o)
:info:build       _lto_end_uncompression in libbackend.a(lto-compress.o)
:info:build   "_inflate", referenced from:
:info:build Undefined symbols for architecture x86_64:
:info:build   "_deflateInit_", referenced from:
:info:build       _lto_end_uncompression in libbackend.a(lto-compress.o)
:info:build       _lto_end_compression in libbackend.a(lto-compress.o)
:info:build   "_inflateEnd", referenced from:
:info:build       _lto_end_uncompression in libbackend.a(lto-compress.o)
:info:build   "_deflate", referenced from:
:info:build       _lto_end_compression in libbackend.a(lto-compress.o)
:info:build   "_inflateInit_", referenced from:
:info:build       _lto_end_uncompression in libbackend.a(lto-compress.o)
:info:build   "_deflateEnd", referenced from:
:info:build       _lto_end_compression in libbackend.a(lto-compress.o)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build   "_zError", referenced from:
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [lto1] Error 1

Change History (6)

comment:1 Changed 13 years ago by hannes@…

Cc: hannes@… added

Cc Me!

comment:2 Changed 13 years ago by mf2k (Frank Schima)

Cc: hannes@… removed
Port: arm-elf-gcc added

comment:3 Changed 13 years ago by jmroot (Joshua Root)

The -L../zlib indicates it's actually trying to link against its own internal copy if zlib. Also, where did /opt/local/lib/libz.dylib come from if not the zlib port?

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:5 Changed 12 years ago by jmroot (Joshua Root)

Cc: adfernandes@… added

Does this still happen with 4.6.1?

comment:6 Changed 10 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Probably fixed by updates, arm-elf-gcc is now at 4.7.3. If it is not fixed, please reopen.

Note: See TracTickets for help on using tickets.