Skip to content

Intel macOS Big Sur 11.4 make test fails: "ld: file too small (length=8) file 'Vt_a1_first_cc__ALL.a' for architecture x86_64" #3031

@badwin00

Description

@badwin00

Been trying to install for a few days, i've brew install all the dependencies i can. Getting Verilator itself through brew throws the same linker error when i try to use it. It works through docker but produces linux binaries, which is not ideal for me. Any guidance would be appreciated, thank you.

Samuels-MBP :: ~/Tools/verilator ‹master*› % ./bin/verilator --version 2 ↵ Verilator 4.205 devel rev v4.204-35-g6c9c16c3 (mod) Samuels-MBP :: ~/Tools/verilator ‹master*› % make test ------------------------------------------------------------ making verilator in src /Library/Developer/CommandLineTools/usr/bin/make -C src /Library/Developer/CommandLineTools/usr/bin/make -C obj_dbg -j 1 TGT=../../bin/verilator_bin_dbg VL_DEBUG=1 -f ../Makefile_obj serial make[2]: Nothing to be done for `serial'. /Library/Developer/CommandLineTools/usr/bin/make -C obj_dbg TGT=../../bin/verilator_bin_dbg VL_DEBUG=1 -f ../Makefile_obj Compile flags: g++ -std=gnu++14 -Og -ggdb -gz -DVL_DEBUG -D_GLIBCXX_DEBUG -MMD -I. -I.. -I.. -I../../include -I../../include -MP -Qunused-arguments -faligned-new -Wno-unused-parameter -Wno-shadow -DDEFENV_SYSTEMC="" -DDEFENV_SYSTEMC_ARCH="" -DDEFENV_SYSTEMC_INCLUDE="" -DDEFENV_SYSTEMC_LIBDIR="" -DDEFENV_VERILATOR_ROOT="/Users/sambadwin/Tools/verilator" /Library/Developer/CommandLineTools/usr/bin/make -C obj_dbg TGT=../../bin/verilator_coverage_bin_dbg VL_DEBUG=1 VL_VLCOV=1 -f ../Makefile_obj serial_vlcov make[2]: Nothing to be done for `serial_vlcov'. /Library/Developer/CommandLineTools/usr/bin/make -C obj_dbg TGT=../../bin/verilator_coverage_bin_dbg VL_DEBUG=1 VL_VLCOV=1 -f ../Makefile_obj Compile flags: g++ -std=gnu++14 -Og -ggdb -gz -DVL_DEBUG -D_GLIBCXX_DEBUG -MMD -I. -I.. -I.. -I../../include -I../../include -MP -Qunused-arguments -faligned-new -Wno-unused-parameter -Wno-shadow -DDEFENV_SYSTEMC="" -DDEFENV_SYSTEMC_ARCH="" -DDEFENV_SYSTEMC_INCLUDE="" -DDEFENV_SYSTEMC_LIBDIR="" -DDEFENV_VERILATOR_ROOT="/Users/sambadwin/Tools/verilator" /Library/Developer/CommandLineTools/usr/bin/make -C obj_opt -j 1 TGT=../../bin/verilator_bin -f ../Makefile_obj serial make[2]: Nothing to be done for `serial'. /Library/Developer/CommandLineTools/usr/bin/make -C obj_opt TGT=../../bin/verilator_bin -f ../Makefile_obj Compile flags: g++ -std=gnu++14 -O2 -MMD -I. -I.. -I.. -I../../include -I../../include -MP -Qunused-arguments -faligned-new -Wno-unused-parameter -Wno-shadow -DDEFENV_SYSTEMC="" -DDEFENV_SYSTEMC_ARCH="" -DDEFENV_SYSTEMC_INCLUDE="" -DDEFENV_SYSTEMC_LIBDIR="" -DDEFENV_VERILATOR_ROOT="/Users/sambadwin/Tools/verilator" test_regress/t/t_a1_first_cc.pl ====================================================================== dist/t_a1_first_cc: ================================================== -Skip: dist/t_a1_first_cc: scenario 'dist' not enabled for test dist/t_a1_first_cc: -Skip: Skip: scenario 'dist' not enabled for test ==SUMMARY: Passed 0 Failed 0 Unsup 0 Time 0:00 ====================================================================== vlt/t_a1_first_cc: ================================================== perl ../bin/verilator --debug --debugi 0 --gdbbt --no-dump-tree -V "0x7ffeef22b4f0s": not in executable format: file format not recognized warning: ~/SandBox/homecvs/v4/verilator/src/.gdbinit: No such file or directory No executable file specified. Use the "file" or "exec-file" command. No stack. -Info: --gdbbt ignored: gdb doesn't seem to be working Starting Verilator 4.205 devel rev v4.204-35-g6c9c16c3 (mod) Starting Verilator 4.205 devel rev v4.204-35-g6c9c16c3 (mod) Verilator 4.205 devel rev v4.204-35-g6c9c16c3 (mod)

