./../ppaslink.sh: line 9: /usr/bin/ld: Argument list too long lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- DonaldShimoda · 2017-05-31 17:32 I have problems compiling some packages ONLY under DARWIN. Have no clue where to start. Same packages compiles ok on linux, windows, linux-arm, etc What to start checking? seems like an OS limitations ---------------------------------------------------------------------- DonaldShimoda · 2017-05-31 17:41 Thats the file content BTW Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i #!/bin/shDoExitAsm (){ echo "An error occurred while assembling $1"; exit 1; }DoExitLink (){ echo "An error occurred while linking $1"; exit 1; }OFS=$IFSIFS=""/usr/bin/ld /usr/lib/crt1.o    -framework Carbon -framework OpenGL -dylib_file /System/Library/Frameworks/OpenGL .framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks /OpenGL.framework/Versions/A/Libraries/libGL.dylib     -multiply_defined suppress -L. -o ../lazarus `cat ../link.res`  -pagezero_size 0x10000if [ $? != 0 ]; then DoExitLink ; fiIFS=$OFS ---------------------------------------------------------------------- Phil · 2017-05-31 17:46 Quote from: DonaldShimoda on May 31, 2017, 07:32:00 pmI have problems compiling some packages ONLY under DARWIN. Have no clue where to start. What version of OS X is your Mac running? And ld? And FPC? And Lazarus? ld -v ---------------------------------------------------------------------- DonaldShimoda · 2017-05-31 17:50 Quote from: Phil on May 31, 2017, 07:46:55 pmQuote from: DonaldShimoda on May 31, 2017, 07:32:00 pmI have problems compiling some packages ONLY under DARWIN. Have no clue where to start. What version of OS X is your Mac running? And ld? And FPC? And Lazarus? ld -v All the latest. DARWIN 10.12.5 FPC and LAZARUS TRUNK ld @(#)PROGRAM:ld  PROJECT:ld64-278.4 configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS) LTO support using: LLVM version 8.1.0, (clang-802.0.42) TAPI support using: Apple TAPI version 1.33.11 ---------------------------------------------------------------------- Phil · 2017-05-31 17:53 Quote from: DonaldShimoda on May 31, 2017, 07:50:50 pmQuote from: Phil on May 31, 2017, 07:46:55 pmQuote from: DonaldShimoda on May 31, 2017, 07:32:00 pmI have problems compiling some packages ONLY under DARWIN. Have no clue where to start. What version of OS X is your Mac running? And ld? And FPC? And Lazarus? ld -v All the latest. What happens if you run ppaslink.sh from Terminal command line? Any difference? What packages? ---------------------------------------------------------------------- DonaldShimoda · 2017-05-31 18:09 Quote from: Phil on May 31, 2017, 07:53:54 pmQuote from: DonaldShimoda on May 31, 2017, 07:50:50 pmQuote from: Phil on May 31, 2017, 07:46:55 pmQuote from: DonaldShimoda on May 31, 2017, 07:32:00 pmI have problems compiling some packages ONLY under DARWIN. Have no clue where to start. What version of OS X is your Mac running? And ld? And FPC? And Lazarus? ld -v All the latest. What happens if you run ppaslink.sh from Terminal command line? Any difference? What packages? Nothing happens because try to reach 64 bits compiler. Im using fpcupdeluxe BTW so, i have no access to the same paths definitions on command line. It happens with ANY package, just after some packages i installed , i add one more and fails. ---------------------------------------------------------------------- Phil · 2017-05-31 18:21 Quote from: DonaldShimoda on May 31, 2017, 08:09:35 pmNothing happens because try to reach 64 bits compiler. Im using fpcupdeluxe BTW so, i have no access to the same paths definitions on command line. It happens with ANY package, just after some packages i installed , i add one more and fails. Try standard Laz 1.6.4 installation. If no problem there, then it's fpcupdeluxe. ---------------------------------------------------------------------- DonAlfredo · 2017-05-31 18:57 If this is a fpcupdeluxe install, please post your fpc.cfg. And can you give more info about the package(s) you try to install ? Edit: and the link.res ? ---------------------------------------------------------------------- DonaldShimoda · 2017-05-31 19:00 Quote from: Phil on May 31, 2017, 08:21:19 pmQuote from: DonaldShimoda on May 31, 2017, 08:09:35 pmNothing happens because try to reach 64 bits compiler. Im using fpcupdeluxe BTW so, i have no access to the same paths definitions on command line. It happens with ANY package, just after some packages i installed , i add one more and fails. Try standard Laz 1.6.4 installation. If no problem there, then it's fpcupdeluxe. lazarus 1.6.4 refuse to build using trunk fpc. So, i cannot know where the problem is (i need FPC 3.1.1 BTW) ---------------------------------------------------------------------- DonaldShimoda · 2017-05-31 19:05 Quote from: DonAlfredo on May 31, 2017, 08:57:52 pmIf this is a fpcupdeluxe install, please post your fpc.cfg. And can you give more info about the package(s) you try to install ? Edit: and the link.res ? This is the fpc.cfg https://dl.dropboxusercontent.com/u/76375897/Temp/fpc.cfg The package is REMOBJECTS DATAABSTRACT SERVER. have no idea wich more specific info to give , except it builds on linux 32, linux 64, linux arm, win32, win64... Inall that installations i use the same sequence (but no fpcupdeluxe) Just native by hand build as explained on my blog. Just using fpcupdeluxe for mac os. Best regards ---------------------------------------------------------------------- DonAlfredo · 2017-05-31 19:28 In your fpc.cfg, would you comment out the -ap swith ? Its just a wild guess ... ---------------------------------------------------------------------- DonaldShimoda · 2017-05-31 19:43 Quote from: DonAlfredo on May 31, 2017, 09:28:51 pmIn your fpc.cfg, would you comment out the -ap swith ? Its just a wild guess ... Done. no luck. ---------------------------------------------------------------------- DonAlfredo · 2017-06-01 05:06 Ok. Need more details. QuoteNothing happens because try to reach 64 bits compiler.What do you mean by this ? ---------------------------------------------------------------------- DonaldShimoda · 2017-06-01 12:36 Quote from: DonAlfredo on June 01, 2017, 07:06:05 amOk. Need more details. QuoteNothing happens because try to reach 64 bits compiler.What do you mean by this ? Running from command line do nothing. I bet because can't find fpc version compiled for fcupdeluxe? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i cat: ../link.res: No such file or directoryld: warning: -arch not specifiedld: warning: -macosx_version_min not specified, assuming 10.10Undefined symbols for architecture x86_64:  "___keymgr_dwarf2_register_sections", referenced from:      __start in crt1.o  "__cthread_init_routine", referenced from:      __start in crt1.o  "_atexit", referenced from:      __start in crt1.o  "_errno", referenced from:      __start in crt1.o  "_exit", referenced from:    __start in crt1.o  "_mach_init_routine", referenced from:      __start in crt1.o  "_main", referenced from:      __start in crt1.old: symbol(s) not found for inferred architecture x86_64An error occurred while linking ---------------------------------------------------------------------- DonAlfredo · 2017-06-01 12:57 Ok. Perhaps I understand now. Fpcupdeluxe installs a FPC/Laz combi without changing anything to the host-PC. Meaning: no paths are set. Meaning: FPC will not be found from the command line unless the full path is specified. I think you encounter the same problem that prevent Mac specific packages (like for iPhone) to work: fpcupdeluxe makes a local install. For some (like me)very usefull, for others (like you I presume) causing problems. ---------------------------------------------------------------------- DonaldShimoda · 2017-06-01 13:04 Quote from: DonAlfredo on June 01, 2017, 02:57:38 pmOk. Perhaps I understand now. Fpcupdeluxe installs a FPC/Laz combi without changing anything to the host-PC. Meaning: no paths are set. Meaning: FPC will not be found from the command line unless the full path is specified. I think you encounter the same problem that prevent Mac specific packages (like for iPhone) to work: fpcupdeluxe makes a local install. For some (like me)very usefull, for others (like you I presume) causing problems. My friend i appreciate a lot your work. I don't understand why you think im not. Im not telling is a fcpupdeluxe problem. Is clear is a fail because the total path called is too long for mac. Is not a package problem, is a problem with the AMOUNT of installed packages! I bet because the path need to build lazarus is TOO LONG for the command line because the amount of packages i have. If i remove another package and install the last one failed to installed, it works! So, is clearly a problem with the amount of packages. Now, that DONT HAPPENS TO ME on another OS, like i say, neither with another platforms, very different, like arm , intel 386 or and 64. The problem is on that platforms i DOMNT USING fpcupdeluxe so i can't say is a fpcupdeluxe problem (because the amount of packages i use) or is a OS X problem. I hope is clear now, i love your job, and i don't have any interest on critic that work, at all. Any other idea to tes? theres any place to see the path as is called at the OS? Best regards. ---------------------------------------------------------------------- DonAlfredo · 2017-06-01 13:32 Don't worry : I did not have any negative emotions or whatever about your posts ! In fact, all remarks of users of fpcupdeluxe have helped it to get where it is now. Again, don't worry, I am an old man ... ;-) Will look further into your problem.