crossbridge-community / crossbridge

C/C++ Compiler for the ActionScript Virtual Machine (AVM2)
http://sourceforge.net/projects/crossbridge-community/
Other
152 stars 35 forks source link

Futures: Fix failing extralib - libiconv #29

Closed vpmedia closed 10 years ago

vpmedia commented 10 years ago
lib/aliases.gperf:350:1: note: use 'static' to give inline function 'aliases_lookup' internal linkage
__inline
^
static 
lib/aliases.gperf:775:27: note: 'aliases' declared here
static const struct alias aliases[] =
                          ^
Stack dump:
0.  Program arguments: /cygdrive/f/crossbridge-futures/sdk/usr/bin/clang -cc1 -triple avm2-unknown-freebsd8 -S -disable-free -disable-llvm-verifier -main-file-name iconv.c -mrelocation-model static -mdisable-fp-elim -fmath-errno -momit-leaf-frame-pointer -g -coverage-file /tmp/iconv-kp53kS.s -resource-dir /cygdrive/f/crossbridge-futures/sdk/usr/bin/../lib/clang/3.2 -D LIBDIR="/cygdrive/f/crossbridge-futures/sdk/usr/lib" -D BUILDING_LIBICONV -D BUILDING_DLL -D ENABLE_RELOCATABLE=1 -D IN_LIBRARY -D INSTALLDIR="/cygdrive/f/crossbridge-futures/sdk/usr/lib" -D NO_XMALLOC -D set_relocation_prefix=libiconv_set_relocation_prefix -D relocate=libiconv_relocate -D HAVE_CONFIG_H -I . -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib -I ../include -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/../include -I .. -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/.. -isysroot /cygdrive/f/crossbridge-futures/sdk/usr/bin/../.. -fmodule-cache-path /var/tmp/clang-module-cache -O2 -fno-dwarf-directory-asm -fdebug-compilation-dir /cygdrive/f/crossbridge-futures/build/win/libiconv/lib -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -mstackrealign -fobjc-runtime=gcc -fsjlj-exceptions -fdiagnostics-show-option -o /tmp/iconv-kp53kS.s -x c /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/iconv.c 
1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module '/cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/iconv.c'.
4.  Running pass 'Optimize for code generation' on function '@libiconvctl'
Error: Failed to open /tmp/iconv-kp53kS.s for input
clang: error: assembler command failed with exit code 255 (use -v to see invocation)
libtool: compile:  clang -I. -I/cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib -I../include -I/cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/../include -I.. -I/cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/.. -g -O2 -fvisibility=hidden -DLIBDIR=\"/cygdrive/f/crossbridge-futures/sdk/usr/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/cygdrive/f/crossbridge-futures/sdk/usr/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/../libcharset/lib/localcharset.c -o localcharset.o
Stack dump:
0.  Program arguments: /cygdrive/f/crossbridge-futures/sdk/usr/bin/clang -cc1 -triple avm2-unknown-freebsd8 -S -disable-free -disable-llvm-verifier -main-file-name localcharset.c -mrelocation-model static -mdisable-fp-elim -fmath-errno -momit-leaf-frame-pointer -g -coverage-file /tmp/localcharset-Z9R9cm.s -resource-dir /cygdrive/f/crossbridge-futures/sdk/usr/bin/../lib/clang/3.2 -D LIBDIR="/cygdrive/f/crossbridge-futures/sdk/usr/lib" -D BUILDING_LIBICONV -D BUILDING_DLL -D ENABLE_RELOCATABLE=1 -D IN_LIBRARY -D INSTALLDIR="/cygdrive/f/crossbridge-futures/sdk/usr/lib" -D NO_XMALLOC -D set_relocation_prefix=libiconv_set_relocation_prefix -D relocate=libiconv_relocate -D HAVE_CONFIG_H -I . -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib -I ../include -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/../include -I .. -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/.. -isysroot /cygdrive/f/crossbridge-futures/sdk/usr/bin/../.. -fmodule-cache-path /var/tmp/clang-module-cache -O2 -fno-dwarf-directory-asm -fdebug-compilation-dir /cygdrive/f/crossbridge-futures/build/win/libiconv/lib -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -mstackrealign -fobjc-runtime=gcc -fsjlj-exceptions -fdiagnostics-show-option -o /tmp/localcharset-Z9R9cm.s -x c /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/../libcharset/lib/localcharset.c 
1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module '/cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/../libcharset/lib/localcharset.c'.
Error: Failed to open /tmp/localcharset-Z9R9cm.s for input
clang: error: assembler command failed with exit code 255 (use -v to see invocation)
libtool: compile:  clang -I. -I/cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib -I../include -I/cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/../include -I.. -I/cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/.. -g -O2 -fvisibility=hidden -DLIBDIR=\"/cygdrive/f/crossbridge-futures/sdk/usr/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/cygdrive/f/crossbridge-futures/sdk/usr/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/relocatable.c -o relocatable.o
Stack dump:
0.  Program arguments: /cygdrive/f/crossbridge-futures/sdk/usr/bin/clang -cc1 -triple avm2-unknown-freebsd8 -S -disable-free -disable-llvm-verifier -main-file-name relocatable.c -mrelocation-model static -mdisable-fp-elim -fmath-errno -momit-leaf-frame-pointer -g -coverage-file /tmp/relocatable-a7JPxV.s -resource-dir /cygdrive/f/crossbridge-futures/sdk/usr/bin/../lib/clang/3.2 -D LIBDIR="/cygdrive/f/crossbridge-futures/sdk/usr/lib" -D BUILDING_LIBICONV -D BUILDING_DLL -D ENABLE_RELOCATABLE=1 -D IN_LIBRARY -D INSTALLDIR="/cygdrive/f/crossbridge-futures/sdk/usr/lib" -D NO_XMALLOC -D set_relocation_prefix=libiconv_set_relocation_prefix -D relocate=libiconv_relocate -D HAVE_CONFIG_H -I . -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib -I ../include -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/../include -I .. -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/.. -isysroot /cygdrive/f/crossbridge-futures/sdk/usr/bin/../.. -fmodule-cache-path /var/tmp/clang-module-cache -O2 -fno-dwarf-directory-asm -fdebug-compilation-dir /cygdrive/f/crossbridge-futures/build/win/libiconv/lib -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -mstackrealign -fobjc-runtime=gcc -fsjlj-exceptions -fdiagnostics-show-option -o /tmp/relocatable-a7JPxV.s -x c /cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/relocatable.c 
1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module '/cygdrive/f/crossbridge-futures/libiconv-1.13.1/lib/relocatable.c'.
4.  Running pass 'AVM2 Assembly Printer' on function '@libiconv_relocate'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.2 (tags/RELEASE_32/final)
Target: avm2-unknown-freebsd8
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to  and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/relocatable-CbQcTP.c
clang: note: diagnostic msg: /tmp/relocatable-CbQcTP.sh
clang: note: diagnostic msg: 

********************
libtool: link: `iconv.lo' is not a valid libtool object
libtool: link: cannot find the library `../lib/libiconv.la' or unhandled argument `../lib/libiconv.la'
/cygdrive/f/crossbridge-futures/libiconv-1.13.1/src/iconv.c:856:14: warning: expression result unused [-Wunused-value]
  textdomain("libiconv");
             ^~~~~~~~~~
/cygdrive/f/crossbridge-futures/libiconv-1.13.1/src/../srclib/gettext.h:85:50: note: expanded from macro 'textdomain'
# define textdomain(Domainname) ((const char *) (Domainname))
                                                 ^
Stack dump:
0.  Program arguments: /cygdrive/f/crossbridge-futures/sdk/usr/bin/clang -cc1 -triple avm2-unknown-freebsd8 -S -disable-free -disable-llvm-verifier -main-file-name iconv.c -mrelocation-model static -mdisable-fp-elim -fmath-errno -momit-leaf-frame-pointer -g -coverage-file /tmp/iconv-xNfxR4.s -resource-dir /cygdrive/f/crossbridge-futures/sdk/usr/bin/../lib/clang/3.2 -D INSTALLDIR="/cygdrive/f/crossbridge-futures/sdk/usr/bin" -D LOCALEDIR="/cygdrive/f/crossbridge-futures/sdk/usr/share/locale" -I . -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/src -I .. -I ../include -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/src/../include -I ../srclib -I /cygdrive/f/crossbridge-futures/libiconv-1.13.1/src/../srclib -I ../lib -isysroot /cygdrive/f/crossbridge-futures/sdk/usr/bin/../.. -fmodule-cache-path /var/tmp/clang-module-cache -O2 -fno-dwarf-directory-asm -fdebug-compilation-dir /cygdrive/f/crossbridge-futures/build/win/libiconv/src -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc -fsjlj-exceptions -fdiagnostics-show-option -o /tmp/iconv-xNfxR4.s -x c /cygdrive/f/crossbridge-futures/libiconv-1.13.1/src/iconv.c 
1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module '/cygdrive/f/crossbridge-futures/libiconv-1.13.1/src/iconv.c'.
4.  Running pass 'AVM2 Assembly Printer' on function '@main'
Error: Failed to open /tmp/iconv-xNfxR4.s for input
clang: error: assembler command failed with exit code 255 (use -v to see invocation)
libtool: link: cannot find the library `/cygdrive/f/crossbridge-futures/sdk/usr/lib/libiconv.la' or unhandled argument