Copyright 2003-2021 by Wilson Snyder. Verilator is free software; you can
redistribute it and/or modify the Verilator internals under the terms of
either the GNU Lesser General Public License Version 3 or the Perl Artistic
License Version 2.0.

See https://verilator.org for documentation

Summary of configuration:
Compiled in defaults if not in environment:
SYSTEMC =
SYSTEMC_ARCH =
SYSTEMC_INCLUDE =
SYSTEMC_LIBDIR =
VERILATOR_ROOT = /Users/sambadwin/Tools/verilator
SystemC system-wide = 0

Environment:
MAKE = make
PERL =
SYSTEMC =
SYSTEMC_ARCH =
SYSTEMC_INCLUDE =
SYSTEMC_LIBDIR =
VERILATOR_ROOT = /Users/sambadwin/Tools/verilator
VERILATOR_BIN =

Features (based on environment or compiled-in support):
SystemC found = 0
perl /Users/sambadwin/Tools/verilator/bin/verilator --prefix Vt_a1_first_cc ../obj_vlt/t_a1_first_cc/Vt_a1_first_cc__main.cpp --exe --make gmake --x-assign unique -cc -Mdir obj_vlt/t_a1_first_cc -OD --debug-check --comp-limit-members 10 --debug --debugi 0 --gdbbt --no-dump-tree --trace --clk clk -f input.vc +define+TEST_OBJ_DIR=obj_vlt/t_a1_first_cc t/t_a1_first_cc.v > obj_vlt/t_a1_first_cc/vlt_compile.log
"0x7ffee56974f0s": not in executable format: file format not recognized
warning: ~/SandBox/homecvs/v4/verilator/src/.gdbinit: No such file or directory
No executable file specified.
Use the "file" or "exec-file" command.
No stack.
-Info: --gdbbt ignored: gdb doesn't seem to be working
Starting Verilator 4.205 devel rev v4.204-35-g6c9c16c3 (mod)
Starting Verilator 4.205 devel rev v4.204-35-g6c9c16c3 (mod)
make -C obj_vlt/t_a1_first_cc -f /Users/sambadwin/Tools/verilator/test_regress/Makefile_obj --no-print-directory VM_PREFIX=Vt_a1_first_cc TEST_OBJ_DIR=obj_vlt/t_a1_first_cc CPPFLAGS_DRIVER=-DT_A1_FIRST_CC OPT_FAST=-O0 OPT_GLOBAL=-O0 Vt_a1_first_cc > obj_vlt/t_a1_first_cc/vlt_gcc.log
driver: Entering directory '/Users/sambadwin/Tools/verilator/test_regress/obj_vlt/t_a1_first_cc'
ccache g++ -I. -MMD -I/Users/sambadwin/Tools/verilator/include -I/Users/sambadwin/Tools/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -DVM_TRACE_FST=0 -faligned-new -fbracket-depth=4096 -fcf-protection=none -Qunused-arguments -Wno-bool-operation -Wno-tautological-bitwise-compare -Wno-parentheses-equality -Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++14 -DVERILATOR=1 -DVL_DEBUG=1 -DTEST_OBJ_DIR=obj_vlt/t_a1_first_cc -DVM_PREFIX=Vt_a1_first_cc -DVM_PREFIX_INCLUDE="<Vt_a1_first_cc.h>" -DT_A1_FIRST_CC -O0 -c -o Vt_a1_first_cc__main.o ../../obj_vlt/t_a1_first_cc/Vt_a1_first_cc__main.cpp
g++ Vt_a1_first_cc__main.o verilated.o verilated_vcd_c.o Vt_a1_first_cc__ALL.a -o Vt_a1_first_cc
ld: file too small (length=8) file 'Vt_a1_first_cc__ALL.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Vt_a1_first_cc] Error 1
driver: Leaving directory '/Users/sambadwin/Tools/verilator/test_regress/obj_vlt/t_a1_first_cc'
%Warning: vlt/t_a1_first_cc: Exec of make failed: ccache g++ -I. -MMD -I/Users/sambadwin/Tools/verilator/include -I/Users/sambadwin/Tools/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -DVM_TRACE_FST=0 -faligned-new -fbracket-depth=4096 -fcf-protection=none -Qunused-arguments -Wno-bool-operation -Wno-tautological-bitwise-compare -Wno-parentheses-equality -Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++14 -DVERILATOR=1 -DVL_DEBUG=1 -DTEST_OBJ_DIR=obj_vlt/t_a1_first_cc -DVM_PREFIX=Vt_a1_first_cc -DVM_PREFIX_INCLUDE="<Vt_a1_first_cc.h>" -DT_A1_FIRST_CC -O0 -c -o Vt_a1_first_cc__main.o ../../obj_vlt/t_a1_first_cc/Vt_a1_first_cc__main.cpp

