Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tramp.c:262:22: error: implicit declaration of function 'open_temp_exec_file' [-Werror=implicit-function-declaration] #760

Closed
thesamesam opened this issue Jan 21, 2023 · 1 comment

Comments

@thesamesam
Copy link

thesamesam commented Jan 21, 2023

System Details

x86_64-pc-linux-gnu, GCC 12.2.1 20230114, Gentoo.

Building with -Werror=implicit-function-declaration as it'll be fatal in newer Clang and GCC.

Problems Description

Full log: build.log

libtool: compile:  x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4 -I. -I/var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4/include -Iinclude -I/var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4/src -Wall -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -Werror=implicit-function-declaration -Werror=implicit-int -fexceptions -c /var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4/src/tramp.c  -fPIC -DPIC -o src/.libs/tramp.o
/var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4/src/tramp.c: In function 'ffi_tramp_get_temp_file':
/var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4/src/tramp.c:262:22: error: implicit declaration of function 'open_temp_exec_file' [-Werror=implicit-function-declaration]
  262 |   tramp_globals.fd = open_temp_exec_file ();
      |                      ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [Makefile:1325: src/tramp.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4-abi_x86_32.x86'
make[1]: *** [Makefile:1397: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4-abi_x86_32.x86'
make: *** [Makefile:625: all] Error 2
@atgreen
Copy link
Member

atgreen commented Feb 2, 2023

Should be fixed now

@atgreen atgreen closed this as completed Feb 2, 2023
uweigand added a commit to uweigand/libffi-rs that referenced this issue Apr 1, 2023
Building with clang-16 or newer currently fails as the issue described
in libffi/libffi#760 causes a compile error.

Fix this by adding the -Wno-implicit-function-declaration compiler
flag, which allows the current source code to still be built.

Addresses tov#73.
amd-toolchain-support added a commit to amd-toolchain-support/spack that referenced this issue May 30, 2023
hubot pushed a commit to ghc/ghc that referenced this issue Mar 25, 2024
This commit bumps the libffi-tarballs submodule to libffi 3.4.6, which
includes numerous upstream libffi fixes, especially
libffi/libffi#760.
hubot pushed a commit to ghc/ghc that referenced this issue Mar 26, 2024
This commit bumps the libffi-tarballs submodule to libffi 3.4.6, which
includes numerous upstream libffi fixes, especially
libffi/libffi#760.
hubot pushed a commit to ghc/ghc that referenced this issue Mar 27, 2024
This commit bumps the libffi-tarballs submodule to libffi 3.4.6, which
includes numerous upstream libffi fixes, especially
libffi/libffi#760.

(cherry picked from commit 810660b)
hubot pushed a commit to ghc/ghc that referenced this issue Apr 10, 2024
This commit bumps the libffi-tarballs submodule to libffi 3.4.6, which
includes numerous upstream libffi fixes, especially
libffi/libffi#760.

(cherry picked from commit 810660b)
hubot pushed a commit to ghc/ghc that referenced this issue Apr 15, 2024
This commit bumps the libffi-tarballs submodule to libffi 3.4.6, which
includes numerous upstream libffi fixes, especially
libffi/libffi#760.

(cherry picked from commit 810660b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants