ok, I think now I understand what you are asking for but i'm not able to
identify exactly where the command begin.
Just for saving time i'll try to attach a more extended part of the output
in the file build.tar.gz

/bin/bash ../../libtool  --tag=CC   --mode=link gcc -DHAVE_DIX_CONFIG_H
-Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wbad-function-cast
-Wold-style-definition -Wdeclaration-after-statement -Wunused
-Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute
-Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull
-Werror=init-self -Werror=main -Werror=missing-braces
-Werror=sequence-point -Werror=return-type -Werror=trigraphs
-Werror=array-bounds -Werror=write-strings -Werror=address
-Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
-fno-strict-aliasing -fno-strict-aliasing -D_DEFAULT_SOURCE -D_BSD_SOURCE
-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/libdrm
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/X11/dri  -I../../../include -I../../include -I../../../Xext
-I../../../composite -I../../../damageext -I../../../xfixes -I../../../Xi
-I../../../mi -I../../../miext/sync -I../../../miext/shadow
 -I../../../miext/damage -I../../../render -I../../../randr -I../../../fb
-I../../../dbe -I../../../present -fvisibility=hidden  -DHAVE_XORG_CONFIG_H
-fvisibility=hidden  -I/usr/include/libdrm   -O2 -march=core2
-fstack-protector -Wformat -Werror=format-security  -fPIE -pie -Wl,-z,relro
-Wl,-Bsymbolic -o Xorg.wrap xorg-wrapper.o  -laudit -lm
libtool: link: gcc -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith
-Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes
-Wnested-externs -Wbad-function-cast -Wold-style-definition
-Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow
-Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls
-Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self
-Werror=main -Werror=missing-braces -Werror=sequence-point
-Werror=return-type -Werror=trigraphs -Werror=array-bounds
-Werror=write-strings -Werror=address -Werror=int-to-pointer-cast
-Werror=pointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing
-D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT
-I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/X11/dri -I../../../include
-I../../include -I../../../Xext -I../../../composite -I../../../damageext
-I../../../xfixes -I../../../Xi -I../../../mi -I../../../miext/sync
-I../../../miext/shadow -I../../../miext/damage -I../../../render
-I../../../randr -I../../../fb -I../../../dbe -I../../../present
-fvisibility=hidden -DHAVE_XORG_CONFIG_H -fvisibility=hidden
-I/usr/include/libdrm -O2 -march=core2 -fstack-protector -Wformat
-Werror=format-security -fPIE -pie -Wl,-z -Wl,relro -Wl,-Bsymbolic -o
Xorg.wrap xorg-wrapper.o  -laudit -lm
/usr/bin/ld: xorg-wrapper.o: relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object; recompile
with -fPIC
xorg-wrapper.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:799: recipe for target 'Xorg.wrap' failed
make[5]: *** [Xorg.wrap] Error 1
make[5]: Leaving directory
'/home/ombra/src-nsd/xorg-server-1.17.3/build-main/hw/xfree86'
Makefile:845: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
'/home/ombra/src-nsd/xorg-server-1.17.3/build-main/hw/xfree86'
Makefile:660: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory
'/home/ombra/src-nsd/xorg-server-1.17.3/build-main/hw/xfree86'
Makefile:604: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
'/home/ombra/src-nsd/xorg-server-1.17.3/build-main/hw'
Makefile:771: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
'/home/ombra/src-nsd/xorg-server-1.17.3/build-main'
debian/rules:249: recipe for target 'stampdir/build-main' failed
make: *** [stampdir/build-main] Error 2
rm stampdir/configure-main
dpkg-buildpackage: error: debian/rules build gave error exit status 2


Thank you

Lorenzo

2015-11-01 18:20 GMT+01:00 Julien Cristau <[email protected]>:

> I meant the gcc command line that fails, which was truncated in your
> report. Clearly your build environment is special in some way because the
> package builds fine in sid.
>
> Julien
>
>
> On November 1, 2015 12:55:46 PM GMT, Lorenz <[email protected]>
> wrote:
>>
>> Sorry, I'm using dpkg-buildpackage with the following commands:
>>
>> $ apt-get source xserver-xorg-core
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> Picking 'xorg-server' as source package instead of 'xserver-xorg-core'
>> NOTICE: 'xorg-server' packaging is maintained in the 'Git' version
>> control system at:
>> https://anonscm.debian.org/git/pkg-xorg/xserver/xorg-server.git
>> Skipping already downloaded file 'xorg-server_1.17.3.orig.tar.gz'
>> Skipping already downloaded file 'xorg-server_1.17.3-2.diff.gz'
>> Need to get 4,783 B of source archives.
>> Get:1 http://http.debian.net/debian/ sid/main xorg-server 2:1.17.3-2
>> (dsc) [4,783 B]
>> Fetched 4,783 B in 0s (10.9 kB/s)
>> dpkg-source: info: extracting xorg-server in xorg-server-1.17.3
>> dpkg-source: info: unpacking xorg-server_1.17.3.orig.tar.gz
>> dpkg-source: info: applying xorg-server_1.17.3-2.diff.gz
>> dpkg-source: info: upstream files that have been modified:
>>  xorg-server-1.17.3/.dir-locals.el
>>  xorg-server-1.17.3/config/dbus-api
>>  xorg-server-1.17.3/configure.ac
>>  xorg-server-1.17.3/damageext/damageext.h
>>  xorg-server-1.17.3/doc/c-extensions
>>  xorg-server-1.17.3/dri3/dri3_event.c
>>  xorg-server-1.17.3/dri3/dri3int.h
>>  xorg-server-1.17.3/fix-miregion
>>  xorg-server-1.17.3/fix-miregion-private
>>  xorg-server-1.17.3/fix-patch-whitespace
>>  xorg-server-1.17.3/fix-region
>>  xorg-server-1.17.3/hw/kdrive/Xkdrive.man
>>  xorg-server-1.17.3/hw/kdrive/fbdev/Xfbdev.man
>>  xorg-server-1.17.3/hw/xfree86/os-support/shared/platform_noop.c
>>  xorg-server-1.17.3/hw/xfree86/xorg-wrapper.c
>>  xorg-server-1.17.3/hw/xquartz/GL/glcontextmodes.c
>>  xorg-server-1.17.3/hw/xquartz/GL/glcontextmodes.h
>>  xorg-server-1.17.3/hw/xwin/winclipboard/internal.h
>>  xorg-server-1.17.3/xkb/XKM_file_format.txt
>>
>>
>> $ cd xorg-server-1.17.3/
>>
>> # apt-get build-dep xserver-xorg-core
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> Picking 'xorg-server' as source package instead of 'xserver-xorg-core'
>> 0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
>>
>>  $ dpkg-buildpackage -us -uc
>>
>> the output of the last command is quite long but ends with the error I
>> report in the first message.
>>
>> Cheers,
>> Lorenzo
>>
>> 2015-11-01 10:50 GMT+01:00 Julien Cristau <[email protected]>:
>>
>>> Control: tag -1 moreinfo
>>>
>>> On Sat, Oct 31, 2015 at 12:57:12 +0100, Lorenzo wrote:
>>>
>>> > Package: xserver-xorg-core
>>> > Version: 2:1.17.2-3
>>> > Severity: normal
>>> >
>>> > Dear Maintainer,
>>> >
>>> > I'm trying to build a deb package for xserver-xorg-core using the
>>> source provided by Debian, but the building process fails with the
>>> following error
>>> >
>>> > ....
>>> > ic -o Xorg.wrap xorg-wrapper.o  -laudit -lm
>>> > /usr/bin/ld: xorg-wrapper.o: relocation R_X86_64_32 against
>>> `.rodata.str1.1' can not be used when making a shared object; recompile
>>> with -fPIC
>>> > xorg-wrapper.o: error adding symbols: Bad value
>>> > collect2: error: ld returned 1 exit status
>>>
>>> You omitted the command line...
>>>
>>> Cheers,
>>> Julien
>>>
>>
>>

Attachment: build.tar.gz
Description: GNU Zip compressed data

Reply via email to