[MacPorts] #38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------------------------------+------------------------- Reporter: kdmckale@… | Owner: macports- Type: defect | tickets@… Priority: Normal | Status: new Component: ports | Milestone: Keywords: pdf2djvu, snow leopard, | Version: 2.1.3 segmentation fault | Port: pdf2djvu -------------------------------------------------+------------------------- System Configuration: Model Name: MacBook Pro Model Identifier: MacBookPro4,1 Processor Name: Intel Core 2 Duo Processor Speed: 2.5 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 6 MB Memory: 4 GB System Version: Mac OS X 10.6.8 (10K549) Kernel Version: Darwin 10.8.0 Secure Virtual Memory: Enabled 64-bit Kernel and Extensions: Yes MacPorts version 2.1.3 Notes: attached is the log file for the error. the error begins with the line {{{ :info:build pdf2djvu.cc: In function ‘void _ZL5xmainiPKPc.omp_fn.0(void*)’: :info:build pdf2djvu.cc:1373: internal compiler error: Segmentation fault }}} -- Ticket URL: <https://trac.macports.org/ticket/38184> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+------------------------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: pdf2djvu, snow leopard, Port: pdf2djvu | segmentation fault -------------------------+------------------------------------------------- Comment (by ryandesign@…): Submit a bug report to Apple, like the instructions in the log say to do. To work around it, try [wiki:ProblemHotlist#compiler compiling with a different compiler]. -- Ticket URL: <https://trac.macports.org/ticket/38184#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+-------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: pdf2djvu | -------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: pdf2djvu, snow leopard, segmentation fault => Old description:
System Configuration: Model Name: MacBook Pro Model Identifier: MacBookPro4,1 Processor Name: Intel Core 2 Duo Processor Speed: 2.5 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 6 MB Memory: 4 GB
System Version: Mac OS X 10.6.8 (10K549) Kernel Version: Darwin 10.8.0 Secure Virtual Memory: Enabled 64-bit Kernel and Extensions: Yes
MacPorts version 2.1.3
Notes: attached is the log file for the error. the error begins with the line {{{ :info:build pdf2djvu.cc: In function ‘void _ZL5xmainiPKPc.omp_fn.0(void*)’: :info:build pdf2djvu.cc:1373: internal compiler error: Segmentation fault }}}
New description: {{{ System Configuration: Model Name: MacBook Pro Model Identifier: MacBookPro4,1 Processor Name: Intel Core 2 Duo Processor Speed: 2.5 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 6 MB Memory: 4 GB System Version: Mac OS X 10.6.8 (10K549) Kernel Version: Darwin 10.8.0 Secure Virtual Memory: Enabled 64-bit Kernel and Extensions: Yes }}} MacPorts version 2.1.3 Notes: attached is the log file for the error. the error begins with the line {{{ :info:build pdf2djvu.cc: In function ‘void _ZL5xmainiPKPc.omp_fn.0(void*)’: :info:build pdf2djvu.cc:1373: internal compiler error: Segmentation fault }}} -- Comment: Oh sorry, I see now you're on an old OS, using an old compiler Apple won't care about anymore. In that case, try using configure.compiler=llvm- gcc-4.2 or configure.compiler=clang. If that doesn't work, try a newer clang port in MacPorts, like clang-3.2. -- Ticket URL: <https://trac.macports.org/ticket/38184#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+-------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: pdf2djvu | -------------------------+-------------------------------- Comment (by kdmckale@…): Replying to [comment:2 ryandesign@…]:
Oh sorry, I see now you're on an old OS, using an old compiler Apple won't care about anymore. In that case, try using configure.compiler=llvm- gcc-4.2 or configure.compiler=clang. If that doesn't work, try a newer clang port in MacPorts, like clang-3.2.
I'm somewhat terminal experienced. However, I'm not sure where to enter the configuration changes in the command line. Sorry. :( -- Ticket URL: <https://trac.macports.org/ticket/38184#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+-------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: pdf2djvu | -------------------------+-------------------------------- Comment (by kdmckale@…): Replying to [comment:3 kdmckale@…]:
Replying to [comment:2 ryandesign@…]:
Oh sorry, I see now you're on an old OS, using an old compiler Apple won't care about anymore. In that case, try using configure.compiler=llvm- gcc-4.2 or configure.compiler=clang. If that doesn't work, try a newer clang port in MacPorts, like clang-3.2.
I'm somewhat terminal experienced. However, I'm not sure where to enter the configuration changes in the command line. Sorry. :(
I found what I was looking for. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/38184#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+-------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: pdf2djvu | -------------------------+-------------------------------- Comment (by ryandesign@…): Did a different compiler work? -- Ticket URL: <https://trac.macports.org/ticket/38184#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+-------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: pdf2djvu | -------------------------+-------------------------------- Comment (by nicos@…): For the sake of comparison, I checked back the logs of the buildbot, and the SL one built fine pdf2djvu. [[BR]] However, there is a difference between the two logs. In the case here, pdf2djvu uses openmp which happens to be installed. As the openmpi requires a specific compiler (by default gcc45), this may be the cause of the build error with gcc42 which is the one employed in the log. Obviously, I will have some cleanup to do in the pdf2djvu port in order to avoid opportunistic linking and/or consider openmp as a dependency. -- Ticket URL: <https://trac.macports.org/ticket/38184#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+-------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: pdf2djvu | -------------------------+-------------------------------- Comment (by nicos@…): I disabled openmp from pdf2djvu in r103396. Hopefully it should fix compilation in this case. -- Ticket URL: <https://trac.macports.org/ticket/38184#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+-------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: pdf2djvu | -------------------------+-------------------------------- Comment (by kdmckale@…): Replying to [comment:5 ryandesign@…]:
Did a different compiler work? Yes. I upgraded to the newest clang.
-- Ticket URL: <https://trac.macports.org/ticket/38184#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+-------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: pdf2djvu | -------------------------+-------------------------------- Comment (by kdmckale@…): I have gcc45 installed. I just did not know what the compiler option was to make it use it since it was neither from Apple nor installed via MacPorts. Replying to [comment:6 nicos@…]:
For the sake of comparison, I checked back the logs of the buildbot, and the SL one built fine pdf2djvu. [[BR]] However, there is a difference between the two logs. In the case here, pdf2djvu uses openmp which happens to be installed. As the openmpi requires a specific compiler (by default gcc45), this may be the cause of the build error with gcc42 which is the one employed in the log.
Obviously, I will have some cleanup to do in the pdf2djvu port in order to avoid opportunistic linking and/or consider openmp as a dependency.
-- Ticket URL: <https://trac.macports.org/ticket/38184#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+-------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: pdf2djvu | -------------------------+-------------------------------- Comment (by nicos@…): Replying to [comment:9 kdmckale@…]:
I have gcc45 installed. I just did not know what the compiler option was to make it use it since it was neither from Apple nor installed via MacPorts.
Macports discourages the use of external compilers, and has its own gcc45, that you may have too. The compiler can be chosen through the variable configure.compiler. Just in order to know if this issue is fixed, did pdf2djvu @ 0.7.16 Revision 2 build fine without the need of specifying any compiler ? It should be the case, but I would like to have confirmation before closing the ticket. -- Ticket URL: <https://trac.macports.org/ticket/38184#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+-------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: pdf2djvu | -------------------------+-------------------------------- Comment (by kdmckale@…): That I cannot answer since I had already installed it using the suggestion to install specifying clang and using a newer version of clang. -- Ticket URL: <https://trac.macports.org/ticket/38184#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38184: pdf2djvu @0.7.16, Revision 1 +compiler error: segmentation fault -------------------------+-------------------------------- Reporter: kdmckale@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: pdf2djvu | -------------------------+-------------------------------- Changes (by nicos@…): * status: new => closed * resolution: => fixed Comment: Alright, understandable. I'll consider the issue fixed at least for now, since I could install pdf2djvu with openmpi installed and with the command {{{ sudo port install pdf2djvu configure.compiler=apple-gcc-4.2 }}} which should be equivalent to the configuration described in the bug. -- Ticket URL: <https://trac.macports.org/ticket/38184#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts