Skip to content

FreeBSD/Clang - ld: error: undefined symbol: backtrace referenced by v.c #3500

@XVilka

Description

@XVilka

V version: cf1fd6e commit
OS: FreeBSD

What did you do?

The sources are located here The sources are located here: https://github.com/radareorg/radare2/tree/master/test/src

Compile V

What did you expect to see?

Compiled V

What did you see instead?

See the https://builds.sr.ht/~xvilka/job/139590#task-install-481 for the full build log, it is caused by the following SourceHut configuration: https://github.com/radareorg/radare2/blob/92a494a4bac7c581cc2161f99f2cab77d3990147/.builds/freebsd.yml

gmake -C v
gmake[2]: Entering directory '/usr/home/build/radare2/test/src/v'
gmake fresh_vc
gmake[3]: Entering directory '/usr/home/build/radare2/test/src/v'
rm -rf /tmp/vc
git clone --depth 1 --quiet https://github.com/vlang/vc /tmp/vc
gmake[3]: Leaving directory '/usr/home/build/radare2/test/src/v'
cd /tmp/vc && git clean -xf && git pull --quiet
gmake fresh_tcc
gmake[3]: Entering directory '/usr/home/build/radare2/test/src/v'
rm -rf /var/tmp/tcc
git clone --depth 1 --quiet https://github.com/vlang/tccbin /var/tmp/tcc
gmake[3]: Leaving directory '/usr/home/build/radare2/test/src/v'
cd /var/tmp/tcc && git clean -xf && git pull --quiet
clang  -std=gnu11 -w -o v /tmp/vc/v.c  -lm
ld: error: undefined symbol: backtrace
>>> referenced by v.c
>>>               /tmp/v-39df08.o:(print_backtrace_skipping_top_frames_freebsd)

ld: error: undefined symbol: backtrace_symbols_fd
>>> referenced by v.c
>>>               /tmp/v-39df08.o:(print_backtrace_skipping_top_frames_freebsd)
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis tag is applied to issues which reports bugs.Unit: CompilerBugs/feature requests, that are related to the V compiler in general.

    Type

    No type
    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