Re: gpc compiler failed on Mac OS X 10.9.1
Jonas Maebe <[email protected]>
| Newsgroups | gmane.comp.compilers.gpc |
|---|---|
| Message-ID | <[email protected]> |
On 31 Jan 2014, at 11:12, Adriaan van Os wrote: > Thomas Schneider wrote: >> I have Mac OS X 10.9.1 Maveric. Pacal programs compile but fail to >> run: >> % cat tst.p >> program h(output); >> begin >> writeln(output,'did'); >> end. >> % tst >> dyld: no valid entry point >> Trace/BPT trap > > I hope to find the find the time to investigate the problem. You probably have to apply similar changes as I did in FPC in http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=25789 The above problem in particular generally stems from compiling with - pg (so that gcrt1.o is linked in) but without passing "-no_new_main" to the linker for 10.8 and later. Search for -no_new_main in http://llvm.org/svn/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp (this code/info was previously in the clang file linked from the commit message above) Jonas _______________________________________________ Gpc mailing list [email protected] https://www.g-n-u.de/mailman/listinfo/gpc