Opened 10 years ago

Last modified 3 years ago

#44265 assigned defect

objc @3.2.8 Build Error

Reported by: zorgatone@… Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: objc

Description

After trying a couple times and cleaning the port/updating all the ports, I'm still having trouble installing objc @3.2.8.

I get this error in the build phase:

:info:build /usr/bin/clang -c Object.m -DNDEBUG -O2 
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_objc/objc/work/objc-3.2.8/src/o
bjpak'
:info:build /usr/bin/clang -c ascfiler.m -DNDEBUG -O2 -I../../include/objcrt
:info:build ar cr objpak.a ascfiler.o 
:info:build ar cr objcrt.a Object.o 
:info:build /opt/local/bin/ranlib: file: objpak.a(ascfiler.o) has no symbols
:info:build /usr/bin/clang -c notfound.m -DNDEBUG -O2 -I../../include/objcrt
:info:build /opt/local/bin/ranlib: file: objcrt.a(Object.o) has no symbols
:info:build /usr/bin/clang -c Block.m -DNDEBUG -O2 
:info:build In file included from notfound.m:25:
:info:build ./notfound.h:28:23: error: cannot find interface declaration for 'Exception', superclass of 'NotFound'
:info:build @interface NotFound : Exception
:info:build ~~~~~~~~~~~~~~~~~~~   ^
:info:build ./notfound.h:28:12: warning: class 'NotFound' defined without specifying a base class [-Wobjc-root-class]
:info:build @interface NotFound : Exception
:info:build            ^
:info:build ./notfound.h:28:20: note: add a super class to fix this problem
:info:build @interface NotFound : Exception
:info:build                    ^
:info:build 1 warning and 1 error generated.
:info:build make[2]: *** [notfound.o] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_objc/objc/work/objc-3.2.8/src/ob
jpak'
:info:build make[1]: *** [objpak] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build /usr/bin/clang -c Message.m -DNDEBUG -O2 
:info:build ar cr objcrt.a Block.o 
:info:build /opt/local/bin/ranlib: file: objcrt.a(Object.o) has no symbols
:info:build /opt/local/bin/ranlib: file: objcrt.a(Block.o) has no symbols
:info:build /usr/bin/clang -c Exceptn.m -DNDEBUG -O2 
:info:build ar cr objcrt.a Message.o 
:info:build /opt/local/bin/ranlib: file: objcrt.a(Object.o) has no symbols
:info:build /opt/local/bin/ranlib: file: objcrt.a(Block.o) has no symbols
:info:build /usr/bin/clang -c Exceptn.m -DNDEBUG -O2 
:info:build ar cr objcrt.a Message.o 
:info:build /opt/local/bin/ranlib: file: objcrt.a(Object.o) has no symbols
:info:build /opt/local/bin/ranlib: file: objcrt.a(Block.o) has no symbols
:info:build /opt/local/bin/ranlib: file: objcrt.a(Message.o) has no symbols
:info:build /usr/bin/clang -c OutOfMem.m -DNDEBUG -O2 
:info:build ar cr objcrt.a Exceptn.o 
:info:build In file included from OutOfMem.m:25:
:info:build ./OutOfMem.h:28:26: error: cannot find interface declaration for 'Exception', superclass of 'OutOfMemory'
:info:build @interface OutOfMemory : Exception
:info:build ~~~~~~~~~~~~~~~~~~~~~~   ^
:info:build ./OutOfMem.h:28:12: warning: class 'OutOfMemory' defined without specifying a base class [-Wobjc-root-class]
:info:build @interface OutOfMemory : Exception
:info:build            ^
:info:build ./OutOfMem.h:28:23: note: add a super class to fix this problem
:info:build @interface OutOfMemory : Exception
:info:build                       ^
:info:build 1 warning and 1 error generated.
:info:build make[2]: *** [OutOfMem.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build /opt/local/bin/ranlib: file: objcrt.a(Object.o) has no symbols
:info:build /opt/local/bin/ranlib: file: objcrt.a(Block.o) has no symbols
:info:build /opt/local/bin/ranlib: file: objcrt.a(Message.o) has no symbols
:info:build /opt/local/bin/ranlib: file: objcrt.a(Exceptn.o) has no symbols
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_objc/objc/work/objc-3.2.8/src/objcrt'
:info:build make[1]: *** [objcrt] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_objc/objc/work/objc-3.2.8'
:info:build make: *** [default] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_objc/objc/work/objc-3.2.8'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_objc/objc/work/objc-3.2.8" && /usr/bin/make -j2 -w 
:info:build Exit code: 2
:error:build org.macports.build for port objc returned: command execution failed
:debug:build Error code: CHILDSTATUS 11594 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for objc: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port objc for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_objc/objc/main.log

Attachments (1)

main.log (40.9 KB) - added by zorgatone@… 10 years ago.
Macports error log

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by zorgatone@…

Attachment: main.log added

Macports error log

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

This is part of what prompted me to ask for an update to 3.2.11: #38326

(at least I think it was this error, it might have been a different one)

Last edited 10 years ago by cooljeanius (Eric Gallager) (previous) (diff)

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

Cc: egall@… added

Cc Me!

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: objc port build error removed
Owner: changed from macports-tickets@… to mww@…

comment:4 Changed 7 years ago by mf2k (Frank Schima)

Owner: mww@… deleted
Status: newassigned

See #53012.

comment:5 Changed 3 years ago by cooljeanius (Eric Gallager)

I'm getting a different error now; there's now a -Werror=implicit-function-declaration problem before it even gets to the Objective C error listed originally:

/usr/bin/gcc -DNDEBUG      -c -o lex.o lex.c
lex.yy.c:2881:1: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
exit(2);
^
lex.yy.c:2881:1: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
lex.yy.c:2944:14: error: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Werror,-Wimplicit-function-declaration]
return(void*)malloc(size);
             ^
lex.yy.c:2944:14: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
lex.yy.c:2962:14: error: implicitly declaring library function 'realloc' with type 'void *(void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
return(void*)realloc((char*)ptr,size);
             ^
lex.yy.c:2962:14: note: include the header <stdlib.h> or explicitly provide a declaration for 'realloc'
lex.yy.c:2972:1: error: implicit declaration of function 'free' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
free(ptr);
^
4 errors generated.
make: *** [lex.o] Error 1
Note: See TracTickets for help on using tickets.