【问题标题】:I have a very strange error in my build.log file when running make -j2 error in debian 8在 debian 8 中运行 make -j2 错误时,我的 build.log 文件中有一个非常奇怪的错误
【发布时间】:2021-06-11 13:54:18
【问题描述】:

在虚拟机的 debian 8 上的 gitian-builder 中运行 ./bin/gbuild ../learncoin/contrib/gitian-descriptors/deps-win32.yml 时,我收到此错误,不知道如何修复它。如果有人可以提供帮助,那就太棒了。谢谢杰米;)

+ make -j2 library_build
./libtool --mode=compile i686-w64-mingw32-gcc -c -I. -I../dist/..  -O3  ../dist/../mutex/mut_win32.c
./libtool --mode=compile i686-w64-mingw32-gcc -c -I. -I../dist/..  -O3  ../dist/../btree/bt_compare.c
libtool: compile:  i686-w64-mingw32-gcc -c -I. -I../dist/.. -O3 ../dist/../mutex/mut_win32.c -o mut_win32.o
libtool: compile:  i686-w64-mingw32-gcc -c -I. -I../dist/.. -O3 ../dist/../btree/bt_compare.c -o bt_compare.o
In file included from ../dist/../mutex/mut_win32.c:9:0:
./db_config.h:600:19: error: two or more data types in declaration specifiers
 #define socklen_t int
                   ^
../dist/../dbinc/repmgr.h:502:13: note: in expansion of macro ‘socklen_t’
 typedef int socklen_t;
             ^
In file included from ./db_int.h:886:0,
                 from ../dist/../mutex/mut_win32.c:12:
../dist/../dbinc/repmgr.h:502:1: warning: useless type name in empty declaration [enabled by default]
 typedef int socklen_t;
 ^
In file included from ../dist/../btree/bt_compare.c:44:0:
./db_config.h:600:19: error: two or more data types in declaration specifiers
 #define socklen_t int
                   ^
../dist/../dbinc/repmgr.h:502:13: note: in expansion of macro ‘socklen_t’
 typedef int socklen_t;
             ^
In file included from ./db_int.h:886:0,
                 from ../dist/../btree/bt_compare.c:46:
../dist/../dbinc/repmgr.h:502:1: warning: useless type name in empty declaration [enabled by default]
 typedef int socklen_t;
 ^
make: *** [mut_win32.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [bt_compare.o] Error 1

【问题讨论】:

  • 只是为了澄清。 -j2 在这里重要吗?或者,如果您只运行 make library_build,您会看到相同的错误吗?
  • 在 deps-win32.yml 中调用 make $MAKEOPTS library_build

标签: c++ makefile debian


【解决方案1】:

我不确定make 是否有问题。但是您可以传递-O 选项以更好地诊断以打印正确的并行运行的make 调用。
此选项指示make 保存命令的输出命令完成后,它会调用并打印所有内容。
make -j2 -O
根据输出,您可以检查socklen_t 的声明是否为int 或uint32_t

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-08
    • 2014-01-06
    • 1970-01-01
    相关资源
    最近更新 更多