Build fail on MinGW-w64
-----------------------
Key: CORE-5682
URL: http://tracker.firebirdsql.org/browse/CORE-5682
Project: Firebird Core
Issue Type: Bug
Components: Build Issues / Porting
Affects Versions: 4.0 Alpha 1
Environment: Windows 7 64 bits; MinGW-w64 for 32 bits; Autotools;
Sources from trunk
Reporter: Silvio Clécio
Hi.
I've tried to build Firebird 32 bits on Windows, but it fails on VS2017 and
MinGW-w64. After a lot of warnings and errors in VS building, I've tried on
MinGW, because I have some knowledge with gcc and autotools, however, no
success too, even after this two fixes:
1.
https://github.com/silvioprog/firebird/commit/a02b5458e8bedf0cbda1d0b5c2f10d5e94068a2f
2.
https://github.com/silvioprog/firebird/commit/6e2d8099a4046a8d2de1b2ad6ed9c1c061070850
(it should be applied to the official sources, I can create a PR at Github site)
Now, I've got the following error (relevant part only):
```
$ ./autogen.sh --with-builtin-tomcrypt && make
<snip a lot of text>
libtool: compile: gcc -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow
-DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c
src/prngs/rng_get_bytes.c -DDLL_EXPORT -DPIC -o src/prngs/.libs/rng_get_bytes.o
src/prngs/rng_get_bytes.c: In function 'rng_win32':
src/prngs/rng_get_bytes.c:102:39: warning: unused parameter 'callback'
[-Wunused-parameter]
void (*callback)(void))
^~~~~~~~
libtool: compile: gcc -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow
-DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c
src/prngs/rng_get_bytes.c -o src/prngs/rng_get_bytes.o >/dev/null 2>&1
libtool --mode=compile --tag=CC gcc -c -I./src/headers/ -Wall -Wsign-compare
-W -Wshadow -DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c -o
src/prngs/rng_make_prng.o src/prngs/rng_make_prng.c
libtool: compile: gcc -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow
-DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c
src/prngs/rng_make_prng.c -DDLL_EXPORT -DPIC -o src/prngs/.libs/rng_make_prng.o
libtool: compile: gcc -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow
-DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c
src/prngs/rng_make_prng.c -o src/prngs/rng_make_prng.o >/dev/null 2>&1
libtool --mode=compile --tag=CC gcc -c -I./src/headers/ -Wall -Wsign-compare
-W -Wshadow -DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c -o
src/prngs/sober128.o src/prngs/sober128.c
libtool: compile: gcc -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow
-DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c src/prngs/sober128.c
-DDLL_EXPORT -DPIC -o src/prngs/.libs/sober128.o
libtool: compile: gcc -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow
-DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c src/prngs/sober128.c -o
src/prngs/sober128.o >/dev/null 2>&1
libtool --mode=compile --tag=CC gcc -c -I./src/headers/ -Wall -Wsign-compare
-W -Wshadow -DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c -o
src/prngs/sprng.o src/prngs/sprng.c
libtool: compile: gcc -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow
-DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c src/prngs/sprng.c
-DDLL_EXPORT -DPIC -o src/prngs/.libs/sprng.o
libtool: compile: gcc -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow
-DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c src/prngs/sprng.c -o
src/prngs/sprng.o >/dev/null 2>&1
libtool --mode=compile --tag=CC gcc -c -I./src/headers/ -Wall -Wsign-compare
-W -Wshadow -DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c -o
src/prngs/yarrow.o src/prngs/yarrow.c
libtool: compile: gcc -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow
-DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c src/prngs/yarrow.c
-DDLL_EXPORT -DPIC -o src/prngs/.libs/yarrow.o
libtool: compile: gcc -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow
-DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer -c src/prngs/yarrow.c -o
src/prngs/yarrow.o >/dev/null 2>&1
libtool --silent --mode=link gcc -c -I./src/headers/ -Wall -Wsign-compare -W
-Wshadow -DLTC_SOURCE -O3 -funroll-loops -fomit-frame-pointer `find . -type f |
grep "[.]lo" | grep "src/" | xargs` -o libtomcrypt.la -rpath /usr/lib
-version-info 0:117
libtool: link: unable to infer tagged configuration
libtool: error: specify a tag with '--tag'
make[4]: *** [makefile.shared:253: libtomcrypt.la] Error 1
make[4]: Leaving directory '/c/dev/git/firebird/extern/libtomcrypt'
make[3]: *** [Makefile:138: external] Error 2
make[3]: Leaving directory '/c/dev/git/firebird/gen'
make[2]: *** [Makefile:206: master_process] Error 2
make[2]: Leaving directory '/c/dev/git/firebird/gen'
make[1]: *** [Makefile:74: firebird] Error 2
make[1]: Leaving directory '/c/dev/git/firebird/gen'
make: *** [Makefile:6: firebird] Error 2
```
(I've installed all necessary FB's building dependence via pacman)
So, which build system do you use to compile Firebird for Win32?
Thank you!
P.S.: I've tried to build it via CMake inside CLion IDE, but no success too.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel