pooler / cpuminer

CPU miner for Litecoin and Bitcoin
https://bitcointalk.org/index.php?topic=55038.0
Other
2.77k stars 1.21k forks source link

Build fails on AIX #29

Closed pontius closed 11 years ago

pontius commented 11 years ago

On AIX build fails with the following message:

[...]
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99  -maix64 -O3 -pthread  -o minerd minerd-cpu-miner.o minerd-util.o minerd-sha2.o minerd-sha2-arm.o minerd-sha2-x86.o minerd-sha2-x64.o minerd-scrypt.o minerd-scrypt-arm.o minerd-scrypt-x86.o minerd-scrypt-x64.o /tmp/devel/lib/libcurl.a -lz compat/jansson/libjansson.a -lpthread
gcc: error: minerd-sha2-arm.o: No such file or directory
gcc: error: minerd-sha2-x86.o: No such file or directory
gcc: error: minerd-sha2-x64.o: No such file or directory
gcc: error: minerd-scrypt-arm.o: No such file or directory
gcc: error: minerd-scrypt-x86.o: No such file or directory
gcc: error: minerd-scrypt-x64.o: No such file or directory
make[2]: *** [minerd] Error 1
make[2]: Leaving directory `/tmp/cpuminer-2.3.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/cpuminer-2.3.2'
make: *** [all] Error 2
pooler commented 11 years ago

If I remember correctly, version 2.2.1 used to buiild fine on AIX... is that right? The errors above suggest that .S files, which should produce an "empty" object file each on non-ARM, non-x86 systems, haven't produced any. Could you please provide full configure/make output, as well as the compiler version?

pontius commented 11 years ago

The last version I did compile was 2.2.0, can't tell if 2.2.1 still worked.

Configure output:

./configure --with-libcurl=/tmp/devel LIBCURL="/tmp/devel/lib/libcurl.a -lz"
checking build system type... powerpc-ibm-aix6.1.0.0
checking host system type... powerpc-ibm-aix6.1.0.0
checking target system type... powerpc-ibm-aix6.1.0.0
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether /opt/make-3.82/bin/make -j2 sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by /opt/make-3.82/bin/make -j2... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... no
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc -std=gnu99 needs -traditional... no
checking whether gcc -std=gnu99 and cc understand -c and -o together... no
checking dependency style of /tmp/cpuminer-2.3.2/compile gcc -std=gnu99... gcc3
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for sys/sysctl.h... no
checking whether be32dec is declared... no
checking whether le32dec is declared... no
checking whether be32enc is declared... no
checking whether le32enc is declared... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for getopt_long... no
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
checking for gawk... (cached) nawk
checking for curl-config... /tmp/devel/bin/curl-config
checking for the version of libcurl... 7.31.0
checking for libcurl >= version 7.15.2... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating compat/Makefile
config.status: creating compat/jansson/Makefile
config.status: creating cpuminer-config.h
config.status: executing depfiles commands

make output:

$MAKE
/opt/make-3.82/bin/make -j2  all-recursive
make[1]: Entering directory `/tmp/cpuminer-2.3.2'
make[1]: warning: -jN forced in submake: disabling jobserver mode.
Making all in compat
make[2]: Entering directory `/tmp/cpuminer-2.3.2/compat'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
Making all in jansson
make[3]: Entering directory `/tmp/cpuminer-2.3.2/compat/jansson'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -maix64 -O3 -MT dump.o -MD -MP -MF .deps/dump.Tpo -c -o dump.o dump.c
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -maix64 -O3 -MT hashtable.o -MD -MP -MF .deps/hashtable.Tpo -c -o hashtable.o hashtable.c
mv -f .deps/hashtable.Tpo .deps/hashtable.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -maix64 -O3 -MT load.o -MD -MP -MF .deps/load.Tpo -c -o load.o load.c
mv -f .deps/dump.Tpo .deps/dump.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -maix64 -O3 -MT strbuffer.o -MD -MP -MF .deps/strbuffer.Tpo -c -o strbuffer.o strbuffer.c
mv -f .deps/strbuffer.Tpo .deps/strbuffer.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -maix64 -O3 -MT utf.o -MD -MP -MF .deps/utf.Tpo -c -o utf.o utf.c
mv -f .deps/utf.Tpo .deps/utf.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -maix64 -O3 -MT value.o -MD -MP -MF .deps/value.Tpo -c -o value.o value.c
mv -f .deps/load.Tpo .deps/load.Po
mv -f .deps/value.Tpo .deps/value.Po
rm -f libjansson.a
ar cru libjansson.a dump.o hashtable.o load.o strbuffer.o utf.o value.o
ranlib libjansson.a
make[3]: Leaving directory `/tmp/cpuminer-2.3.2/compat/jansson'
make[3]: Entering directory `/tmp/cpuminer-2.3.2/compat'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/tmp/cpuminer-2.3.2/compat'
make[2]: Leaving directory `/tmp/cpuminer-2.3.2/compat'
make[2]: Entering directory `/tmp/cpuminer-2.3.2'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/devel/include   -maix64 -O3 -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/devel/include   -maix64 -O3 -MT minerd-util.o -MD -MP -MF .deps/minerd-util.Tpo -c -o minerd-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/minerd-cpu-miner.Tpo .deps/minerd-cpu-miner.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/devel/include   -maix64 -O3 -MT minerd-sha2.o -MD -MP -MF .deps/minerd-sha2.Tpo -c -o minerd-sha2.o `test -f 'sha2.c' || echo './'`sha2.c
mv -f .deps/minerd-util.Tpo .deps/minerd-util.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/devel/include   -maix64 -O3 -MT minerd-sha2-arm.o -MD -MP -MF .deps/minerd-sha2-arm.Tpo -c -o minerd-sha2-arm.o `test -f 'sha2-arm.S' || echo './'`sha2-arm.S
mv -f .deps/minerd-sha2-arm.Tpo .deps/minerd-sha2-arm.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/devel/include   -maix64 -O3 -MT minerd-sha2-x86.o -MD -MP -MF .deps/minerd-sha2-x86.Tpo -c -o minerd-sha2-x86.o `test -f 'sha2-x86.S' || echo './'`sha2-x86.S
mv -f .deps/minerd-sha2-x86.Tpo .deps/minerd-sha2-x86.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/devel/include   -maix64 -O3 -MT minerd-sha2-x64.o -MD -MP -MF .deps/minerd-sha2-x64.Tpo -c -o minerd-sha2-x64.o `test -f 'sha2-x64.S' || echo './'`sha2-x64.S
mv -f .deps/minerd-sha2-x64.Tpo .deps/minerd-sha2-x64.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/devel/include   -maix64 -O3 -MT minerd-scrypt.o -MD -MP -MF .deps/minerd-scrypt.Tpo -c -o minerd-scrypt.o `test -f 'scrypt.c' || echo './'`scrypt.c
mv -f .deps/minerd-scrypt.Tpo .deps/minerd-scrypt.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/devel/include   -maix64 -O3 -MT minerd-scrypt-arm.o -MD -MP -MF .deps/minerd-scrypt-arm.Tpo -c -o minerd-scrypt-arm.o `test -f 'scrypt-arm.S' || echo './'`scrypt-arm.S
mv -f .deps/minerd-scrypt-arm.Tpo .deps/minerd-scrypt-arm.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/devel/include   -maix64 -O3 -MT minerd-scrypt-x86.o -MD -MP -MF .deps/minerd-scrypt-x86.Tpo -c -o minerd-scrypt-x86.o `test -f 'scrypt-x86.S' || echo './'`scrypt-x86.S
mv -f .deps/minerd-scrypt-x86.Tpo .deps/minerd-scrypt-x86.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/devel/include   -maix64 -O3 -MT minerd-scrypt-x64.o -MD -MP -MF .deps/minerd-scrypt-x64.Tpo -c -o minerd-scrypt-x64.o `test -f 'scrypt-x64.S' || echo './'`scrypt-x64.S
mv -f .deps/minerd-scrypt-x64.Tpo .deps/minerd-scrypt-x64.Po
mv -f .deps/minerd-sha2.Tpo .deps/minerd-sha2.Po
/tmp/cpuminer-2.3.2/compile gcc -std=gnu99  -maix64 -O3 -pthread  -o minerd minerd-cpu-miner.o minerd-util.o minerd-sha2.o minerd-sha2-arm.o minerd-sha2-x86.o minerd-sha2-x64.o minerd-scrypt.o minerd-scrypt-arm.o minerd-scrypt-x86.o minerd-scrypt-x64.o /tmp/devel/lib/libcurl.a -lz compat/jansson/libjansson.a -lpthread
gcc: error: minerd-sha2-arm.o: No such file or directory
gcc: error: minerd-sha2-x86.o: No such file or directory
gcc: error: minerd-sha2-x64.o: No such file or directory
gcc: error: minerd-scrypt-arm.o: No such file or directory
gcc: error: minerd-scrypt-x86.o: No such file or directory
gcc: error: minerd-scrypt-x64.o: No such file or directory
make[2]: *** [minerd] Error 1
make[2]: Leaving directory `/tmp/cpuminer-2.3.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/cpuminer-2.3.2'
make: *** [all] Error 2

gcc version

gcc (GCC) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
pooler commented 11 years ago

If we are to believe the NEWS file, the fixes you submitted for 2.2 were included in 2.2.1. If you have the time, could you please try to build all the versions after 2.2 until it breaks? You can find the old tarballs here. (My guess is that it shouldn't take long to break.)

pontius commented 11 years ago

Yes, you were right - 2.2 doesn't build at all, so 2.2.1 was the first working version. And now the fun part: 2.2.1 fails with the same error (see above). Looks like something has changed in my build env. I'll investigate over the weekend...

pooler commented 11 years ago

That's what I suspected, as I don't remember having changed anything that could have caused the errors you reported. Looking forward to the results of your investigation.

pontius commented 11 years ago

Sorry for the late reply, took somewhat longer then expected (as I had to convice a colleague to setup a fresh AIX LPAR for testing ;-). Same result with the "virgin" LPAR - looks like the object files were missing from the beginning...

pooler commented 11 years ago

Fixed by commit 3737e48.