Opened 11 years ago
Closed 11 years ago
#41840 closed defect (fixed)
hdf4 port causes erlang build to fail
Reported by: | jeremyhu (Jeremy Huddleston Sequoia) | Owned by: | ci42 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | ||
Port: | erlang |
Description
erlang failed to update:
if utils/gen_git_version x86_64-apple-darwin13.1.0/gen_git_version.mk; then touch beam/erl_bif_info.c; fi /usr/bin/clang -Ipcre -Werror=return-type -m64 -pipe -Os -arch x86_64 -I/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_lang_erlang/erlang/work/erlang-R16B03/erts/x86_64-apple-darwin13.1.0 -I/opt/local/include -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ix86_64-apple-darwin13.1.0/opt/smp -Ibeam -Isys/unix -Isys/common -Ix86_64-apple-darwin13.1.0 -Izlib -Ipcre -Ihipe -I../include -I../include/x86_64-apple-darwin13.1.0 -I../include/internal -I../include/internal/x86_64-apple-darwin13.1.0 -c sys/common/erl_mmap.c -o obj/x86_64-apple-darwin13.1.0/opt/smp/erl_mmap.o sys/common/erl_mmap.c:2068:13: warning: implicit declaration of function 'am_atom_put' is invalid in C99 [-Wimplicit-function-declaration] *atom = am_atom_put(name, strlen(name)); ^ sys/common/erl_mmap.c:2446:9: warning: implicit declaration of function 'ERTS_DECL_AM' is invalid in C99 [-Wimplicit-function-declaration] ERTS_DECL_AM(sabot); ^ sys/common/erl_mmap.c:2446:22: error: use of undeclared identifier 'sabot' ERTS_DECL_AM(sabot); ^ sys/common/erl_mmap.c:2447:22: error: use of undeclared identifier 'satop' ERTS_DECL_AM(satop); ^ sys/common/erl_mmap.c:2448:22: error: use of undeclared identifier 'suabot' ERTS_DECL_AM(suabot); ^ sys/common/erl_mmap.c:2449:22: error: use of undeclared identifier 'suatop' ERTS_DECL_AM(suatop); ^ sys/common/erl_mmap.c:2451:26: error: use of undeclared identifier 'AM_sabot' Eterm tags[] = { AM_sabot, AM_satop, AM_suabot, AM_suatop }; ^ sys/common/erl_mmap.c:2451:36: error: use of undeclared identifier 'AM_satop' Eterm tags[] = { AM_sabot, AM_satop, AM_suabot, AM_suatop }; ^ sys/common/erl_mmap.c:2451:46: error: use of undeclared identifier 'AM_suabot' Eterm tags[] = { AM_sabot, AM_satop, AM_suabot, AM_suatop }; ^ sys/common/erl_mmap.c:2451:57: error: use of undeclared identifier 'AM_suatop' Eterm tags[] = { AM_sabot, AM_satop, AM_suabot, AM_suatop }; ^ 2 warnings and 8 errors generated. make[3]: *** [obj/x86_64-apple-darwin13.1.0/opt/smp/erl_mmap.o] Error 1 make[3]: Leaving directory `/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_lang_erlang/erlang/work/erlang-R16B03/erts/emulator'
ERTS_DECL_AM is defined in erlang-R16B03/erts/emulator/beam/atom.h
#include "atom.h" is getting /opt/local/include/atom.h from the hdf4 port.
work/erlang-R16B03/erts/emulator $ /usr/bin/clang -Ipcre -Werror=return-type -m64 -pipe -Os -arch x86_64 -I/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_lang_erlang/erlang/work/erlang-R16B03/erts/x86_64-apple-darwin13.1.0 -I/opt/local/include -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ix86_64-apple-darwin13.1.0/opt/smp -Ibeam -Isys/unix -Isys/common -Ix86_64-apple-darwin13.1.0 -Izlib -Ipcre -Ihipe -I../include -I../include/x86_64-apple-darwin13.1.0 -I../include/internal -I../include/internal/x86_64-apple-darwin13.1.0 -E sys/common/erl_mmap.c | grep atom.h # 1 "/opt/local/include/atom.h" 1 # 30 "/opt/local/include/atom.h" # 31 "/opt/local/include/atom.h" 2 # 63 "/opt/local/include/atom.h" # 64 "/opt/local/include/atom.h" 2 # 156 "/opt/local/include/atom.h" # 178 "/opt/local/include/atom.h" # 196 "/opt/local/include/atom.h" # 215 "/opt/local/include/atom.h" # 231 "/opt/local/include/atom.h" # 249 "/opt/local/include/atom.h" # 263 "/opt/local/include/atom.h" # 280 "/opt/local/include/atom.h" # 296 "/opt/local/include/atom.h"
Change History (1)
comment:1 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Port: | erlang added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
r114842 r114843