Giter Site home page Giter Site logo

Comments (5)

davisford avatar davisford commented on June 14, 2024
root@381fff992971:/opt/src/libneo4j-client-master-9190be3# gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 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.

Looks like this option was added in gcc 8, but current package manager only has 7.

from libneo4j-client.

davisford avatar davisford commented on June 14, 2024

Even if I try to force it, again libtool fails...

root@381fff992971:/opt/src/libneo4j-client-master-9190be3# make -i install
Making install in lib
make[1]: Entering directory '/opt/src/libneo4j-client-master-9190be3/lib'
Making install in src
make[2]: Entering directory '/opt/src/libneo4j-client-master-9190be3/lib/src'
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..    -pthread  -Wpedantic -Wvla -g -O2 -std=gnu11 -fvisibility=hidden -pipe -Wall -W -Wno-unused-parameter     -Wno-missing-field-initializers -Wpointer-arith -Wstrict-prototypes     -Wcast-qual -Wcast-align -Wno-error=unused-function     -Wno-error=unused-variable -Wno-error=deprecated-declarations     -Wno-error=stringop-truncation -Wno-unknown-warning-option -Werror -MT libneo4j_client_la-error_handling.lo -MD -MP -MF .deps/libneo4j_client_la-error_handling.Tpo -c -o libneo4j_client_la-error_handling.lo `test -f 'error_handling.c' || echo './'`error_handling.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -Wpedantic -Wvla -g -O2 -std=gnu11 -fvisibility=hidden -pipe -Wall -W -Wno-unused-parameter -Wno-missing-field-initializers -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wcast-align -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-error=stringop-truncation -Wno-unknown-warning-option -Werror -MT libneo4j_client_la-error_handling.lo -MD -MP -MF .deps/libneo4j_client_la-error_handling.Tpo -c error_handling.c  -fPIC -DPIC -o .libs/libneo4j_client_la-error_handling.o
cc1: error: -Werror=stringop-truncation: no option -Wstringop-truncation
cc1: error: unrecognized command line option ‘-Wno-unknown-warning-option’ [-Werror]
cc1: all warnings being treated as errors
Makefile:586: recipe for target 'libneo4j_client_la-error_handling.lo' failed
make[2]: [libneo4j_client_la-error_handling.lo] Error 1 (ignored)
mv -f .deps/libneo4j_client_la-error_handling.Tpo .deps/libneo4j_client_la-error_handling.Plo
mv: cannot stat '.deps/libneo4j_client_la-error_handling.Tpo': No such file or directory
Makefile:586: recipe for target 'libneo4j_client_la-error_handling.lo' failed

from libneo4j-client.

cleishm avatar cleishm commented on June 14, 2024

Ugh. So the problem is that some version of GCC started detecting invalid stringop truncations. To stop treating those as errors, I added -Wno-error=stringop-truncation. But earlier versions don't have that flag and fail with an error. So I added -Wno-unknown-warning-option to mitigate that... but it seems still earlier versions don't have that flag either.

Looks like it'll need to have an autoconf test for the flag(s) instead. How good are you at autoconf? Want to give it a go?

from libneo4j-client.

davisford avatar davisford commented on June 14, 2024

Sadly, not much of an autoconf wizard. I ended up moving past it by going with a different base container image -- using alpine work b/c they have gcc v9+

from libneo4j-client.

JensWalther avatar JensWalther commented on June 14, 2024

I fixed it by removing both flags from configure.ac (ln 32)

from libneo4j-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.