Skip to content

1.1.6 release build failed on ArchLinux #1114

Description

@luozhiya

Mogan Version

1.1.6

Operating System Version and Architecture

Linux R9-7950X-CODE 6.5.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 23 Sep 2023 22:55:13 +0000 x86_64 GNU/Linux

Describe Bug

Command

  xrepo update-repo
  xmake config -m release --yes
  xmake build --yes --verbose --diagnosis --jobs=8 --all

Output

[ 97%]: linking.release mogan
/usr/bin/g++ -o build/linux/x86_64/release/mogan build/.objs/mogan/linux/x86_64/release/src/Texmacs/Texmacs/texmacs.cpp.o -m64 -L/usr/lib -Lbuild/linux/x86_64/release -Wl,-rpath=$ORIGIN/../lib -Wl,-rpath=$ORIGIN -Wl,-rpath=/usr/lib -s -lmogan -lQt5PrintSupport -lQt5Svg -lQt5Gui -lQt5Widgets -lQt5Core -lpthread
/usr/bin/ld: build/.objs/mogan/linux/x86_64/release/src/Texmacs/Texmacs/texmacs.cpp.o: in function `immediate_options(int, char**)':
texmacs.cpp:(.text+0x58d4): undefined reference to `get_tm_cache_path()'
/usr/bin/ld: texmacs.cpp:(.text+0x5c40): undefined reference to `get_tm_cache_path()'
/usr/bin/ld: texmacs.cpp:(.text+0x5de8): undefined reference to `get_tm_cache_path()'
/usr/bin/ld: texmacs.cpp:(.text+0x6018): undefined reference to `get_tm_cache_path()'
/usr/bin/ld: texmacs.cpp:(.text+0x6230): undefined reference to `get_tm_cache_path()'
/usr/bin/ld: build/.objs/mogan/linux/x86_64/release/src/Texmacs/Texmacs/texmacs.cpp.o:texmacs.cpp:(.text+0x62a5): more undefined references to `get_tm_cache_path()' follow
collect2: error: ld returned 1 exit status
error: @programdir/modules/async/runjobs.lua:256: @programdir/actions/build/kinds/binary.lua:74: @programdir/core/sandbox/modules/os.lua:378: execv(/usr/bin/g++ -o build/linux/x86_64/release/mogan build/.objs/mogan/linux/x86_64/release/src/Texmacs/Texmacs/texmacs.cpp.o -m64 -L/usr/lib -Lbuild/linux/x86_64/release -Wl,-rpath=$ORIGIN/../lib -Wl,-rpath=$ORIGIN -Wl,-rpath=/usr/lib -s -lmogan -lQt5PrintSupport -lQt5Svg -lQt5Gui -lQt5Widgets -lQt5Core -lpthread) failed(1)
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:923]:
    [@programdir/core/sandbox/modules/os.lua:378]: in function 'execv'
    [@programdir/modules/core/tools/gcc.lua:487]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:280]:
    [@programdir/core/tool/linker.lua:224]: in function 'link'
    [@programdir/actions/build/kinds/binary.lua:74]: in function 'callback'
    [@programdir/modules/core/project/depend.lua:191]: in function 'on_changed'
    [@programdir/actions/build/kinds/binary.lua:55]: in function '_do_link_target'
    [@programdir/actions/build/kinds/binary.lua:105]:
    [@programdir/actions/build/kinds/binary.lua:132]: in function '_link_target'
    [@programdir/actions/build/kinds/binary.lua:160]: in function 'jobfunc'
    [@programdir/modules/async/runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:280]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/async/runjobs.lua:218]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:404]:

stack traceback:
	[C]: in function 'error'
	@programdir/core/base/os.lua:923: in function 'base/os.raiselevel'
	(...tail calls...)
	@programdir/modules/async/runjobs.lua:256: in field 'catch'
	@programdir/core/sandbox/modules/try.lua:123: in global 'try'
	@programdir/modules/async/runjobs.lua:218: in upvalue 'cotask'
	@programdir/core/base/scheduler.lua:404: in function <@programdir/core/base/scheduler.lua:397>
==> ERROR: A failure occurred in build().
    Aborting...

Expected Behavior

build OK

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions