Re: r209240 ia64 -> buildworld -> undefined reference to `lzma_physmem'

From: Anton Shterenlikht <mexas_at_bristol.ac.uk>
Date: Thu, 24 Jun 2010 12:05:11 +0100
On Thu, Jun 24, 2010 at 12:31:48PM +0200, Dag-Erling Smørgrav wrote:
> Dag-Erling Smørgrav <des_at_des.no> writes:
> > On a machine where make buildworld failed, do
> >
> > % cd /usr/src
> > % make buildenv
> > % echo $PATH
> > % which cc
> > % cc --version
> > % strings $(which cc) | grep -w tmp
> 
> instead of that last line:
> 
> % cc -dumpspecs
> 
> (still in buildenv)

$ cd /usr/src
$ make buildenv
Entering world for ia64:ia64
$ echo $PATH
/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
$ which cc
/usr/obj/usr/src/tmp/usr/bin/cc
$ cc --version
cc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ cc -dumpspecs
*asm:
-x %{mconstant-gp} %{mauto-pic} %(asm_extra)

*asm_debug:
%{g*:--gdwarf2}

*asm_final:


*asm_options:
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}

*invoke_as:
%{!S:-o %|.s |
 as %(asm_options) %m.s %A }

*cpp:
                                                          %(cpp_cpu)                                                              %(cpp_arch)                                                             %{!ansi:%{!std=c89:%{!std=iso9899.1990:%{!std=iso9899.199409:-D_LONGLONG}}}}   %{posix:-D_POSIX_SOURCE}

*cpp_options:
%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w} %{f*} %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} %{undef} %{save-temps:-fpch-preprocess}

*cpp_debug_options:
%{d*}

*cpp_unique_options:
%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*&F*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{fmudflap:-D_MUDFLAP -include mf-runtime.h} %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h} %{E|M|MM:%W{o*}}

*trad_capable_cpp:
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}

*cc1:
%{G*}

*cc1_options:
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*&ansi&trigraphs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{fmudflap|fmudflapth:-fno-builtin -fno-merge-constants} %{coverage:-fprofile-arcs -ftest-coverage}

*cc1plus:


*link_gcc_c_sequence:
%G %L %G

*link_ssp:
%{fstack-protector:}

*endfile:
  %{shared|pie:crtendS.o%s;:crtend.o%s}   crtn.o%s 

*link:
%{!static:--eh-frame-hdr}                                                         %{p:%nconsider using `-pg' instead of `-p' with gprof(1)}               %{assert*} %{R*} %{rpath*} %{defsym*}                                   %{shared:-Bshareable %{h*} %{soname*}}                                  %{symbolic:-Bsymbolic}                                                  %{!shared:                                                                %{!static:                                                                %{rdynamic:-export-dynamic}                                             %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }}           %{static:-Bstatic}}

*lib:
                                                          %{!shared:                                                                %{!pg: %{pthread:-lpthread} -lc}                                        %{pg:  %{pthread:-lpthread_p} -lc_p}}                                 %{shared:                                                                 %{pthread:-lpthread} -lc}                                             %{fstack-protector|fstack-protector-all:-lssp_nonshared}                

*mfwrap:
 %{static: %{fmudflap|fmudflapth:  --wrap=malloc --wrap=free --wrap=calloc --wrap=realloc --wrap=mmap --wrap=munmap --wrap=alloca} %{fmudflapth: --wrap=pthread_create}} %{fmudflap|fmudflapth: --wrap=main}

*mflib:
%{fmudflap|fmudflapth: -export-dynamic}

*link_gomp:


*libgcc:
%{pg:%{pg: -lgcc_p;:-lgcc} %{pg: -lgcc_eh_p;:-lgcc_eh}} %{!pg:%{static|static-libgcc|pg:%{pg: -lgcc_p;:-lgcc} %{pg: -lgcc_eh_p;:-lgcc_eh}}%{!static:%{!static-libgcc:%{!shared-libgcc:%{pg: -lgcc_p;:-lgcc} --as-needed -lgcc_s --no-as-needed}%{shared-libgcc:-lgcc_s%{!shared: %{pg: -lgcc_p;:-lgcc}}}}}}

*startfile:
  %{!shared:     %{pg:gcrt1.o%s}     %{!pg:       %{p:gcrt1.o%s}       %{!p:    %{profile:gcrt1.o%s}    %{!profile:           %{pie: Scrt1.o%s;:crt1.o%s}}}}}   crti.o%s   %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}

*switches_need_spaces:


*cross_compile:
0

*version:
4.2.1

*multilib:
. ;

*multilib_defaults:


*multilib_extra:


*multilib_matches:


*multilib_exclusions:


*multilib_options:


*linker:
collect2

*link_libgcc:
%D

*md_exec_prefix:



*md_startfile_prefix:


*md_startfile_prefix_1:


*startfile_prefix_spec:
/usr/obj/usr/src/tmp/usr/lib/

*sysroot_spec:
--sysroot=%R

*sysroot_suffix_spec:


*sysroot_hdrs_suffix_spec:


*asm_extra:


*fbsd_dynamic_linker:
/libexec/ld-elf.so.1

*link_command:
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:    %(linker) %l %{pie:-pie} %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}    %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}    %{static:} %{L*} %(mfwrap) %(link_libgcc) %o    %{fopenmp: -lgomp} %(mflib)    %{fprofile-arcs|fprofile-generate|coverage:-lgcov}    %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}    %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}

$ 



many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
Received on Thu Jun 24 2010 - 09:05:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC