New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30961 (new defect)

Opened 22 months ago

Last modified 13 months ago

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@…
Port: arm-elf-gcc

Description (last modified by ryandesign@…) (diff)

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

comment:1 Changed 22 months ago by hannes@…

  • Cc hannes@… added

Cc Me!

comment:2 Changed 22 months ago by macsforever2000@…

  • Cc hannes@… removed
  • Port set to arm-elf-gcc

comment:3 Changed 22 months ago by jmr@…

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 21 months ago by ryandesign@…

  • Description modified (diff)

comment:5 Changed 13 months ago by jmr@…

  • Cc adfernandes@… added

Does this still happen with 4.6.1?

Note: See TracTickets for help on using tickets.