Opened 13 years ago

Closed 13 years ago

#32109 closed defect (fixed)

Fix LyX to build with clang

Reported by: alfredherrmann@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: soriyath@…, jeremyhu (Jeremy Huddleston Sequoia), vfr@…
Port: LyX

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

:info:configure config.status: creating sourcedoc/Doxyfile
:info:configure config.status: creating sourcedoc/Makefile
:info:configure config.status: creating src/client/Makefile
:info:configure config.status: creating src/client/lyxclient.1
...skipping...
:info:build ./Lexer.h:225:13: error: implicit instantiation of undefined template 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
:info:build                 t = T(lex.getString());
:info:build                           ^
:info:build ./support/strfwd.h:42:64: note: template is declared here
:info:build template<typename Char, typename Traits, typename Alloc> class basic_string;
:info:build                                                                ^
:info:build   CXX    LyX.o
:info:build 1 error generated.
:info:build make[4]: *** [Lexer.o] Error 1
:info:build make[4]: *** Waiting for unfinished jobs....
:info:build 2 warnings generated.
:info:build 2 warnings generated.
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_LyX/lyx/work/lyx-2.0.1/src'
:info:build make[3]: *** [all-recursive] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_LyX/lyx/work/lyx-2.0.1/src'
:info:build make[2]: *** [all] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_LyX/lyx/work/lyx-2.0.1/src'
: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_ports_aqua_LyX/lyx/work/lyx-2.0.1'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_LyX/lyx/work/lyx-2.0.1'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_LyX/lyx/work/lyx-2.0.1" && /usr/bin/make -j4 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for lyx): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for lyx is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_LyX/lyx/main.log

Attachments (1)

main.log (247.2 KB) - added by alfredherrmann@… 13 years ago.

Download all attachments as: .zip

Change History (12)

Changed 13 years ago by alfredherrmann@…

Attachment: main.log added

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

Description: modified (diff)
Owner: changed from macports-tickets@… to snc@…
Port: LyX added
Summary: lyx2 error: implicit instantiation of undefined templateLyX: error: implicit instantiation of undefined template

comment:2 Changed 13 years ago by soriyath@…

Cc: soriyath@… added

Cc Me!

comment:3 Changed 13 years ago by nerdling (Jeremy Lavergne)

Status: newassigned
Version: 2.0.3

I suspect this bug is due to clang:

http://osdir.com/ml/fink-development-osx-unix/2011-09/msg00011.html

I'm updating LyX today, and will set it to use LLVM. Let me know if it then builds successfully for you.

comment:4 Changed 13 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: assignedclosed

Updated and set to avoid clang in r87680.

comment:5 Changed 13 years ago by herrmann.alfred@…

yes fixed. Builds. Thanks, great! But another problem when compiling: Die Datei existiert nicht: /var/folders/62/12kw63kx4n5fhj_y0sq_380000gp/T/lyx_tmpdir.L79639/lyx_tmpbuf3/splash.pdf file doesn't exist: ...

comment:6 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: closedreopened

This is a bug in the project, and we should look into a proper fix rather than always falling back on llvm-gcc

http://llvm.org/bugs/show_bug.cgi?id=10521

comment:7 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Summary: LyX: error: implicit instantiation of undefined templateFix LyX to build with clang

comment:8 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Cc: jeremyhu@… added

Cc Me!

comment:10 Changed 13 years ago by vfr@…

Cc: vfr@… added

Cc Me!

comment:11 Changed 13 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: reopenedclosed

Committed in r91830.

Note: See TracTickets for help on using tickets.