vlt/t_a1_first_cc: %Error: Exec of make failed: ccache g++ -I. -MMD -I/Users/sambadwin/Tools/verilator/include -I/Users/sambadwin/Tools/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -DVM_TRACE_FST=0 -faligned-new -fbracket-depth=4096 -fcf-protection=none -Qunused-arguments -Wno-bool-operation -Wno-tautological-bitwise-compare -Wno-parentheses-equality -Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++14 -DVERILATOR=1 -DVL_DEBUG=1 -DTEST_OBJ_DIR=obj_vlt/t_a1_first_cc -DVM_PREFIX=Vt_a1_first_cc -DVM_PREFIX_INCLUDE="<Vt_a1_first_cc.h>" -DT_A1_FIRST_CC -O0 -c -o Vt_a1_first_cc__main.o ../../obj_vlt/t_a1_first_cc/Vt_a1_first_cc__main.cpp
vlt/t_a1_first_cc: FAILED: Exec of make failed: ccache g++ -I. -MMD -I/Users/sambadwin/Tools/verilator/include -I/Users/sambadwin/Tools/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -DVM_TRACE_FST=0 -faligned-new -fbracket-depth=4096 -fcf-protection=none -Qunused-arguments -Wno-bool-operation -Wno-tautological-bitwise-compare -Wno-parentheses-equality -Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++14 -DVERILATOR=1 -DVL_DEBUG=1 -DTEST_OBJ_DIR=obj_vlt/t_a1_first_cc -DVM_PREFIX=Vt_a1_first_cc -DVM_PREFIX_INCLUDE="<Vt_a1_first_cc.h>" -DT_A1_FIRST_CC -O0 -c -o Vt_a1_first_cc__main.o ../../obj_vlt/t_a1_first_cc/Vt_a1_first_cc__main.cpp
==SUMMARY: Passed 0 Failed 1 Unsup 0 Time 0:02
==SUMMARY: Passed 0 Failed 1 Unsup 0 Time 0:02

======================================================================
#vlt/t_a1_first_cc: %Error: Exec of make failed: ccache g++ -I. -MMD -I/Users/sambadwin/Tools/verilator/include -I/Users/sambadwin/Tools/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -DVM_TRACE_FST=0 -faligned-new -fbracket-depth=4096 -fcf-protection=none -Qunused-arguments -Wno-bool-operation -Wno-tautological-bitwise-compare -Wno-parentheses-equality -Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++14 -DVERILATOR=1 -DVL_DEBUG=1 -DTEST_OBJ_DIR=obj_vlt/t_a1_first_cc -DVM_PREFIX=Vt_a1_first_cc -DVM_PREFIX_INCLUDE="<Vt_a1_first_cc.h>" -DT_A1_FIRST_CC -O0 -c -o Vt_a1_first_cc__main.o ../../obj_vlt/t_a1_first_cc/Vt_a1_first_cc__main.cpp
make && test_regress/t/t_a1_first_cc.pl --vlt
TESTS DONE, FAILED: Passed 0 Failed 1 Unsup 0 Time 0:02
make: *** [smoke-test] Error 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolution: answeredClosed; only applies to questions which were answered

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions