Opened 11 years ago

Closed 5 years ago

#40412 closed defect (wontfix)

swig @2.0.10_0: swig-allegro, swig-mzscheme, swig-pike fail to compile

Reported by: mojca (Mojca Miklavec) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port: swig

Attachments (1)

pike.log (248.4 KB) - added by mojca (Mojca Miklavec) 11 years ago.
full build log for swig-pike

Download all attachments as: .zip

Change History (13)

comment:1 Changed 11 years ago by mojca (Mojca Miklavec)

allegro:

Error: allegro uses deprecated API which has been removed as of Mac OS X 10.7.
Error: org.macports.fetch for port allegro returned: incompatible Mac OS X version

mzscheme:

/usr/bin/clang  -iquote ./include -DNO_SIGNALS -pipe -Os -arch x86_64  -I/opt/local/include -DOS_X -D_DARWIN_UNLIMITED_SELECT   -fno-common  -DNO_EXECUTE_PERMISSION -DSILENT -DNO_GETENV -DLARGE_CONFIG -DATOMIC_UNCOLLECTABLE -DINITIAL_MARK_STACK_SIZE=8192 -c ./os_dep.c
In file included from ./if_mach.c:3:
./include/private/gcconfig.h:476:2: error: expected identifier or '('
        --> unknown machine type
        ^
In file included from ./if_not_there.c:3:
./include/private/gcconfig.h:476:2: error: expected identifier or '('
        --> unknown machine type
        ^
In file included from ./alloc.c:19:
In file included from ./include/private/gc_priv.h:66:
./include/private/gcconfig.h:476:2: error: expected identifier or '('
        --> unknown machine type
        ^
In file included from ./os_dep.c:17:
In file included from ./include/private/gc_priv.h:66:
./include/private/gcconfig.h:476:2: error: expected identifier or '('
        --> unknown machine type
        ^
In file included from ./reclaim.c:18:
In file included from ./include/private/gc_priv.h:66:
./include/private/gcconfig.h:476:2: error: expected identifier or '('
        --> unknown machine type
        ^
./if_mach.c:14:16: error: use of undeclared identifier 'MACH_TYPE'
    if (strcmp(MACH_TYPE, argv[1]) != 0) return(0);
               ^
./if_mach.c:25:10: error: use of undeclared identifier 'MACH_TYPE'
            MACH_TYPE, OS_TYPE);
            ^
3 errors generated.
In file included from ./misc.c:25:
In file included from ./include/private/gc_pmark.h:35:
In file included from ./include/private/gc_priv.h:66:
./include/private/gcconfig.h:476:2: error: expected identifier or '('
        --> unknown machine type
        ^
make[6]: *** [if_mach] Error 1
make[6]: *** Waiting for unfinished jobs....
In file included from ./allchblk.c:19:
In file included from ./include/private/gc_priv.h:66:
./include/private/gcconfig.h:476:2: error: expected identifier or '('
        --> unknown machine type
        ^
1 error generated.
In file included from ./threadlibs.c:2:
./include/private/gcconfig.h:476:2: error: expected identifier or '('
        --> unknown machine type
        ^
./alloc.c:965:32: warning: '&&' within '||' [-Wlogical-op-parentheses]
    if (GC_last_heap_addr == 0 && !((word)space & SIGNB)
        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
./alloc.c:965:32: note: place parentheses around the '&&' expression to silence this warning
    if (GC_last_heap_addr == 0 && !((word)space & SIGNB)
        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
make[6]: *** [if_not_there] Error 1
1 warning and 1 error generated.
1 error generated.
./misc.c:651:9: error: use of undeclared identifier 'ALIGNMENT'
    if (ALIGNMENT > GC_DS_TAGS && EXTRA_BYTES != 0) {
        ^
make[6]: *** [alloc.o] Error 1
./misc.c:652:53: error: use of undeclared identifier 'ALIGNMENT'
      GC_obj_kinds[NORMAL].ok_descriptor = ((word)(-ALIGNMENT) | GC_DS_LENGTH);
                                                    ^
make[6]: *** [threadlibs] Error 1
./misc.c:698:5: warning: expression result unused [-Wunused-value]
    GC_STATIC_ASSERT(sizeof (ptr_t) == sizeof(word));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/private/gc_priv.h:1897:33: note: expanded from macro 'GC_STATIC_ASSERT'
# define GC_STATIC_ASSERT(expr) sizeof(char[(expr)? 1 : -1])
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./misc.c:699:5: warning: expression result unused [-Wunused-value]
    GC_STATIC_ASSERT(sizeof (signed_word) == sizeof(word));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/private/gc_priv.h:1897:33: note: expanded from macro 'GC_STATIC_ASSERT'
# define GC_STATIC_ASSERT(expr) sizeof(char[(expr)? 1 : -1])
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./misc.c:700:5: warning: expression result unused [-Wunused-value]
    GC_STATIC_ASSERT(sizeof (struct hblk) == HBLKSIZE);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/private/gc_priv.h:1897:33: note: expanded from macro 'GC_STATIC_ASSERT'
# define GC_STATIC_ASSERT(expr) sizeof(char[(expr)? 1 : -1])
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
3 warnings and 3 errors generated.
1 error generated.
make[6]: *** [misc.o] Error 1
make[6]: *** [reclaim.o] Error 1
make[6]: *** [allchblk.o] Error 1
./os_dep.c:1069:10: error: use of undeclared identifier 'result'
            if (result == 0) result = (ptr_t)(signed_word)(-sizeof(ptr_t));
                ^
./os_dep.c:1069:23: error: use of undeclared identifier 'result'
            if (result == 0) result = (ptr_t)(signed_word)(-sizeof(ptr_t));
                             ^
./os_dep.c:1071:13: error: use of undeclared identifier 'result'
        return(result);
               ^
./os_dep.c:1457:21: error: use of undeclared identifier 'DATASTART'
        GC_add_roots_inner(DATASTART, (char *)(DATAEND), FALSE);
                           ^
5 errors generated.
make[6]: *** [os_dep.o] Error 1
make[6]: Leaving directory `/path/to/work/mz-4.1.5/src/mzscheme/gc'
make[5]: *** [g-c] Error 2
make[5]: Leaving directory `/path/to/work/mz-4.1.5/src/mzscheme'
make[4]: *** [common] Error 2
make[4]: Leaving directory `/path/to/work/mz-4.1.5/src/mzscheme'
make[3]: *** [cgc] Error 2
make[3]: Leaving directory `/path/to/work/mz-4.1.5/src/mzscheme'
make[2]: *** [3m] Error 2
make[2]: Leaving directory `/path/to/work/mz-4.1.5/src/mzscheme'
make[1]: *** [3m] Error 2
make[1]: Leaving directory `/path/to/work/mz-4.1.5/src'
make: *** [all] Error 2
make: Leaving directory `/path/to/work/mz-4.1.5/src'
Command failed:  cd "/path/to/work/mz-4.1.5/src" && /usr/bin/make -j8 -w all~
Exit code: 2
Error: org.macports.build for port mzscheme returned: command execution failed
DEBUG: Error code: CHILDSTATUS 33374 2
DEBUG: Backtrace: command execution failed

pike:

Compiling /opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/security.c
sed: 1: "s!¤include_prefix¤!/opt ...": RE error: illegal byte sequence
sed: 1: "s!¤share_prefix¤!/opt/l ...": RE error: illegal byte sequence
sed: 1: "s!¤lib_prefix¤!/opt/loc ...": RE error: illegal byte sequence
Compiling /opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_cpulib.c
...
Compiling /opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search.c
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/signal_handler.c: In function ‘f_create_process’:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/signal_handler.c:3965: warning: passing argument 4 of ‘ptrace’ makes integer from pointer without a cast
In file included from /opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search_engine.c:13,
                 from /opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search.c:126:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search_engine2.c: In function ‘hubbe_search00’:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search_engine2.c:164: warning: pointer targets in assignment differ in signedness
UNREACHABLE executed!
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/multiset.c: In function ‘count_memory_in_multisets’:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/multiset.c:277: internal compiler error: Abort trap: 6
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
WARNING: Compiler failure! Trying without optimization!
In file included from /opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search_engine.c:13,
                 from /opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search.c:130:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search_engine2.c: In function ‘hubbe_search10’:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search_engine2.c:164: warning: pointer targets in assignment differ in signedness
In file included from /opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search_engine.c:13,
                 from /opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search.c:134:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search_engine2.c: In function ‘hubbe_search20’:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search_engine2.c:164: warning: pointer targets in assignment differ in signedness
cc1: warning: -Wuninitialized is not supported without -O
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search.c: In function ‘my_memmem’:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search.c:200: warning: pointer targets in passing argument 2 of ‘init_memsearch0’ differ in signedness
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search.c:201: warning: pointer targets in passing argument 2 of ‘tmp.mojt.vtab->func0’ differ in signedness
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search.c:201: warning: pointer targets in return differ in signedness
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search.c: In function ‘compile_memsearcher’:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_search.c:181: warning: control reaches end of non-void function
UNREACHABLE executed!
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/multiset.c: In function ‘count_memory_in_multisets’:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/multiset.c:277: internal compiler error: Abort trap: 6
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
Compiling /opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/pike_types.c
Compilation command was:
/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/build/darwin-11.4.2-i386/smartlink gcc -DPIKE_SRC_ROOT=/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112 -I. -I/opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src -I/opt/local/include -I/usr/X11/include -I/usr/X11R6/include -g  -I/opt/local/include -I/usr/X11/include -I/usr/X11R6/include -mdynamic-no-pic -W -Wall -Wno-unused -Wcomment -Wformat -Wimplicit-function-declaration -Wmultichar -Wswitch -Wuninitialized -Wpointer-arith -Wchar-subscripts -Wno-long-long   -c /opt/local/var/macports/build/_opt_mports_dports_lang_pike/pike/work/Pike-v7.6.112/src/multiset.c -o multiset.o

Changed 11 years ago by mojca (Mojca Miklavec)

Attachment: pike.log added

full build log for swig-pike

comment:2 Changed 11 years ago by jmroot (Joshua Root)

This is not the swig bindings failing to build, it's their dependencies. The pike failure is #31384 and the mzscheme one is #21853.

As for allegro, it looks like the dependency may be wrong, as the swig docs seem to be saying it supports Allegro CL, which is not what the allegro port installs.

comment:3 in reply to:  2 Changed 11 years ago by mojca (Mojca Miklavec)

Replying to jmr@…:

As for allegro, it looks like the dependency may be wrong, as the swig docs seem to be saying it supports Allegro CL, which is not what the allegro port installs.

Oh, interesting. I didn't check that, I only needed a particular subport. Given that MacPorts doesn't provide Allegro CL it probably makes most sense to disable allegro altogether. On the other hand it's interesting to see that the compilation proceeds successfully on 10.6 even without Allegro CL being installed.

I also noticed that configure often reports:

checking for boostlib >= 1.20.0... configure: We could not detect the boost libraries (version 1.20 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.

Should the port depend on boost? (Apparently it's optional, but I wonder if it compiles differently if boost is present.)

I'm also sorry for the wrong report about the other two dependencies. I wasn't careful enough when looking for the cause of the error(s). Thanks for pointing it out.

What should be done with this ticket? Left open until the other two ports are brought back to life?

comment:4 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:5 Changed 10 years ago by michaelld (Michael Dickens)

Owner: changed from kevin@… to michaelld@…

comment:6 Changed 10 years ago by michaelld (Michael Dickens)

Moving to allegro5 fixes that port's issue. allegro (4) is outdated anyway.

comment:7 Changed 10 years ago by michaelld (Michael Dickens)

I added a patch to ticket #31384 that allows swig-pike to work again (via fixing a broken pike build).

comment:8 Changed 10 years ago by michaelld (Michael Dickens)

In r120784, I switched swig-allegro to use allegro5; this works for me.

comment:9 Changed 10 years ago by michaelld (Michael Dickens)

Meh; looking at the build log for swig-allegro, it's not doing what I thought it was. It's looking for "alisp", which MacPorts does not seem to provide (Allegro Common Lisp). So, I'm going to just remove that subport since it can't work; not with the allegro port nor with allegro5.

comment:10 Changed 5 years ago by luzpaz

This ticket is obsolete and could be closed, IMO.

comment:11 Changed 5 years ago by michaelld (Michael Dickens)

Thx & happy to oblige!

comment:12 Changed 5 years ago by michaelld (Michael Dickens)

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.