Created
August 10, 2012 06:23
-
-
Save googya/3311732 to your computer and use it in GitHub Desktop.
编译bootstrap出现的问题
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat bootstrap.log | |
| ### | |
| ### Using 'darwin' toolset. | |
| ### | |
| rm -rf bootstrap | |
| mkdir bootstrap | |
| cc -o bootstrap/jam0 command.c compile.c debug.c expand.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c output.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c pwd.c class.c native.c md5.c w32_getreg.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c execunix.c fileunix.c | |
| expand.c:85:28: warning: field precision should have type 'int', but argument has type 'long' [-Wformat] | |
| printf( "expand '%.*s'\n", end - in, in ); | |
| ~~^~ ~~~~~~~~ | |
| 1 warning generated. | |
| search.c:216:9: warning: expression result unused [-Wunused-value] | |
| hashenter( explicit_bindings, (HASHDATA * *)&ba ); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| ./hash.h:22:33: note: expanded from macro 'hashenter' | |
| #define hashenter( hp, data ) ( !hashitem( hp, data, !0 ) ) | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 1 warning generated. | |
| modules.c:146:9: warning: expression result unused [-Wunused-value] | |
| hashenter( h, (HASHDATA * *)&ss ); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| ./hash.h:22:33: note: expanded from macro 'hashenter' | |
| #define hashenter( hp, data ) ( !hashitem( hp, data, !0 ) ) | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 1 warning generated. | |
| class.c:122:9: warning: expression result unused [-Wunused-value] | |
| hashenter( classes, (HASHDATA * *)&pp ); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| ./hash.h:22:33: note: expanded from macro 'hashenter' | |
| #define hashenter( hp, data ) ( !hashitem( hp, data, !0 ) ) | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 1 warning generated. | |
| native.c:34:9: warning: expression result unused [-Wunused-value] | |
| hashenter(m->native_rules, (HASHDATA**)&np); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| ./hash.h:22:33: note: expanded from macro 'hashenter' | |
| #define hashenter( hp, data ) ( !hashitem( hp, data, !0 ) ) | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 1 warning generated. | |
| fileunix.c:300:33: error: no member named 'ar_fmag' in 'struct ar_hdr' | |
| && !( memcmp( ar_hdr.ar_fmag, ARFMAG, SARFMAG ) | |
| ~~~~~~ ^ | |
| fileunix.c:316:35: error: no member named 'ar_name' in 'struct ar_hdr' | |
| strncpy( lar_name, ar_hdr.ar_name, sizeof(ar_hdr.ar_name) ); | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| /usr/include/secure/_string.h:124:37: note: expanded from macro 'strncpy' | |
| ? __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) \ | |
| ^ | |
| fileunix.c:316:35: error: no member named 'ar_name' in 'struct ar_hdr' | |
| strncpy( lar_name, ar_hdr.ar_name, sizeof(ar_hdr.ar_name) ); | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| /usr/include/secure/_string.h:125:34: note: expanded from macro 'strncpy' | |
| : __inline_strncpy_chk (dest, src, len)) | |
| ^ | |
| fileunix.c:318:24: error: no member named 'ar_date' in 'struct ar_hdr' | |
| sscanf( ar_hdr.ar_date, "%ld", &lar_date ); | |
| ~~~~~~ ^ | |
| fileunix.c:319:24: error: no member named 'ar_size' in 'struct ar_hdr' | |
| sscanf( ar_hdr.ar_size, "%ld", &lar_size ); | |
| ~~~~~~ ^ | |
| fileunix.c:321:20: error: no member named 'ar_name' in 'struct ar_hdr' | |
| if (ar_hdr.ar_name[0] == '/') | |
| ~~~~~~ ^ | |
| fileunix.c:323:20: error: no member named 'ar_name' in 'struct ar_hdr' | |
| if (ar_hdr.ar_name[1] == '/') | |
| ~~~~~~ ^ | |
| fileunix.c:335:41: error: no member named 'ar_name' in 'struct ar_hdr' | |
| else if (string_table && ar_hdr.ar_name[1] != ' ') | |
| ~~~~~~ ^ | |
| 8 errors generated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment