From 721bd82d6f37dd648d53d8f168c02f0bd0ca3b58 Mon Sep 17 00:00:00 2001 From: Muthu Annamalai Date: Sat, 13 May 2023 00:49:05 -0700 Subject: [PATCH] yosys> read_verilog /tmp/powerlog/cloud/Powerlog_43077FB1-54B7-4948-9CE7-C8A2DBD19124.tar.gz Found gzip magic in file /tmp/powerlog/cloud/Powerlog_43077FB1-54B7-4948-9CE7-C8A2DBD19124.tar.gz, decompressing using zlib. 1. Executing Verilog-2005 frontend: /tmp/powerlog/cloud/Powerlog_43077FB1-54B7-4948-9CE7-C8A2DBD19124.tar.gz Parsing Verilog input from `/tmp/powerlog/cloud/Powerlog_43077FB1-54B7-4948-9CE7-C8A2DBD19124.tar.gz' to AST representation. /tmp/powerlog/cloud/Powerlog_43077FB1-54B7-4948-9CE7-C8A2DBD19124.tar.gz:1: ERROR: syntax error, unexpected TOK_ID Obtained 13 stack frames. 1 | 0 yosys 0x00000001001644ac _Z17yosys_print_tracev + 88 2 | 1 yosys 0x0000000100164568 _Z12yosys_atexitv + 16 3 | 2 yosys 0x0000000100205124 _ZN5YosysL22logv_error_with_prefixEPKcS1_Pc + 840 4 | 3 yosys 0x00000001002052f4 _ZN5Yosys14log_file_errorERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEiPKcz + 96 5 | 4 yosys 0x00000001003bc694 _ZNSt3__110__list_impINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEEENS5_IS9_EEE5clearEv + 0 6 | 5 yosys 0x000000010039772c _Z24frontend_verilog_yyparsev + 2164 7 | 6 yosys 0x00000001003be520 _ZN5Yosys15VerilogFrontend7executeERPNSt3__113basic_istreamIcNS1_11char_traitsIcEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEENS1_6vectorISB_NS9_ISB_EEEEPNS_5RTLIL6DesignE + 5556 8 | 7 yosys 0x0000000100171c60 _ZN5Yosys8Frontend7executeENSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEPNS_5RTLIL6DesignE + 172 9 | 8 yosys 0x00000001001709a4 _ZN5Yosys4Pass4callEPNS_5RTLIL6DesignENSt3__16vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEE + 532 10 | 9 yosys 0x0000000100170464 _ZN5Yosys4Pass4callEPNS_5RTLIL6DesignENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE + 1080 11 | 10 yosys 0x000000010021479c _ZN5Yosys5shellEPNS_5RTLIL6DesignE + 320 12 | 11 yosys 0x0000000100165374 main + 3444 13 | 12 dyld 0x00000001016710f4 start + 520 --- kernel/driver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/driver.cc b/kernel/driver.cc index c9e48177d..ab67b66de 100644 --- a/kernel/driver.cc +++ b/kernel/driver.cc @@ -83,7 +83,7 @@ int getopt(int argc, char **argv, const char *optstring) } #endif -#if !defined(_WIN32) || defined(__MINGW32__) || defined(YOSYS_BACKTRACE) +#if defined (__linux__) || defined(__FreeBSD__) || defined(YOSYS_BACKTRACE) #include void yosys_print_trace (void) {