Opened 9 years ago

Closed 9 years ago

#48670 closed defect (duplicate)

texlive-bin fails to compile

Reported by: justacec@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: drkp (Dan Ports)
Port: texlive-bin

Description

I was trying to update my MacPorts install and needed to upgrade the texlive-bin package as it was outdated. After some build time, I received the following error:

--->  Computing dependencies for texlive-bin
--->  Fetching archive for texlive-bin
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers>
--->  Attempting to fetch texlive-bin-2015_3+x11.darwin_14.x86_64.tbz2 from http://packages.macports.org/texlive-bin
--->  Attempting to fetch texlive-bin-2015_3+x11.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/texlive-bin
--->  Attempting to fetch texlive-bin-2015_3+x11.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/texlive-bin
--->  Fetching distfiles for texlive-bin
--->  Verifying checksums for texlive-bin
--->  Extracting texlive-bin
--->  Applying patches to texlive-bin
--->  Configuring texlive-bin
--->  Building texlive-bin
Error: org.macports.build for port texlive-bin returned: command execution failed
Please see the log file for port texlive-bin for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

The last few lines of the main.log file are the following:

:info:build libtool: link: /usr/bin/clang -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -pipe -Os -arch x86_64 -Wl,-headerpad_max_install_names -arch x86_64 -o .libs/upmpost upmpost-pmp.o upmpost-pmpmath.o upmpost-pmpmathbinary.o upmpost-pmpmathdecimal.o upmpost-pmpmathdouble.o upmpost-pmpost.o upmpost-pmpstrings.o upmpost-pmpxout.o upmpost-ppngout.o upmpost-ppsout.o upmpost-psvgout.o upmpost-ptfmin.o  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped/texk/ptexenc/.libs/libptexenc.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped/texk/kpathsea/.libs/libkpathsea.dylib /usr/local/lib/libmpfr.a /usr/local/lib/libgmp.a -L/opt/local/lib -lcairo -lpixman-1 -lpng16 -lz libmputil.a
:info:build Undefined symbols for architecture x86_64:
:info:build   "_mpfr_set_zero", referenced from:
:info:build       _mp_initialize_binary_math in pmpost-pmpmathbinary.o
:info:build       _mp_new_number in pmpost-pmpmathbinary.o
:info:build       _mp_binary_n_arg in pmpost-pmpmathbinary.o
:info:build       _mp_binary_m_log in pmpost-pmpmathbinary.o
:info:build       _mp_binary_pyth_sub in pmpost-pmpmathbinary.o
:info:build       _mp_binary_square_rt in pmpost-pmpmathbinary.o
:info:build       _mp_check_mpfr_t in pmpost-pmpmathbinary.o
:info:build       ...
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build /usr/bin/clang -DHAVE_CONFIG_H -I. -I./w2c  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped/texk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped/texk  -I/opt/local/include/libpng16  -DPOPPLER_VERSION=\"0.35.0\" -I/opt/local/include/poppler  -I./libmd5 -DpdfTeX -I./luatexdir -DSYNCTEX_ENGINE_H='<synctex-luatex.h>' -I./synctexdir -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped/libs/lua52/include -DLUA_COMPAT_MODULE -DLUAI_HASHLIMIT=6 -DLUA_USE_POSIX -DLUA_USE_DLOPEN -isystem/opt/local/include -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -pipe -Os -arch x86_64 -MT luatexdir/lua/libluatex_a-loslibext.o -MD -MP -MF luatexdir/lua/.deps/libluatex_a-loslibext.Tpo -c -o luatexdir/lua/libluatex_a-loslibext.o `test -f 'luatexdir/lua/loslibext.c' || echo './'`luatexdir/lua/loslibext.c
:info:build make[5]: *** [pmpost] Error 1
:info:build make[5]: *** Waiting for unfinished jobs....
:info:build Undefined symbols for architecture x86_64:
:info:build   "_mpfr_set_zero", referenced from:
:info:build       _mp_initialize_binary_math in upmpost-pmpmathbinary.o
:info:build       _mp_new_number in upmpost-pmpmathbinary.o
:info:build       _mp_binary_n_arg in upmpost-pmpmathbinary.o
:info:build       _mp_binary_m_log in upmpost-pmpmathbinary.o
:info:build       _mp_binary_pyth_sub in upmpost-pmpmathbinary.o
:info:build       _mp_binary_square_rt in upmpost-pmpmathbinary.o
:info:build       _mp_check_mpfr_t in upmpost-pmpmathbinary.o
:info:build       ...
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[5]: *** [upmpost] Error 1
:info:build mv -f luatexdir/lua/.deps/libluatex_a-lepdflib.Tpo luatexdir/lua/.deps/libluatex_a-lepdflib.Po
:info:build mv -f luatexdir/lua/.deps/libluatex_a-liolibext.Tpo luatexdir/lua/.deps/libluatex_a-liolibext.Po
:info:build mv -f luatexdir/lua/.deps/libluatex_a-loslibext.Tpo luatexdir/lua/.deps/libluatex_a-loslibext.Po
:info:build mv -f luatexdir/lua/.deps/libluatex_a-lnodelib.Tpo luatexdir/lua/.deps/libluatex_a-lnodelib.Po
:info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped/texk/web2c'
:info:build make[4]: *** [all-recursive] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped/texk/web2c'
:info:build make[3]: *** [all] Error 2
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped/texk/web2c'
:info:build make[2]: *** [recurse] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped/texk'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped/texk'
:info:build make: *** [all-recursive] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20150611-stripped" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port texlive-bin returned: command execution failed
:debug:build Error code: CHILDSTATUS 6435 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for texlive-bin: org.macports.install org.macports.build org.macports.destroot
:notice:build Please see the log file for port texlive-bin for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/main.log

From here it seems as though it is an issue with the clan linker not being able to resolve a symbol. This could also be related to the x86_64 flags? I am not sure. I have cleaned the build and retried to upgrade it and have received the same problem. This is a 100% reproducible error on my machine.

I am running OS X 10.10.3 and clang version:

Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) Target: x86_64-apple-darwin14.3.0 Thread model: posix

Ports version 2.3.3

Change History (1)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: dports@… added; justacec@… removed
Keywords: tex texlive removed
Resolution: duplicate
Status: newclosed

Duplicate of #48490. Remove /usr/local/lib/libmpfr.a and ideally everything else in /usr/local, then clean texlive-bin and try again.

Note: See TracTickets for help on using tickets.