Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Sep 2013 20:25:47 +0300
From:      Alexander Panyushkin <vsityz@gmail.com>
To:        David Chisnall <theraven@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: graphics/poppler-glib not build
Message-ID:  <5247111B.1070702@gmail.com>
In-Reply-To: <13ADF1E8-B97E-44E7-8605-B0A4013EDE69@FreeBSD.org>
References:  <5246E64C.3080204@gmail.com> <13ADF1E8-B97E-44E7-8605-B0A4013EDE69@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
With GCC same error

===>  Building for poppler-glib-0.22.2
gmake[1]: Вход в каталог 
`/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/poppler'
   CXX    CairoFontEngine.lo
   CXX    CairoOutputDev.lo
   CXX    CairoRescaleBox.lo
   CXXLD  libpoppler-cairo.la
gmake[1]: Выход из каталога 
`/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/poppler'
gmake[1]: Вход в каталог 
`/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib'
   GEN    stamp-poppler-enums.h
gmake  all-recursive
gmake[2]: Вход в каталог 
`/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib'
Making all in .
gmake[3]: Вход в каталог 
`/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib'
   CC     poppler-enums.lo
   CXX    poppler-action.lo
   CXX    poppler-date.lo
   CXX    poppler-document.lo
   CXX    poppler-page.lo
   CXX    poppler-attachment.lo
   CXX    poppler-form-field.lo
   CXX    poppler-annot.lo
   CXX    poppler-layer.lo
   CXX    poppler-media.lo
   CXX    poppler-movie.lo
   CXX    poppler-cached-file-loader.lo
   CXX    poppler-input-stream.lo
   CXX    poppler.lo
   CXXLD  libpoppler-glib.la
c++: warning: argument unused during compilation: '-pthread'
c++: warning: argument unused during compilation: '-pthread'
c++: warning: argument unused during compilation: '-pthread'
c++: warning: argument unused during compilation: '-pthread'
/usr/bin/ld: cannot find -lstdc++
c++: error: linker command failed with exit code 1 (use -v to see 
invocation)
gmake[3]: *** [libpoppler-glib.la] Error 1

*** Error code 1


On 28.09.2013 20:14, David Chisnall wrote:
> This looks like it's compiling C++ with clang and trying to link it with gcc.  Is there a CXXLD=g++ in there somewhere?
>
> David
>
> On 28 Sep 2013, at 15:23, Alexander Panyushkin <vsityz@gmail.com> wrote:
>
>> Hi all
>>
>> After upgrade ports graphics/poppler-glib not build anymore.
>>
>>
>> pkg_info -R poppler-glib-0.22.2
>> [...]
>> Required by:
>> gimp-app-2.8.6_1,1
>> py27-gimp-app-2.8.6
>> evince-2.32.0_11
>> epdfview-0.1.8_4
>>
>>
>> ===>  Building for poppler-glib-0.22.2
>> gmake[1]: Вход в каталог `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/poppler'
>>   CXX    CairoFontEngine.lo
>> In file included from CairoFontEngine.cc:39:
>> ./CairoFontEngine.h:98:11: warning: private field 'doc' is not used [-Wunused-private-field]
>>   PDFDoc *doc;
>>           ^
>> 1 warning generated.
>>   CXX    CairoOutputDev.lo
>> CairoOutputDev.cc:1626:29: warning: cast from 'unsigned char *' to 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4
>>       [-Wcast-align]
>>     uint32_t *source_data = (uint32_t*)cairo_image_surface_get_data(source);
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> CairoOutputDev.cc:2386:12: warning: cast from 'unsigned char *' to 'unsigned int *' increases required alignment from 1 to 4 [-Wcast-align]
>>     dest = (unsigned int *) (buffer + y * row_stride);
>>            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> CairoOutputDev.cc:2536:12: warning: cast from 'unsigned char *' to 'unsigned int *' increases required alignment from 1 to 4 [-Wcast-align]
>>     dest = (unsigned int *) (buffer + y * row_stride);
>>            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> CairoOutputDev.cc:2765:26: warning: cast from 'unsigned char *' to 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4
>>       [-Wcast-align]
>>         uint32_t *dest = (uint32_t *) (buffer + y * stride);
>>                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 4 warnings generated.
>>   CXX    CairoRescaleBox.lo
>> CairoRescaleBox.cc:283:10: warning: cast from 'unsigned char *' to 'unsigned int *' increases required alignment from 1 to 4 [-Wcast-align]
>>   dest = (unsigned int *)cairo_image_surface_get_data (dest_surface);
>>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 1 warning generated.
>>   CXXLD  libpoppler-cairo.la
>> gmake[1]: Выход из каталога `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/poppler'
>> gmake[1]: Вход в каталог `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib'
>>   GEN    stamp-poppler-enums.h
>> gmake  all-recursive
>> gmake[2]: Вход в каталог `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib'
>> Making all in .
>> gmake[3]: Вход в каталог `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib'
>>   CC     poppler-enums.lo
>>   CXX    poppler-action.lo
>>   CXX    poppler-date.lo
>>   CXX    poppler-document.lo
>>   CXX    poppler-page.lo
>>   CXX    poppler-attachment.lo
>> poppler-attachment.cc:123:65: warning: cast from 'GTime *' (aka 'int *') to 'time_t *' (aka 'long *') increases required alignment from 4 to 8
>>       [-Wcast-align]
>>     _poppler_convert_pdf_date_to_gtime (embFile->createDate (), (time_t *)&attachment->ctime);
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> poppler-attachment.cc:125:62: warning: cast from 'GTime *' (aka 'int *') to 'time_t *' (aka 'long *') increases required alignment from 4 to 8
>>       [-Wcast-align]
>>     _poppler_convert_pdf_date_to_gtime (embFile->modDate (), (time_t *)&attachment->mtime);
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 2 warnings generated.
>>   CXX    poppler-form-field.lo
>>   CXX    poppler-annot.lo
>>   CXX    poppler-layer.lo
>>   CXX    poppler-media.lo
>>   CXX    poppler-movie.lo
>>   CXX    poppler-cached-file-loader.lo
>>   CXX    poppler-input-stream.lo
>>   CXX    poppler.lo
>>   CXXLD  libpoppler-glib.la
>> c++: warning: argument unused during compilation: '-pthread'
>> c++: warning: argument unused during compilation: '-pthread'
>> c++: warning: argument unused during compilation: '-pthread'
>> c++: warning: argument unused during compilation: '-pthread'
>> /usr/bin/ld: cannot find -lstdc++
>> c++: error: linker command failed with exit code 1 (use -v to see invocation)
>> gmake[3]: *** [libpoppler-glib.la] Error 1
>>
>> _______________________________________________
>> freebsd-current@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5247111B.1070702>