running configure on SPARC

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

running configure on SPARC

Eric Thomas
Hello,

I'm not sure this email went through the first time. My apologies if this
is a repeat...


I cannot figure out what I am missing, to get the configure script to
generate the config.h file, which would then be used to build ffmpeg.



Here is some system info:



env


PATH=/usr/xpg6/bin:/usr/ccs/bin:/usr/sfw/bin:/usr/bin:/usr/local/bin:/usr/sbin:/sbin


LD_LIBRARY_PATH=/home/eric/ffmpeg/FFmpeg-4.0.2/lib:/usr/lib:/usr/local/lib



uname –a

     SunOS devm 5.10 Generic_150400-61 sun4u sparc SUNW,Sun-Fire-V490



make –v

     GNU Make 3.81



gcc –v

     Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs

     Configured with:
/sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure
–prefix=/usr/sfw –with-as=/usr/ccs/bin/as

                                           –without-gnu-as
–with-ld=/usr/ccs/bin/ld –without-gnu-ld –enable-language=c,c++
--enable-shared

     Thread model: posix

     gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)





Configure cmd

     bash ./configure –prefix=/home/eric/ffmpeg/FFmpeg-4.0.2
–extra-cflags=”fPIC” –arch=sparc –target-os=sun





The configure script does not run to completion – I have to kill it with
‘Ctrl-z’, and I do not get a config.h file.



I am not the administrator of this server, so I can only request upgrades.
I am planning to request a gcc upgrade to 8.2 (latest).



Can you help me identify what options I am missing to get ffmpeg to
configure, and then compile?



Thanks,

Eric
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: running configure on SPARC

Micael Silva
On Wed, Nov 21, 2018 at 5:20 PM Eric Thomas <[hidden email]> wrote:

> Hello,
>
> I'm not sure this email went through the first time. My apologies if this
> is a repeat...
>
>
> I cannot figure out what I am missing, to get the configure script to
> generate the config.h file, which would then be used to build ffmpeg.
>
>
>
> Here is some system info:
>
>
>
> env
>
>
>
> PATH=/usr/xpg6/bin:/usr/ccs/bin:/usr/sfw/bin:/usr/bin:/usr/local/bin:/usr/sbin:/sbin
>
>
> LD_LIBRARY_PATH=/home/eric/ffmpeg/FFmpeg-4.0.2/lib:/usr/lib:/usr/local/lib
>
>
>
> uname –a
>
>      SunOS devm 5.10 Generic_150400-61 sun4u sparc SUNW,Sun-Fire-V490
>
>
>
> make –v
>
>      GNU Make 3.81
>
>
>
> gcc –v
>
>      Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
>
>      Configured with:
> /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure
> –prefix=/usr/sfw –with-as=/usr/ccs/bin/as
>
>                                            –without-gnu-as
> –with-ld=/usr/ccs/bin/ld –without-gnu-ld –enable-language=c,c++
> --enable-shared
>
>      Thread model: posix
>
>      gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
>
>
>
>
>
> Configure cmd
>
>      bash ./configure –prefix=/home/eric/ffmpeg/FFmpeg-4.0.2
> –extra-cflags=”fPIC” –arch=sparc –target-os=sun
>
>
>
>
>
> The configure script does not run to completion – I have to kill it with
> ‘Ctrl-z’, and I do not get a config.h file.
>
>
>
> I am not the administrator of this server, so I can only request upgrades.
> I am planning to request a gcc upgrade to 8.2 (latest).
>
>
>
> Can you help me identify what options I am missing to get ffmpeg to
> configure, and then compile?
>
>
>
> Thanks,
>
> Eric
>

I am no specialist but catches my attention that gcc version is quite old.
I think that the first step should be upgrade it and try again.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: running configure on SPARC

Carl Eugen Hoyos-2
In reply to this post by Eric Thomas
2018-11-21 20:20 GMT+01:00, Eric Thomas <[hidden email]>:

> uname –a
>
>      SunOS devm 5.10 Generic_150400-61 sun4u sparc SUNW,Sun-Fire-V490

You unfortunately need GNU sed, configure fails without
and you absolutely *have* to edit configure: Search for
"sed -E" and replace it with "/path/to/your/gnu/sed -E".
This is a requirement (and ticket #7310, a regression).

> make –v
>
>      GNU Make 3.81

This was good enough once upon a time, I don't remember
if it still is.

> gcc –v
>
>      Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
>
>      Configured with:
> /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure
> –prefix=/usr/sfw –with-as=/usr/ccs/bin/as
>
>                                            –without-gnu-as
> –with-ld=/usr/ccs/bin/ld –without-gnu-ld –enable-language=c,c++
> --enable-shared
>
>      Thread model: posix
>
>      gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

This is indeed old, I don't know if it works, feel free to try.

> Configure cmd
>
>      bash ./configure –prefix=/home/eric/ffmpeg/FFmpeg-4.0.2

> –extra-cflags=”fPIC” –arch=sparc –target-os=sun

Remove everything from the second line, it is wrong.

> The configure script does not run to completion – I have to kill it with
> ‘Ctrl-z’, and I do not get a config.h file.

(unlikely)
This is unexpected, are you sure you waited long enough?

Before trying again, remember that only current FFmpeg git head
is supported here.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: running configure on SPARC

Eric Thomas
Hello,

I had our sys-ad install gnu sed (v4.5), and I modified the 3 instances of
"sed -E" in the configure script.

It now runs to completion - although it takes about 6 minutes to complete.

When I run "make", I get this error message:

     ./ffbuild/version.sh: syntax error at line 8: `revision=$` unexpected
     GEN     libavutil/ffversion.h
     ./ffbuild/version.sh: syntax error at line 8: `revision=$` unexpected
    make: *** [libavutil/ffversion.h] Error 2

Do I need any arguments for 'make'? What am I missing?

Thanks for your help!

Eric

On Wed, Nov 21, 2018 at 4:55 PM Carl Eugen Hoyos <[hidden email]> wrote:

> 2018-11-21 20:20 GMT+01:00, Eric Thomas <[hidden email]>:
>
> > uname –a
> >
> >      SunOS devm 5.10 Generic_150400-61 sun4u sparc SUNW,Sun-Fire-V490
>
> You unfortunately need GNU sed, configure fails without
> and you absolutely *have* to edit configure: Search for
> "sed -E" and replace it with "/path/to/your/gnu/sed -E".
> This is a requirement (and ticket #7310, a regression).
>
> > make –v
> >
> >      GNU Make 3.81
>
> This was good enough once upon a time, I don't remember
> if it still is.
>
> > gcc –v
> >
> >      Reading specs from
> /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
> >
> >      Configured with:
> > /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure
> > –prefix=/usr/sfw –with-as=/usr/ccs/bin/as
> >
> >                                            –without-gnu-as
> > –with-ld=/usr/ccs/bin/ld –without-gnu-ld –enable-language=c,c++
> > --enable-shared
> >
> >      Thread model: posix
> >
> >      gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
>
> This is indeed old, I don't know if it works, feel free to try.
>
> > Configure cmd
> >
> >      bash ./configure –prefix=/home/eric/ffmpeg/FFmpeg-4.0.2
>
> > –extra-cflags=”fPIC” –arch=sparc –target-os=sun
>
> Remove everything from the second line, it is wrong.
>
> > The configure script does not run to completion – I have to kill it with
> > ‘Ctrl-z’, and I do not get a config.h file.
>
> (unlikely)
> This is unexpected, are you sure you waited long enough?
>
> Before trying again, remember that only current FFmpeg git head
> is supported here.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: running configure on SPARC

Carl Eugen Hoyos-2
2018-12-05 17:54 GMT+01:00, Eric Thomas <[hidden email]>:

> I had our sys-ad install gnu sed (v4.5), and I modified the 3 instances of
> "sed -E" in the configure script.

This is not necessary anymore, configure was fixed.

> It now runs to completion - although it takes about 6 minutes to complete.

Which version of FFmpeg is this?
It took hours here before a recent fix, it is significantly faster now.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: running configure on SPARC

Eric Thomas
I believe our sys-ad downloaded ffmpeg 4.0.2.


On Wed, Dec 5, 2018 at 11:57 AM Carl Eugen Hoyos <[hidden email]> wrote:

> 2018-12-05 17:54 GMT+01:00, Eric Thomas <[hidden email]>:
>
> > I had our sys-ad install gnu sed (v4.5), and I modified the 3 instances
> of
> > "sed -E" in the configure script.
>
> This is not necessary anymore, configure was fixed.
>
> > It now runs to completion - although it takes about 6 minutes to
> complete.
>
> Which version of FFmpeg is this?
> It took hours here before a recent fix, it is significantly faster now.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: running configure on SPARC

Eric Thomas
I just verified that I have FFmpeg 4.0.3.

The version.h files have constants that match the version numbers of the
"Wu" release.

On Wed, Dec 5, 2018 at 12:01 PM Eric Thomas <[hidden email]> wrote:

> I believe our sys-ad downloaded ffmpeg 4.0.2.
>
>
> On Wed, Dec 5, 2018 at 11:57 AM Carl Eugen Hoyos <[hidden email]>
> wrote:
>
>> 2018-12-05 17:54 GMT+01:00, Eric Thomas <[hidden email]>:
>>
>> > I had our sys-ad install gnu sed (v4.5), and I modified the 3 instances
>> of
>> > "sed -E" in the configure script.
>>
>> This is not necessary anymore, configure was fixed.
>>
>> > It now runs to completion - although it takes about 6 minutes to
>> complete.
>>
>> Which version of FFmpeg is this?
>> It took hours here before a recent fix, it is significantly faster now.
>>
>> Carl Eugen
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: running configure on SPARC

Carl Eugen Hoyos-2
2018-12-05 19:45 GMT+01:00, Eric Thomas <[hidden email]>:
> I just verified that I have FFmpeg 4.0.3.

Only current FFmpeg git head is supported here.

Sorry, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: running configure on SPARC

Eric Thomas
In reply to this post by Carl Eugen Hoyos-2
Hey Carl,

I am trying to build a set of shared libraries. I have successfully run
these different configure commands:

bash ./configure --prefix=/myhome/ffmpeg/FFmpeg-4.0.3 --enable-shared
bash ./configure --prefix=/myhome/ffmpeg/FFmpeg-4.0.3 --enable-shared
--extra-cflags="-fPIC"
bash ./configure --prefix=/myhome/ffmpeg/FFmpeg-4.0.3 --enable-shared
--extra-cflags="-fPIC" --enable-pic

In each case, the subsequent 'make' call returns with this error:
[myhome/ffmpeg/FFmpeg-4.0.3]$ make
Text relocation remains                       referenced
    against symbol              offset        in file
.data(section)                  0x0
libavutil/../compat/atomics/pthread/stdatomic.o
.data(section)                  0xc
libavutil/../compat/atomics/pthread/stdatomic.o
.data(section)                  0x14
libavutil/../compat/atomics/pthread/stdatomic.o
.data(section)                  0x20
libavutil/../compat/atomics/pthread/stdatomic.o
pthread_mutex_lock              0x4
libavutil/../compat/atomics/pthread/stdatomic.o
pthread_mutex_lock              0x8
libavutil/../compat/atomics/pthread/stdatomic.o
pthread_mutex_lock              0x18
libavutil/../compat/atomics/pthread/stdatomic.o
pthread_mutex_lock              0x1c
libavutil/../compat/atomics/pthread/stdatomic.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
make: *** [libavutil/libavutil.so.] Error 1

Can you point me in a right direction? I have not received any
responses to my SuperUser post..

Thanks!




On Wed, Dec 5, 2018 at 11:57 AM Carl Eugen Hoyos <[hidden email]> wrote:

> 2018-12-05 17:54 GMT+01:00, Eric Thomas <[hidden email]>:
>
> > I had our sys-ad install gnu sed (v4.5), and I modified the 3 instances
> of
> > "sed -E" in the configure script.
>
> This is not necessary anymore, configure was fixed.
>
> > It now runs to completion - although it takes about 6 minutes to
> complete.
>
> Which version of FFmpeg is this?
> It took hours here before a recent fix, it is significantly faster now.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: running configure on SPARC

Carl Eugen Hoyos-2
2018-12-12 16:25 GMT+01:00, Eric Thomas <[hidden email]>:

> I am trying to build a set of shared libraries. I have successfully run
> these different configure commands:
>
> bash ./configure --prefix=/myhome/ffmpeg/FFmpeg-4.0.3

Only current FFmpeg git head is supported here, sorry.

Please find out what "top-posting" means and avoid it here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".